My Bug Bounty Journey #5: Changing Page Content with HTML Injection
A website used a client-controlled 'title' parameter to build page content, so an attacker could change what the page displayed. The author does not show how the injection was performed or what exactly could be done with it.
One day, I was reading a book called Real-World Bug Hunting by Peter Yaworski, looking for different types of vulnerabilities. One of them was called “HTML Injection,” where attackers can alter a website’s content using various techniques.
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 inserted the client-supplied title value into the page without validating or encoding it.
Impact
An attacker could alter the content shown on the page, which could be used to mislead visitors, but the text gives no further detail on the extent.
What the attacker needed
Control of the title parameter
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.
A website often takes a value from the address bar or a form and puts it straight into the page. If it does not clean that value first, a visitor can slip in extra HTML, the code that tells a browser how to show text and images. Here the page title came from the visitor, so the visitor could change the page's content.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.