How I found HTMLi on main domain of program
The logout page reflected the value of a URL parameter into a popup message without sanitising it, so an attacker could inject HTML such as a link. The reporter could not achieve script execution, and the program closed the report as a known duplicate.
Published on medium.com
I was trying to find account takeover in the redacted.com for this I tried to brute force trying to understand the patterns but nothing found now this is a time for checking the reset password functionality so I logout from target then I got a pop up of “You are now logged out”
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 page inserted the fm parameter value into the popup markup without encoding it, so HTML tags were interpreted by the browser.
Impact
An attacker could craft a link that shows a popup containing attacker-controlled HTML, such as a link to another site, but script execution was not achieved.
What the attacker needed
Victim clicks a crafted link
How it was found
- Log out of the target and observe the popup saying you are logged out.
- Notice the fm parameter in the URL is reflected in the popup.
- Change the fm value and confirm the popup text changes.
- Try script payloads, which fail, and notice the ft parameter changes the popup colour.
- Insert an anchor tag in fm and get a working link in the popup.
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.
When a website takes text from the address bar and shows it on the page, it must treat that text as plain text, not as code. Here the site put the text straight into a popup, so a crafted link could add its own HTML, for example a clickable link to another site. The reporter tried to go further and run JavaScript but could not.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.