Stored HTML Injection That Took Down the Application — Landed me in $$ Bounty
An HTML injection payload reached the server and caused a client-side exception, making the page inaccessible to all users. The attacker could inject arbitrary HTML, potentially leading to stored XSS, and cause a denial of service.
So I went back to work. I opened HackerOne, scrolling through programs, looking for something interesting.
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 failed to properly sanitise or encode user-supplied HTML before storing and rendering it, leading to a client-side exception.
Impact
The injected HTML could lead to stored XSS and caused a denial of service, rendering the webpage inaccessible to legitimate users for two days.
What the attacker needed
Ability to submit HTML input
The fix
The vulnerability was fixed, and the webpage was back online.
How it was found
- Send an HTML payload (a link) to the application.
- URL-encode the payload and submit it.
- Observe the server respond with a 500 error and the page crash with a client-side exception.
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.
The website accepted some HTML code from a user and stored it. When the page tried to display that code, it broke and showed an error, so nobody could use the page. This is called HTML injection, and if the code included scripts, it could become cross-site scripting (XSS), which lets an attacker run code in other users' browsers.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.