Skip to content

An example of DOM XSS for Javascript using Node.js and Express

Notifications You must be signed in to change notification settings

nleach999/DOM-XSS-JS-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client DOM XSS Vulnerability and Remediation Demo

The purpose of this example is to show how a script can be embedded in window.location.href to perform a client side DOM XSS attack.

This demonstrates that JSON.parse can not be considered a proper sanitizer. It also demonstrates a False-Negative static analysis detection miss when the data flow analysis ends in the scope of a lambda expression.

How to Run

Assuming you have Node.JS installed, execute npm install followed by npm run. Navigate to http://localhost:3000 to see that application.

About

An example of DOM XSS for Javascript using Node.js and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published