Skip to content

Demonstration of XSS vulnerabilities and resolution using Sinatra and SecureHeaders

Notifications You must be signed in to change notification settings

ISS-Security/demo-xss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Injection and Cross-Site Security (XSS and CSRF) Demonstration

This project demonstrates how to conduct and prevent XSS attacks

Install

git clone <...>
cd demo_xss
bundle install

Execute

ruby app.rb

Now view at the site at http://localhost:4567 or whichever port it is on.

Play

Look at the running site and open the 'hacking instructions' link to see what kind of text input you could enter to conduct a script injection attack.

Search within the code of this project (*.rb and views/*.slim) for 'XSS' -- you should find comments on how make modifications to prevent XSS attacks.

Readings on XSS

About

Demonstration of XSS vulnerabilities and resolution using Sinatra and SecureHeaders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published