HTML Injection @ /[restaurant]/order endpoint.
The report describes HTML injection at a restaurant order endpoint, with payloads that bypassed a WAF and achieved XSS. The attacker could execute JavaScript in a victim's browser, potentially stealing cookies.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 6 days
- Paid in 2 hours
- Disclosed after 22 months
Summary by the program
The following payloads were used to bypass the WAF and perform XSS:
Basic payload but did not work on all browsers:
"><details onauxclick=x=prompt,x`${document.cookie}`></details>
Payload worked on all browsers, but needed a right-click to be executed:
"><marquee+width=1000+onauxclick=confirm(document.cookie)>XSS</marquee>
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
WAF bypass required; victim right-clicks the injected element
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 report has not been written yet. The Original tab links to the source.
HTML injection is when a website puts user input into a page without cleaning it, so an attacker can add their own HTML. Here, the attacker added event handlers that run JavaScript when clicked, which is a form of cross-site scripting (XSS). This lets them run code in another user's browser, like stealing their session cookie.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.