Little bug, Big impact. 25k bounty
The web application exposed Stripe API keys, including a secret key, in its front-end JavaScript. An attacker could use these keys to process payments or access sensitive data.
Published on blog.prodefense.io
{{media:0}}
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 developers hardcoded sensitive API keys directly into client-side JavaScript instead of keeping them on the server.
Impact
An attacker could use the exposed Stripe secret key to process payments or access sensitive data, potentially leading to financial loss or data breaches.
What the attacker needed
Access to the web application
The fix
The keys should be removed from client-side code and kept on the server, and any exposed keys should be rotated.
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.
The website's code that runs in your browser contained secret passwords (API keys) for a payment service. Anyone who looked at the code could find these keys and potentially misuse them to access or manipulate payment information.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.