Skip to content
Cloud · Secret guide

Leaked Wistia API Token: what to do in the first hour

High severityDetected onlyLast verified · 5 min read

A Wistia API token lets a script or tool act on your Wistia account: upload and delete videos, read and change projects and media, and read the account’s stats, depending on the permissions the token was given. Video libraries often hold unreleased material, customer recordings and internal training content, so read access alone can be a privacy problem. Write access can replace or delete media that your site or course depends on. Revoke the token first, then review the media it touched.

Check your GitHub account for leaked secrets — free

Provider
Wistia
Severity
High
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What a Wistia API Token looks like

Wistia API tokens are long strings of lowercase letters and digits, sixty-four characters in the form this rule looks for. They have no distinctive prefix, so a match depends on the name it is stored under, such as WISTIA_API_TOKEN or a Wistia name in a configuration file:

WISTIA_API_TOKEN="…XXXX"   Wistia API token in a script (masked)

Wistia’s documentation describes creating an access token in your account settings, under the API section, with permissions chosen at creation. The uploader documentation, for example, asks you to tick the upload permission for a token used to send videos. Each token therefore has a scope, and the damage a leak can do depends on that scope. A token limited to uploading is different from one that can delete media across the account.

Wistia also has OAuth applications, which are separate from personal tokens. A user can revoke an application’s access from their own account settings. Know which kind of credential you have before you act, because the steps differ.

How Wistia API Tokens get leaked

  • Upload scripts. A script that sends videos to Wistia, with the token typed in, committed to a repository or shared with a contractor.
  • Front-end code. A token placed in a browser uploader or a mobile app, where anyone who loads it can read the value.
  • Configuration files. A .env file or a plugin setting with the token, copied into a backup, a public theme or a sample project.
  • Build logs. A deployment step that prints its environment, or an error message that includes the request headers.
  • Support threads. A token pasted into a forum post or a ticket to ask why an upload fails.

What to do in the first hour

  1. Revoke the token. Open the API access settings in your Wistia account and revoke the token that leaked. If you cannot find it by name, revoke every token created for the integration and create new ones afterwards. Only the account owner can manage API tokens in many Wistia accounts, so ask the owner if you do not have that access.
  2. Review media changes. Check the videos uploaded, edited and deleted for the period since the token may have been exposed. Look for media you did not upload and for deletions you did not make.
  3. Check projects and sharing. Review the projects and the sharing settings for your videos. A video made public or moved to an open project is a sign that the token was used to change access.
  4. Create a replacement with only the permissions the integration needs, such as upload only if that is all it does. Store it in your secret manager or CI variables.
  5. Check the other secrets in the same file, and rotate any cloud storage key, CMS password or webhook secret that was stored with it.
  6. Clean the code. Remove the value from the files and the history, and check the older commits for copies. See I accidentally pushed an API key to GitHub.

Not sure what else leaked from the same project? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at Wistia

Wistia’s account settings have an API section where access tokens are created and managed. Open the API access settings and look for the list of tokens. Wistia’s documentation on OAuth and authentication is at docs.wistia.com. Sources consulted for this guide did not agree on the exact menu path or the button label for revocation, so this guide could not confirm them. Check the labels on your own account page, and if the option is not there, contact Wistia support and ask them to revoke the token on your behalf.

How LeakWatch detects it

The rule is called “Wistia API Token”. It looks for the word wistia followed by up to forty characters of anything, including line breaks, and then a value of exactly sixty-four lowercase letters or digits with word boundaries on both sides. The name must come before the value and near it. A sixty-four-character string with no Wistia name close by is not reported. The severity is high, with the impact class for SaaS services. This type is not checked live: LeakWatch does not call Wistia with the token it finds.

LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

FAQ

Can a leaked Wistia token delete my videos?

Only if the token was given delete permission. Check the scope of the token in the account settings and in your records, and review the media for deletions after the exposure.

Is an OAuth app connection the same as a token?

No. An OAuth app holds its own grant, and a user can revoke it from the account settings. A personal token is a separate credential, and it is revoked from the API settings. Check which one you have.

Does a private video stay private if the token leaked?

Not if the token can change sharing settings. Check each video’s privacy and the project it belongs to, and set anything that should be private back to private.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with Wistia.