The Anatomy of a Critical Bug
A publicly accessible JavaScript file on a production subdomain contained admin JWTs and third-party service tokens. An attacker could use these credentials to access administrative functionality or third-party services.
infosecwriteups.com
Published on infosecwriteups.com
Hey fellow Bug Hunter or Security Researcher, As promised in my previous write-up Accessing Admin Directory, I’m back with another one — this time, a Critical Severity bug that builds directly on the last discovery.
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
Impact
The exposed tokens could allow an attacker to access admin functionality or third-party services, though the report does not specify the exact extent of access.
What the attacker needed
None
How it was found
- Fuzz subdomains with a pattern to find a production subdomain that returns 200 OK.
- Access a JavaScript file on that subdomain.
- Notice a reference to another JavaScript file.
- Try to access the referenced file at the root, which returns 404.
- Fuzz directories to find the correct path for the referenced file.
- Open the JavaScript file and find admin JWTs and third-party tokens.
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 contained secret login tokens (like passwords) for administrators and other services. If a bad person found this file, they could use those tokens to pretend to be an admin or access other systems.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.