Skip to content
Leaked secrets Disclosed report Beginner

Exposure Of Admin Username & Password

A subdomain's page source contained a hardcoded username and MD5-hashed password for an advertising API. An attacker could read the credentials, crack the weak hash, and use the account to access client information.

coyemerald Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 22 hours
  • Fixed in 2 months
  • Disclosed after 3 months

Hello Team, Ther an exposure of your username and password on this subdomain █████

uid: "mtnng",
    passwd: "██████████",

Steps To Reproduce:

Visit ███

Now, press CTRL+U to view the source code of this page,

Look for this code

   console.log(message);
}

}

(function (){
const plid = 73;

const mtnContainer = document.getElementById("mtn20238");
const mtnUri = mtnContainer.childNodes[0].getAttribute("href");
mtnContainer.addEventListener("click", ()=>fetch(mtnUri).catch(()=>{}));

window.mobucksApi.placeAd({
    containerElementId: "mtn20238",
    uid: "mtnng",
    passwd: "███████",
    plid:plid,
    }, () => { 
        typeof mtnNoBanner == "function" && mtnNoBanner(plid,mtnContainer);

Impact

The exposed password is in md5 which I was able to decrypt easily

uid: mtnng hash = bd31568138edbfc0552a1ecc6886ea plain password: ███

And as an attacker, this can be abused in lots of ways such as exposing some client's info

████

Attachments

mtnb.JPG
mtnb.JPG From the original on HackerOne
mtnb2.JPG
mtnb2.JPG

The original report as published on HackerOne, by coyemerald. 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, credentials for a third-party advertising API were hardcoded in client-side JavaScript, and the password was stored as an unsalted MD5 hash that is trivial to crack.

Impact

The cracked credentials could be used to access client information through the advertising service, though the text does not show what data was actually reachable.

What the attacker needed

None

How it was found

  1. Visit the affected subdomain.
  2. View the page source code.
  3. Locate the embedded script containing the credentials.

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.

A website's source code included a username and a scrambled password (a hash) for an advertising service. The hash was made with an old, weak method (MD5), so the reporter could turn it back into the real password. Anyone who viewed the page source could do the same and log in as that account.

What is Leaked secrets?

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

More by coyemerald

View all

1 more disclosed report, best first.

More from MTN Group

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.