Skip to content
Business logic Write-up Intermediate

How I Hacked Medium (And Medium Hacked Me Back)

Medium's signup flow allowed the email parameter to be changed after OAuth, enabling creation of accounts with non-existent emails. This let the author repeatedly delete and recreate accounts to read paywalled articles for free.

medium.com

Published on medium.com

I used to write on Medium — had followers, decent engagement, and articles that got noticed. But one day, I stumbled upon a loophole that let me read all the paywalled stories for free.

Vivek PS, 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 signup endpoint trusted a client-supplied email parameter instead of using the email from the OAuth token, allowing arbitrary email values.

Impact

An attacker could create unlimited accounts to bypass Medium's paywall and read premium content for free.

What the attacker needed

A Google account; ability to intercept and modify signup request

How it was found

  1. Sign in with a real email via Google OAuth.
  2. During signup, modify the email parameter to a non-existent address before submitting.
  3. Submit the form to create a new account.
  4. Read one free paywalled article.
  5. Delete the account and repeat.

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.

When you sign up for a website using Google, the site often passes your email address in a hidden form field. If the site trusts that field without checking it, you can change it to any address you like. Here, that let the author make unlimited new accounts, each getting one free paywalled article.

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.