Payment method token being sent to 3rd party analytics service
Payment method tokens were inadvertently sent to a third-party analytics service, and these tokens could be reused to link a credit card to another user's account. An attacker with access to the analytics service could obtain tokens and link cards they do not own, causing monetary impact.
- Triaged in 19 hours
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 2.2 years
Summary by the program
A payment method token represents an individual payment card (credit or debit) and is unique to each merchant (i.e. one credit card will have a different token at Merchant A and Merchant B). These tokens may only be used with the merchant that generated them.
When using Online Ordering, payment method tokens were inadvertently being sent to a 3rd party analytics service. The 3rd party service was not storing the tokens. The exposure is quite limited because to make use of the token an attacker would have had to be positioned within the 3rd party service.
Our configuration has been updated to no longer send these tokens to the service.
The report
Vulnerability Details:
Payment Tokens can be re-used to link the Credit Card to Another Users Account.
When Linking a Credit Card, a url with Payment_method_token will be generated and then the user will be redirected to the generated url

Then, a Request will be Made to orders.upserve.com to Finally Link the Credit Card using the payment_method_token

##Reproduction Steps
1.) Create 2 Accounts on https://app.upserve.com/s/upserve-lounge-test-providence-2
2.) Add a Credit Card
- 4834422077410033|01|2023|730 - for [email protected]
- 4834422073330870|06|2024|582 - [email protected]
3.) While Adding the Credit Cards, Make sure to Capture all Request.
4.) Remove the Credit Card linked to the account of [email protected]
5.) Using the payment_method_token of [email protected] we will link his credit card to the account of [email protected]
6.) Your Credit Card Will be linked to the account of [email protected].
I am Confused:
- The
last_four":"3579"is confusing me here, it doesnt really validate the last 4 digit it just accepts what ever is on the request, you can change it to any 4 digit numbers. - If you Added a MasterCard Credit Card, if the card_type is set to visa, it will show as a Visa Card.
Could you Please Verify on your Endpoint?
- "payment_method_token":"a0543b88d2ddae5d2bd5f8fe"
- [email protected]
also
Important Details Such as Payment Method Tokens are shared thru 3rd Party Analytics.

##Proof of Concept:
Impact
If any attacker can access the 3rd party analytics account, they can get the payment method token of upserve users and use the tokens to link any credit cards to their account and cause a monetary impact to Upserve, a merchant, or a customer ( creating a payment method they dont own)
- Large Scale Fraud
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application sent payment method tokens to a third-party analytics service and failed to verify that the token belonged to the requesting user when linking a card.
Impact
An attacker with access to the third-party analytics account could obtain payment method tokens and link cards they do not own, potentially causing monetary impact to the merchant or customer.
What the attacker needed
Access to the third-party analytics service; two accounts on the target site; ability to add and remove payment cards
The fix
The configuration was updated to stop sending payment method tokens to the third-party service.
How it was found
- Create two accounts on the target site.
- Add a credit card to each account while capturing all requests.
- Remove the credit card from the second account.
- Use the payment method token from the first account to link that card to the second account.
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 report has not been written yet. The Original tab links to the source.
A payment method token is a stand-in code for a credit card, unique to each merchant. Here, these codes were sent to an outside analytics company, and because the system did not check who owned the token, someone could reuse a token to attach another person's card to their own account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.