Skip to content
Leaked secrets Disclosed report Beginner

two aws access key and secret key and database username and password exposed

A Docker image for Mozilla's Common Voice project contained exposed AWS access keys, secret keys, and database credentials in a configuration file. An attacker could use these credentials to gain unauthorised access to AWS resources associated with the project.

ghaazy Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 15 hours
  • Fixed in 8 days
  • Paid in 16 days
  • Disclosed after 7 months

Summary by the program

A security vulnerability is identified in a Docker image hosted on Docker Hub. The image, associated with Mozilla's Common Voice project, is found to contain exposed AWS access keys, AWS secret keys, and database credentials. These sensitive credentials are discovered within the file /code/scripts/test/config.json of the Docker image and allowed unauthorized access to AWS resources associated with the project. The images were deleted from docker hub, the credentials were rotated and the AWS users associated with them were removed.

Note that Common Voice is out of scope of our program but we accepted and rewarded this report since it is critical.

The report

Summary:

hello mozilla security team i found two aws access key and secret key and database username and password exposed in dockerhub image

Steps To Reproduce:

go to https://hub.docker.com/r/mozilla/commonvoice and do pull for this image you will find them in /code/scripts/test/config.json ███████ poc of the asw keys ████ and also ████ reference

image.png
image.png From the original on HackerOne

and the enum for it ████████

Supporting Material/References

*https://hackerone.com/reports/1720278

Impact

Summary:

exposure of sensitive data lead to many serious attacks and access

The original report as published on HackerOne, by ghaazy. 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, sensitive credentials were hardcoded in a configuration file that was included in a publicly available Docker image.

Impact

The exposed credentials could allow unauthorised access to AWS resources and databases associated with the project.

What the attacker needed

Public Docker image available; no authentication needed to pull image

The fix

The Docker images were deleted from Docker Hub, the credentials were rotated, and the associated AWS users were removed.

How it was found

  1. Go to the Docker Hub page for the Mozilla Common Voice image.
  2. Pull the Docker image.
  3. Locate the file /code/scripts/test/config.json inside the image.
  4. Find the exposed AWS access keys, secret keys, and database credentials in that file.

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.

The image included a file with secret keys and passwords that gave access to the project's cloud accounts. Anyone who pulled the image could find these secrets.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by ghaazy

View all

3 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.