How I was able to find 100+ XSS in United nations Bug Bounty Program
A hunter crawled and archived a very large set of URLs from a bug bounty programme and ran reflection and fuzzing tools to find cross-site scripting. Many URLs with a language parameter reflected unfiltered special characters, and some of those pages were vulnerable, including pages that returned a 404 status.
Published on mrpentestguy.medium.com
Hey, Guys so this is my first blog. so I thought maybe give it try to show people how you could find bugs in an easy way
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the language parameter was echoed into the page without proper output encoding, including on error pages.
Impact
An attacker could run script in a victim's browser on the affected pages, though the report gives no detail on what that script could achieve.
What the attacker needed
Large URL set from archives and crawling; reflection and fuzzing tools
How it was found
- Collect URLs from archives and crawling tools.
- Run the URLs through a reflection checker to find ones echoing unfiltered special characters.
- Feed the reflecting URLs into a fuzzing tool with custom payloads.
- Check the many URLs sharing the language parameter to see which actually exist and are vulnerable.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website puts text from the address bar onto the page without cleaning it, so an attacker can slip in code that runs in a visitor's browser. Here the hunter collected lots of old and current links, checked which ones echoed special characters back, then tested those with a fuzzing tool. The result was many vulnerable pages, some of which did not even exist and showed a not-found page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.