Skip to content
Leaked secrets Write-up Beginner

Zendesk Access Token Disclosed in a JavaScript File Allowing Ticket Access

A third-party analytics JavaScript file referenced a staging agent file that contained a Zendesk access token and subdomain. Anyone who read the file could use the token to call the Zendesk API and read the organisation's support tickets.

Anzil Follow

Published on medium.com

https://content.<redacted>.com/agent/static/xxxxx9a-6276-4aaa-4440-ffe442xxxxxx/pendo-staging.js.

Anzil, 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

Likely a staging configuration file containing a live Zendesk API token was published to a public content host and referenced from a production analytics script.

Impact

The token allowed unauthorised read access to the organisation's Zendesk support tickets, which could expose personal data and internal communications.

What the attacker needed

None

The fix

The staging file should be removed from public hosting and the exposed token rotated, with secrets kept out of client-side JavaScript.

How it was found

  1. Browse the web application and note requests to the third-party analytics service.
  2. Open the referenced analytics JavaScript file and find the staging agent URL inside it.
  3. Fetch the staging file and read the embedded Zendesk subdomain and token.
  4. Call the Zendesk tickets API with the token to confirm 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 website loaded a script from an analytics company, and that script pointed to a second file that was not meant to be public. That second file contained a password-like token for the company's helpdesk system, Zendesk. Anyone who found the file could use the token to read customer support tickets.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.