Skip to content
Business logic Write-up Intermediate

Bypass Premium Account Payment (GetPocket)

The report claims that adding an X-Forwarded-For header with a loopback address to a payment request bypassed Stripe's fraud checks and granted a premium account without payment. The author says the account was upgraded after the request returned 200 OK.

querylab Follow

Published on medium.com

Greetings Guys! 🤙 Today I bring you a Bug I found at the Beginning of the Year 2022 You know GetPocket Web Application, a popular for Saving Online Content. It is for iOS, Android, and other mobile devices as well as desktop.

querylab, 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 the payment integration trusted a client-supplied forwarding header to determine the request origin, and Stripe Radar fraud checks were not enabled.

Impact

An attacker could obtain a premium subscription without paying, according to the author; the report was closed as a duplicate.

What the attacker needed

A GetPocket account; ability to intercept and modify requests; a premium purchase flow

How it was found

  1. Create a GetPocket account using Mozilla Firefox OAuth.
  2. Intercept the premium purchase request in Burp Suite and send it to Repeater.
  3. Add an X-Forwarded-For header with a loopback address and send the request.
  4. Observe a 200 OK response and a purchase confirmation email.
  5. Check that the account now has premium features.

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 payment processor checks whether a payment looks suspicious. The author says they added a header that made the request look like it came from the server itself, and the payment was accepted without real funds. This is a business logic flaw where the server trusted a client-supplied header.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.