Skip to content
Leaked secrets Disclosed report Beginner

Non-revoked API Key Disclosure in a Disclosed API Key Disclosure Report on Stripo

A previously disclosed report on Stripo contained unredacted API keys, and the YouTube API key was still active. An attacker could use that key to call YouTube Data API endpoints.

Binit Ghimire Follow

Originally disclosed on HackerOne

Medium 4.4 View original
  • Disclosed after 4 days

Summary by the researcher


Imagine finding non-revoked API key disclosure in disclosed API key disclosure report! ๐Ÿ˜€๐Ÿ˜€

๐Ÿ“• Make sure to check whether the API keys still work or they have already been revoked in full-disclosed reports! ๐Ÿ˜Š๐Ÿ˜Š


The report

Summary:

Can you imagine discovering an API key disclosure vulnerability in a disclosed API key disclosure report? The same thing is what I came across while going through the disclosed reports at Stripo Inc. Plus, the disclosed API key isn't even revoked, and therefore I am still able to use the same API key to fetch response from the target.

I am talking about #983331 where a security researcher reported secret API key leakage vulnerability in a JavaScript file at Stripo. This report is disclosed on HackerOne, and the team at Stripo have forgotten to blur the API keys from the report before disclosing it to the public. The API keys from Aviary and YouTube are disclosed in that report, and I tried using these API keys, and found out that they can still be used to fetch response from YouTube's API using Stripo's disclosed API key. I didn't check on Aviary though since I found out that Aviary is already a defunct image editor.

Steps To Reproduce:

API Key Disclosure:

To reproduce the API Key Disclosure vulnerability, you can perform the following steps:

  1. Visit https://hackerone.com/stripo/hacktivity?filter=type%3Apublic&type=team
  2. You will see a disclosed report entitled "Public and secret api key leaked in JavaScript source". Visit this report: https://hackerone.com/reports/983331
  3. You will see the following two lines in the report:
aviaryApiKey: "โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ",
youtubeApiKey: "โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ",

You can see the API keys from Aviary and YouTube are disclosed in this report.

API Key Validation:

Just because an API key is disclosed in a disclosed report, it doesn't mean that the API key actually works. Therefore, I decided to check whether the YouTube API Key is still working or not. For this purpose, you can follow these steps:

  1. Visit https://developers.google.com/youtube/v3/docs,
  2. Start looking for different services on how you can use the disclosed API key against YouTube Data API! I decided to check this one: https://youtube.googleapis.com/youtube/v3/search?key=<Valid-API-Key-Here>
  3. Replace the value of the key parameter in the URL with the Stripo's disclosed API key; i.e. โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ. Therefore, the URL will become: https://youtube.googleapis.com/youtube/v3/search?key=โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
  4. Now, visit the URL you crafted in Step 3, and you will see that the YouTube Data API responds back with the results it should show for this particular API endpoint.

Supporting Material/References:

  • I have attached a screenshot of the API keys being disclosed in the disclosed report along with this report.
  • I have also attached a sample Proof-of-Concept response that YouTube Data API showed for one of the YouTube API requests made using the Stripo's YouTube API Key.

Impact

By taking an advantage of this vulnerability, an attacker would be able to use Stripo's YouTube API Key for calling different API endpoints in services provided in the YouTube Data API.

The original report as published on HackerOne, by whoisbinit. 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 API key was not revoked after the original disclosure and was left visible in the public report.

Impact

An attacker could use Stripo's YouTube API key to call YouTube Data API endpoints.

What the attacker needed

Access to the public disclosed report; the API key remains active

The fix

The API key should be revoked, and secrets should be redacted in disclosures.

How it was found

  1. Visit the Stripo hacktivity page and open the disclosed report about leaked API keys.
  2. Observe the Aviary and YouTube API keys shown in the report.
  3. Go to the YouTube Data API documentation and find an endpoint that accepts a key parameter.
  4. Replace the key parameter with the disclosed YouTube API key and visit the URL.
  5. See that the YouTube Data API returns results, confirming the key is still active.

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 use another service. A report about a leaked key was made public, but the key itself was not hidden or cancelled. The researcher found that the key still worked, so anyone could use it to make requests to YouTube on Stripo's behalf.

What is Leaked secrets?

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

More by Binit Ghimire

View all

7 more disclosed reports, best first.

More from Stripo Inc

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.