Skip to content
CSRF Disclosed report Beginner

Akismet Several CSRF vulnerabilities

Akismet's web application lacked CSRF protections on multiple state-changing endpoints, allowing an attacker to cancel a victim's account or subscription and add sites to a subscription. The attacker could perform these actions on behalf of a logged-in victim without their knowledge.

eboda Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 11 days
  • Paid in 11 days
  • Disclosed after 43 days

Summary

Akismet is vulnerable to CSRF allowing an attacker to cancel accounts of victims, add sites, remove subscriptions, etc.

Steps to reproduce Account cancelation

  1. Login to your Akismet account, which has a subscription activated.

  2. The following POST request will cancel the subscription and the account:

    https://akismet.com/api/account/1/cancel

The 1 can be replaced with any number. The userid was originally there, but I noticed that it actually just gets ignored.

Steps to reproduce other CSRF

Basically all actions on Akismet are vulnerable to CSRF. Here are some further examples (1 can be replaced with 2, 3, etc):

Adding a site to a subscription:

POST /api/activation/create

subscriptionId=1&site_url=foo.bar

foo.bar is now added to subscription 1

Cancel specific subscription:

POST /api/subscription/1/cancel

Subscription 1 is now canceled.

The original report as published on HackerOne, by eboda. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 did not use anti-CSRF tokens or verify the Origin/Referer header on state-changing requests.

What the attacker needed

Victim is logged in to Akismet; victim visits attacker-controlled page

How it was found

  1. Log in to an Akismet account that has an active subscription.
  2. Send a POST request to the account cancellation endpoint, replacing the user ID with any number.
  3. Observe that the subscription and account are cancelled.
  4. Send a POST request to the site addition endpoint with a subscription ID and a site URL.
  5. Observe that the site is added to the subscription.
  6. Send a POST request to the subscription cancellation endpoint with a subscription ID.

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.

CSRF (Cross-Site Request Forgery) is when a malicious website tricks your browser into sending a request to another site where you are logged in, without you intending to. Here, because Akismet did not check that requests came from its own pages, an attacker could make your browser cancel your account or add sites to your subscription just by visiting a crafted page.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by eboda

View all

6 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.