Skip to content
Info disclosure Write-up Beginner

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.

M V Follow

Published on medium.com

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.

M V, on medium.com

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

  1. Load the target homepage and inspect the HTML source.
  2. Search the source for the keyword 'token:' using browser developer tools.
  3. Find the token inside the window.__NUXT__ object in an inline script.
  4. Extract the token value using a command-line tool.
  5. 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.

More by M V

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.