Easy $$ Bounty for leaked token in java script url
A Wistia API token was exposed in a JavaScript file on the victim's website. An attacker could use the token to read, upload, and delete the victim's Wistia projects.
Published on medium.com
While participating in a private program on HackerOne, I discovered a leaked Wistia token on a website, which I’ll refer to as victim.com. Using Burp Suite to inspect a JavaScript file (nuxt/.js), I found a token formatted as:
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 a secret API token was hardcoded into client-side JavaScript, making it publicly accessible.
Impact
An attacker could potentially delete all of victim.com’s projects on Wistia.
What the attacker needed
None
The fix
The issue was promptly fixed, likely by removing the token from the JavaScript file.
How it was found
- Inspect a JavaScript file on the website using Burp Suite.
- Find a Wistia API token in the file.
- Check the token's validity and permissions using Wistia's documentation.
- Upload a test project to confirm write access.
- Delete the test project to confirm delete access.
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 secret token was left in a JavaScript file that anyone can download. That token acted like a password for a video service, so anyone who found it could access and change the victim's videos. The fix was to remove the token from the public file.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.