teodoran / web-hack

Workshop focusing on OWASP top 10 web security risks
MIT License
6 stars 4 forks source link

Add Flag to part 3, Cross Site Scripting (XSS) #1

Closed teodoran closed 2 years ago

teodoran commented 4 years ago

Part 3, Cross Site Scripting (XSS), is missing a flag for the workshop participants to find. It would be neat if this was added.

The flag should be retrievable by using XSS, so one would need to create a bot that regularly accesses the site as another user, and triggers an action that can be exploited using XSS. One option is to have this user store the flag in local storage, or as a global JavaScript variable.

In addition, one would need to create a new XSS vulnerability in the Sticky Notes solution. One option would be to let the application logo image URL be configured from an URL in the database. If this is changed, then one should be able to perform an XSS attack using the img-tag.

teodoran commented 2 years ago

Solved by the inclusion of an admin user password, that can be retrieved using XXS.