Coder Social home page Coder Social logo

node-esapi's People

Contributors

deadalready avatar kwwall avatar lirantal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-esapi's Issues

encodeForJS is not a function.

So I have been working on an chat project on Replit called Butzbach Chat that used Node.js. It uses the Socket.IO library, which is very useful. I also have Express and HTTP modules installed. Then I got a comment about the website is open to XSS. So I looked it up and used OWASP's website for the DOM-based XSS cheat sheet. I came across the node-esapi module and I am using it. I imported the library using ESAPI as the variable name. I used app.use(ESAPI.middleware()); to use ESAPI client scripts, and I used org.owasp.esapi.ESAPI.initialize() in the client script to use the functions. However, when I used $ESAPI.encoder().encodeForJS(), the developer console showed the following.
Screenshot 2022-01-29 101912
I am using the latest version of Google Chrome. I went to check esapi.js and found that the function doesn't exist.
Screenshot 2022-01-29 101539
I can use the other 2 functions for JavaScript, but can you add the encodeForJS definition for the client scripts?

This should be moved to the parent ESAPI project

Hi Karl - this is awesome! I haven't seen some of this code in ages! :) I would love to move this project over to the official ESAPI Github and help foster some community involvement in the project!

https://github.com/ESAPI

If you would like to get this moving let me know and we'll get it moved over! Great work by the way!

Any CONTRIBUTING guidelines for node-esapi?

@DeadAlready & @chrisisbeef ,

The node-esapi repo does not contain any CONTRIBUTING.md guidelines. We (as a corporation) are preparing a PR bringing more code to node-esapi from owasp-esapi-js code (also adding bug fixes & a test harness), and are wondering wether we need to undergo any kind of constraint (document sign-off... etc) before submitting the code.

Thanks

Add license in package.json

The npm package published does not have license field in package.json. Because of this tools like Blackduck and snyk.io report "License Not Found".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.