Leaking Production Stripe Promo Codes via Unauthenticated Payload
The marketing site's PayloadCMS API exposed global settings without authentication, including active Stripe promotional coupon codes. An attacker could use these codes to obtain unlimited discounts on subscriptions, and also access staff information and Google Ads campaign IDs.
Published on medium.com
During my initial subdomain fingerprinting, the marketing/landing site stood out:
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 the PayloadCMS global endpoints were left publicly accessible without any access control checks, exposing sensitive configuration data.
Impact
Leaked promo codes could be used by anyone to obtain unlimited discounts on subscriptions, causing ongoing revenue loss; additionally, staff information and Google Ads campaign IDs were exposed, aiding social engineering and competitive intelligence.
What the attacker needed
None for accessing the API; a test account to validate codes
How it was found
- Fingerprint the marketing site and discover it uses Next.js and PayloadCMS.
- Probe API routes and find /api/access returns the full schema.
- Request /api/globals/exp-settings and obtain coupon codes without authentication.
- Validate a coupon code against the production Stripe promo endpoint using a test account.
- Create a checkout session with the leaked promo code to confirm a live discounted purchase is possible.
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 content management system (CMS) is software that lets people update a website without coding. This CMS had an API that returned settings data without asking for a password. Those settings included discount codes that could be used on the real payment system, letting anyone get money off.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.