How I Found an SSRF in Mozilla Firefox That Could Compromise the Content Pipeline Behind 300M+ New Tabs.
The image-upload mutation in Mozilla's editorial backend passed a user-supplied URL directly to fetch() without validation, while an existing SSRF guard was only applied to a different endpoint. An authenticated curator could make the server send requests to internal addresses, including loopback and cloud metadata, potentially reaching internal services.
Published on sn0xsharma.medium.com
A code-first hunt through Mozilla’s open-source editorial backend where an existing SSRF guard was wired to exactly one endpoint, and the image-upload mutation behind Firefox’s New Tab pipeline was left calling raw fetch() with zero validation. Blind SSRF that turned out not to be blind.
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 image-upload mutation called fetch() on a user-supplied URL without applying the existing validateUrl() guard, which was only wired to the getUrlMetadata query.
Impact
An authenticated curator could make the server request internal addresses, potentially reaching loopback services and cloud metadata, though the text does not confirm actual data exfiltration.
What the attacker needed
A curator account for any locale; ability to send GraphQL mutations
The fix
The text does not state that it was fixed; it should be fixed by applying the existing validateUrl() and additionally resolving the hostname and rejecting private ranges, with egress filtering.
How it was found
- Fingerprint the GraphQL endpoint and dump the schema to find URL-accepting fields.
- Clone the open-source editorial platform and run a taint-analysis rule to find user input reaching fetch().
- Trace the call chain from the mutation resolver to the unvalidated fetchImageFromUrl sink.
- Start a local lab with Docker Compose, seed the database, and run the admin server.
- Send an updateApprovedCorpusItem mutation with an imageUrl pointing to a Collaborator domain.
- Observe DNS and HTTP interactions from the server, confirming the SSRF.
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 server-side request forgery (SSRF) happens when a server fetches a URL that an attacker controls, so the attacker can make the server talk to internal systems that outsiders cannot reach. Here, a feature that re-hosted images from a URL did not check where that URL pointed, so a logged-in content curator could ask the server to fetch internal addresses. The codebase already had a URL checker, but it was only used on a different feature.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.