Public and secret api key leaked in JavaScript source
A publicly accessible JavaScript file on the job board site contained a Google API key and client ID embedded in its configuration. An attacker who reads the file could obtain these credentials, though the text does not show any concrete abuse beyond disclosure.
- Triaged in 4 days
- Fixed in 10 days
- Disclosed after 46 days
Summary: [Summary the vulnerabilities] I am surfing on the bb3jobboard.topechelon.com website. I found a sensitive data including authentication key written in public accessible javascript file.
URL Vulnerability
###Steps To Reproduce:
- Open bb3jobboard.topechelon.com and add payloads javascript-fuzz
- Directory sensitive is
//job_board.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 job_board.js
- Open your network browser , this javascript source has high files can leads to (DoS)
Proof On Concept
}]), angular.module("jb").config(["lkGoogleSettingsProvider", function(e) {
e.configure({
apiKey: "██████████",
clientId: "██████t.apps.googleusercontent.com",
scopes: ["https://www.googleapis.com/auth/drive.readonly"],
features: ["MULTISELECT_DISABLED"]
})
}]), angular.module("jb.factories").factory("BoardSettingsFactory", ["railsResourceFactory", "PathToResourceRoute", function(e, t) {
var n = e({
url: t.convert(JBRoutes.jobBoardBoardSettingsPath),
name: "boardSettings"
});
Screenshots Proof ████
Impact
Information disclosure
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 Google API key and client ID were hard-coded into the client-side JavaScript configuration, making them readable by anyone who loads the file.
Impact
The exposed key could allow misuse of the associated Google API access, though the text only claims information disclosure and does not demonstrate actual abuse.
What the attacker needed
None
How it was found
- Open the job board website.
- Locate the publicly served JavaScript file named job_board.js.
- Inspect the file's contents and find the embedded API key and client ID.
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 load JavaScript files that anyone can download and read. This one had a secret key written directly inside it, so anyone viewing the file could copy the key. A key is like a password that lets software talk to another service, and if it leaks, others may be able to use that service as the site owner.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.