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.
- 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.jsparse 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
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
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
- Open the staging site and inspect its JavaScript files.
- Locate the main JavaScript bundle file.
- Search the file contents for sensitive values.
- 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.