How I Found a CVSS 8.6 Token Exposure in a U.S. Financial Firm’
A live authentication token for a production Sanity CMS was embedded in the public HTML of a Nuxt.js website, allowing unauthenticated read access to the entire database. An attacker could exfiltrate sensitive financial transactions, client profiles, and internal KPIs.
During a routine recon session on publicly accessible web assets, I came across something that shouldn’t exist in the wild a live authentication token for a production content management system, sitting in plain sight inside a financial firm’s homepage HTML.
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
The developer placed a sensitive API token inside Nuxt.js's public runtime configuration, which is serialised and embedded into the HTML sent to every visitor.
Impact
An attacker could read all 2,088 documents in the production database, including financial transactions, client profiles, and internal KPIs, and potentially write to the CMS if the token had write permissions (unconfirmed).
What the attacker needed
None
The fix
The token should be rotated immediately and the configuration changed so the token is not placed in the public runtime config; the report notes the vulnerability is pending remediation.
How it was found
- Load the target homepage and inspect the HTML source.
- Search the source for the keyword 'token:' using browser developer tools.
- Find the token inside the window.__NUXT__ object in an inline script.
- Extract the token value using a command-line tool.
- Use the token to query the Sanity API and confirm read access to the production database.
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 key that should have been kept on the server was accidentally included in the web page code sent to every visitor. Anyone who viewed the page source could copy that key and use it to read the company's private database, including financial deals and client information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.