Firefox Relay extension renders privileged extension element in arbitrary site
The Firefox Relay extension rendered its privileged extension element in an arbitrary website, allowing a malicious page to trigger the extension's email generation or open sign-up tabs. An attacker could cause unlimited email generation until the limit is reached, or open many tabs.
- Fixed in 5 months
- Paid in 24 days
- Disclosed after 5 months
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Steps to reproduce:
1. Install Firefox Relay extension (https://addons.mozilla.org/en-US/firefox/addon/private-relay/).
2. Go to https://attack.shhnjk.com/relay.html
Actual results:
If you are signed in, your Firefox relay emails will be generated infinitely until you reach the limit of generation.
If you are not signed in, it should open many sign up tabs. It should work, but I wasn't able to confirm this as I couldn't find a way to clear sign-in state in Firefox Relay extension.
Expected results:
Extension's buttons should be rendered in an extension's iframe.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the extension injected its privileged UI element into arbitrary pages instead of restricting it to an extension-owned iframe.
Impact
A malicious page could cause the extension to generate relay emails repeatedly until the account limit is reached, or open many sign-up tabs, if the user is signed in or not signed in respectively.
What the attacker needed
Firefox Relay extension installed; victim visits a malicious page
How it was found
- Install the Firefox Relay extension.
- Visit the attacker-controlled 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 report has not been written yet. The Original tab links to the source.
A browser extension can add special buttons or panels to web pages. This report says the Firefox Relay extension put its special panel on any website, not just its own. That meant a malicious website could make the extension create many email addresses or open many tabs without the user wanting it.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.