Skip to content
Leaked secrets Disclosed report Beginner

Flickr API key leaked in GitHub commit

A Flickr API key was exposed in a public GitHub repository belonging to Mozilla. The key only allowed access to public Flickr data, so it did not pose a security risk.

m4y4nk Follow

Originally disclosed on HackerOne

  • Triaged in 7 days
  • Fixed in 8 days
  • Disclosed after 5 months

Summary by the program

A security researcher discovered a leaked Flickr API key in a public GitHub repository belonging to Mozilla. The key is used to pull public data from Flickr and did not pose a security risk.

This report is out of scope of our program and was resolved since we were able to revoke the API key. It is not eligible for bounty. Similar reports would be closed as informative.

The report

Hello security team,

My Name is Mayank Kumar. I am a Cyber Security Researcher, Bug Bounty Hunter & Ethical Hacker.

While going through Github search I discovered a public repository which contains API Key.

Repo: https://github.com/mozilla/make.mozilla.org

File: https://github.com/mozilla/make.mozilla.org/blob/98b87c517b463a5bae09f29284b1dabca97bb376/media/js/flickr.js#L4

POC: Screenshot Attached

Impact

Information Disclosure

Attachments

mozila.PNG
mozila.PNG From the original on HackerOne

The original report as published on HackerOne, by m4y4nk. 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 a developer committed a configuration file containing an API key to a public source code repository.

What the attacker needed

None

The fix

The API key was revoked.

How it was found

  1. Search GitHub for public repositories.
  2. Find a Mozilla repository that contains an API key.
  3. Locate the specific file and line with the key.

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.

An API key is like a password that lets a program talk to another service. Here, a key for the photo site Flickr was left in a public code repository on GitHub, so anyone could see it. But because the key only gave access to public information, it was not dangerous.

What is Leaked secrets?

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

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.