Skip to content
Leaked secrets Disclosed report Beginner

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.

lmhu Follow

Originally disclosed on HackerOne

  • 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

JavaScript
}]), 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

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

  1. Open the job board website.
  2. Locate the publicly served JavaScript file named job_board.js.
  3. 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.

More by lmhu

View all

8 more disclosed reports, best first.

More from Top Echelon Software

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.