How I got 50euro bounty?
A URL path containing a semicolon and a crafted string was reflected into an HTML form without proper encoding, allowing an attacker to inject arbitrary HTML. The author could not escalate this to cross-site scripting because the web application firewall blocked script payloads.
medium.com
Published on medium.com
just i was add ‘/;’ url path, response i got 200, ok but still i dont no why
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 application reflected part of the URL path into an HTML form without encoding it, and the firewall only blocked script tags, not other HTML.
Impact
An attacker could inject arbitrary HTML into the page, but attempts to execute JavaScript were blocked by the firewall, so the impact was limited to HTML injection.
What the attacker needed
Victim visits a crafted URL
How it was found
- Browse the site and test URLs for reflections, including URLs without parameters.
- Add a semicolon and a random name to a path and observe a 200 response with the value reflected.
- Insert HTML closing characters and a heading tag into the reflected value.
- Observe that the HTML is rendered on the page.
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.
HTML injection is when a website takes text you supply and places it directly into the page's code without cleaning it first. Here, a specially crafted part of the web address ended up inside a form on the page, so the author could add their own heading text. Turning that into JavaScript execution (cross-site scripting) was blocked by the site's firewall.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.