Exposure of service tokens to webpack bundle
Environment variables that were not needed for the application's functionality were accidentally included in the webpack configuration and ended up in the final client-side bundle. Anyone who downloaded the bundle could read those service tokens, though the program found no evidence they were used by unauthorised parties.
- Triaged in 9 hours
- Fixed in 13 days
- Paid in 13 days
- Disclosed after 17 months
Summary by the program
During the build phase, not essential for the application's functionality environment variables were accidentally included in the webpack configuration file. This oversight led to their exposure in the final bundle. The subsequent internal review revealed no evidence of these tokens being used by unauthorized parties.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the build configuration pulled in environment variables that were not required at runtime, so webpack embedded their values into the client-side bundle.
Impact
The tokens were exposed in the bundle, but the program found no evidence of unauthorised use.
What the attacker needed
Access to the public bundle
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 report has not been written yet. The Original tab links to the source.
When a website is built, tools like webpack pack all the code the browser needs into files called a bundle. If secret values such as service tokens are placed in that build configuration, they get copied into the bundle and anyone can read them by viewing the site's files. A token is like a password that lets a program use another service.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.