Skip to content
RCE Disclosed report Advanced

Remote code execution and exfiltration of secret tokens by poisoning the mozilla/fxa CI build cache

A researcher could obtain an upload URL for the NX Cloud cache used by the Firefox Accounts repository, and because the link allowed repeated uploads to the same artifact, they could poison the cache with a modified artifact and exfiltrate environment variables as a proof of concept. The attack required access to the repository source code, which was public.

0x90security Follow

Originally disclosed on HackerOne

Bounty$8,000 Critical 10.0 View original
  • Disclosed after 2 months

Summary by the program

A security researcher was able to obtain an upload URL for NX Cloud's caching service, used by the Firefox Accounts repository. Because an authorized link could be used to upload more than once to the same artifact, the researcher was then able to poison the cache by re-uploading a modified cache artifact, and exfiltrate fxa's environment variables as a proof of concept. This vulnerability required an attacker to have access to the repository source code to be exploited, and in this case, the fxa repo is public.

The original report as published on HackerOne, by 0x90security. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 cache upload URL was reusable and not bound to a single upload, so a previously issued link could overwrite an existing cache artifact.

What the attacker needed

Access to the public repository source code

How it was found

  1. Obtain an upload URL for the NX Cloud cache used by the fxa repository.
  2. Re-upload a modified cache artifact to the same entry using the authorized link.
  3. Exfiltrate the fxa environment variables as a proof of concept.

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 build cache stores previous build results for reuse. Here the cache accepted a second upload to the same entry, so someone could replace a trusted build result with their own and read secret environment variables.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.