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.
- 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
-
Login to your Akismet account, which has a subscription activated.
-
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.
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
- Log in to an Akismet account that has an active subscription.
- Send a POST request to the account cancellation endpoint, replacing the user ID with any number.
- Observe that the subscription and account are cancelled.
- Send a POST request to the site addition endpoint with a subscription ID and a site URL.
- Observe that the site is added to the subscription.
- 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.