**How I Discovered an 8.2 Severity bug on hackerone for Account Takeover via HTML Injection**
The search field on a picture-search feature reflected HTML without proper validation or sanitisation. The author injected a login page into the search results and reported it as an account takeover, which the company accepted.
The target application had a feature allowing users to search pictures. While testing this feature, I noticed that the search field accepted HTML injecting without proper validation or sanitization.
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
Impact
An attacker could display a fake login form on the site, which may trick users into entering credentials; the text does not demonstrate an actual account takeover.
What the attacker needed
Access to the picture search feature
How it was found
- Open the picture search feature.
- Enter HTML for a login page into the search field.
- Observe the login page reflected on the website 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 puts text you typed into the page without cleaning it first, so your text is treated as part of the page's code. Here the author put a fake login form into a search box and it appeared on the site. The report claims this could trick users into entering credentials, but it does not show any real account takeover.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.