The Bug I Almost Ignored Paid My First Bounty — And Why Context Changes Everything
A publicly accessible JavaScript file on a crypto exchange exposed internal API URLs, private IP addresses, load balancer DNS names, and multi-environment configurations. An attacker could use this information to map internal infrastructure and plan further attacks.
Published on medium.com
After the Layer3 informative and months on AnyTask with nothing to show financially, I went back to HackenProof and picked Phemex — a crypto derivatives exchange.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the JavaScript file was deployed without removing or obfuscating sensitive configuration data, leaving internal infrastructure details exposed to anyone.
Impact
An attacker could learn the internal structure of the exchange's services and environments, which could help them plan further attacks, though the report does not demonstrate actual exploitation.
What the attacker needed
None
The fix
The JavaScript file should be reviewed to remove or obfuscate internal configuration details before deployment.
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 write-up has not been written yet. The Original tab links to the source.
A JavaScript file that anyone can download from a website contained details about the company's internal servers, such as private network addresses and server names. This is like leaving a map of your building's back rooms in the lobby. An attacker could use that map to find weak spots, though the report does not show they actually broke in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.