**My first shot with Bugbounty Radar and I hit a vuln — bounty coming soon?**
An internal API endpoint on a development subdomain lacked authorisation checks and relied on a token generated with a hardcoded secret exposed in frontend JavaScript. An attacker could forge a valid token and retrieve internal configuration data, including AWS credentials.
I’m just an ordinary bug bounty hunter who’s passionate about cybersecurity — the kind of person whose name you’ll never see on the HackerOne leaderboard.
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 token generation logic and hardcoded secret were exposed in client-side JavaScript, and the API endpoint did not enforce proper authorisation beyond a forgeable token.
Impact
An attacker could access internal configuration data, including AWS credentials, potentially leading to further compromise of cloud resources.
What the attacker needed
Access to the development subdomain; Knowledge of the token generation logic
The fix
The token generation should not be exposed client-side, the hardcoded secret should be removed, and the API should enforce proper server-side authorisation.
How it was found
- Subscribe to asset updates for a Bugcrowd program using a search query.
- Receive a notification about a new subdomain api-dev.xxxxxx.com.
- Visit the subdomain and observe a Django project with unminified JavaScript files.
- Fuzz paths and discover /api/internal/status and /api/internal/getReport endpoints.
- Inspect JavaScript files and find token generation logic with a hardcoded secret.
- Generate a valid token using the exposed logic and access the getReport endpoint, retrieving AWS 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 write-up has not been written yet. The Original tab links to the source.
A development website had an internal API that was supposed to be protected by a secret token. However, the code that creates that token was visible to anyone in the browser, and the secret key was hardcoded there. So anyone could make a valid token and access sensitive configuration data, including cloud credentials.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.