The Power of Manual Exploration: How I Earned €300 by Digging D
Hardcoded client credentials were found in a JavaScript file on the in-scope shop domain, and they allowed retrieval of all discount coupon codes, old and new. Anyone with those codes could buy products at discounted prices.
Published on doordiefordream.medium.com
Today, I want to share an interesting security finding with all of you. I discovered this vulnerability in an Intigriti public program,
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 secrets for a coupon service were embedded in client-side JavaScript instead of being kept on the server.
Impact
Anyone could obtain every discount coupon code and buy products at reduced prices; the company rated this medium severity because of the confidentiality impact.
What the attacker needed
Access to the public shop domain; none
How it was found
- Test every function on the in-scope shop domain.
- Inspect the domain's JavaScript files with a code formatter.
- Read the JavaScript file line by line without using search.
- Find hardcoded client credentials in the file.
- Use the tokens to retrieve all discount coupon codes.
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 website's JavaScript files are sent to every visitor's browser, so anything written in them can be read by anyone. Here, secret login details for a service were left inside that code. With them, a person could ask the service for the shop's discount codes and use them to pay less.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.