[03]. I received $200 from Mozilla for a simple bypass
The profile biography field on a Mozilla add-ons staging site blocked links only by checking for the strings http or https. An attacker could insert a link using a protocol-relative URL, which bypassed the filter and allowed a clickable link to an external site.
medium.com
Published on medium.com
You can read the report here (It is public): https://hackerone.com/reports/3175695
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 input filter only searched for the literal strings 'http' or 'https' instead of properly parsing and sanitising HTML links.
Impact
An attacker could place a clickable link to an external site in their profile biography, which could be used to direct visitors to a malicious page.
What the attacker needed
An account on the add-ons site; ability to edit the profile biography
How it was found
- Open the 'Edit My Profile' feature on the add-ons staging domain.
- Locate the Biography field, which states that links are forbidden.
- Enter a link written without the http or https prefix.
- Save the profile and observe that the link is accepted and clickable.
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 profile page let people write a short biography but said links were not allowed. The site only checked whether the text contained 'http' or 'https', so a link written without those words slipped through. That let someone put a clickable link to another website on their profile.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.