A WePay access token authorizes API calls on a WePay account, within the permissions granted when it was issued. For a platform that uses WePay to process payments for its users, a token can create checkouts, read payment and payout information and, depending on its scope, act on the merchant account. The main danger is unauthorized payment activity and access to payer data. Revoke the token first, then check what it did.
Check your GitHub account for leaked secrets — free
- Provider
- WePay
- Severity
- High
- Impact
- Payments and customer data
- Checked live by LeakWatch
- No
What a WePay access token looks like
A WePay access token is a long opaque string of letters, digits and underscores. The format this rule targets is 62 characters, without a fixed readable prefix:
XXXXXXXX… WePay access token (masked, 62 characters of letters, digits and underscores)
Because there is no prefix, context identifies it. Look for variables such as WEPAY_ACCESS_TOKEN, an Authorization: Bearer header on calls to the WePay API, or the token option when a WePay client is initialised. Tokens are issued per account or per user through the OAuth flow. Do not confuse them with the application’s client ID and client secret, which identify your platform rather than a specific account. Also check whether a staging token and a production token appear together.
How WePay access tokens get leaked
- Stored credentials in code. A token copied into a configuration file or source to make an integration work, then committed.
- Environment files.
WEPAY_ACCESS_TOKENin a committed.envfile or a container definition. - Database exports and logs. Platforms often store each merchant’s token; a dump, a backup or a verbose log shared for debugging exposes all of them at once.
- Continuous integration. A pipeline file or build log containing the token.
- Support threads and screenshots. A request pasted with an API call or a screen capture that shows the header.
What to do in the first hour
- Revoke the token. Use the WePay account settings or the API route that revokes a token (see the section below). If the token belongs to a merchant on your platform, you may need to ask that merchant to authorize again.
- Issue and deploy a new token through your usual authorization flow, and confirm the integration works.
- Audit payments. Review the checkouts, payments, refunds and payouts since the exposure. Look for payments you did not create, unusual amounts or refunds to unknown payers.
- Check account changes. Look at the account’s bank details for payouts, contact information and any additional users or applications. A changed payout destination is the most urgent sign.
- Contact WePay support. If money moved or a payout destination changed, say so immediately, because payouts can sometimes be stopped.
- Rotate related secrets. If your application’s client secret was in the same file, rotate it too.
- Clean up the code and look for other secrets. See I accidentally pushed an API key to GitHub.
Not sure what else leaked from the same repository? Run a free scan.
Revoke it at WePay
A WePay access token can be revoked by the account holder from the settings of the WePay account, or by the application through the API’s token revocation route. Revoking through the API invalidates the tokens previously issued for that user and application, according to the documentation referenced by third-party scanners. A person has not confirmed the exact menu wording for this guide, WePay is now part of Chase, and the console and documentation may have moved, so look for the section where authorized applications or API access are listed, and follow the WePay documentation or contact support if you cannot find it.
How LeakWatch detects it
The rule is called WePay Access Token. It needs the word wepay in the text, followed within about 40 characters by a value of exactly 62 characters made of letters, digits, underscores and question marks, delimited by word boundaries. The match is case-insensitive. A value of another length, or a 62-character string that is not close to the word wepay, is not reported. Because there is no distinctive prefix, a long identifier near the word can cause a false alert, so check the match. The severity is high. This type is not checked live: LeakWatch does not send any request to WePay with the value it found.
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
Is my customers' card data exposed?
Not through the token itself, because WePay holds card data. The token can expose payment records, payer names and contact details, depending on its scope.
Does revoking the token stop the attacker immediately?
Once the token is revoked at WePay, calls with it should be refused. Confirm by checking that your own integration fails with the old value, and that the new one works.
Do I need to tell my users?
If the token gave access to their payment data, you may have a duty to notify them. Check your legal obligations and the activity logs before deciding.