Skip to content
Leaked secrets Disclosed report Beginner

Public and secret api key leaked in JavaScript source

A publicly accessible JavaScript bundle on a staging site contained embedded API keys for third-party services. An attacker who read the file could obtain those keys and potentially misuse the associated services.

lmhu Follow

Originally disclosed on HackerOne

  • Triaged in 25 hours
  • Fixed in 13 days
  • Disclosed after 13 days

Summary: [Summary the vulnerabilities] I am surfing on the stripo website. I found a sensitive data including authentication key written in public accessible javascript file.

URL Vulnerability https://staging.empleio.stripo.email/main.c1965c58f39a0f4aadc3.js

###Steps To Reproduce:

  • Open staging.empleio.stripo.email and add payloads javascript-fuzz
  • Directory sensitive is main.c1965c58f39a0f4aadc3.js parse this json files using jsonparseronline
  • and look response bytes In response you can see Sensitive ApiKey Disclosure
  • Sensitive Information has been leaked on this source page main.c1965c58f39a0f4aadc3.js
  • Open your network browser , this javascript source has high files can leads to (DoS)

Proof On Concept

JavaScript
projectId: null,
userFullName: null,
unSubscribeLink: null,
viewInBrowserLink: null,
initialTab: i.TAB_NAME_CONTENT,
aviaryApiKey: "████████",
youtubeApiKey: "███████",
onChangeFromCodeEditor: null,
onSaveEmail: null,
onSaveTemplate: null,
onUnauthorized: function(e)

Screenshots Proof F989906 F989907

Impact

Information Disclosure & DoS json files

The original report as published on HackerOne, by lmhu. 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 secrets for third-party services were hard-coded into a client-side JavaScript bundle that is served publicly.

Impact

The exposed keys could allow misuse of the associated third-party services, and the reporter also claims the large file could contribute to a denial of service, though this is not demonstrated.

What the attacker needed

Access to the public staging site

How it was found

  1. Open the staging site and inspect its JavaScript files.
  2. Locate the main JavaScript bundle file.
  3. Search the file contents for sensitive values.
  4. Observe the exposed API keys in the source.

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.

Websites often ship a JavaScript file that the browser downloads to run the page. Sometimes developers leave secret keys inside that file, and anyone can open it and read them. Here, keys for external services were visible to anyone who looked at the file.

What is Leaked secrets?

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

More by lmhu

View all

8 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.