Skip to content
Business logic Disclosed report Beginner

A single user can subscribe a community multiple times

The subscribe endpoint lacked validation to prevent a user from subscribing to the same community multiple times. An attacker could inflate a community's subscriber count arbitrarily by replaying the subscription request.

mkind Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 42 hours

There is no proper validation while subscribing for a community. A user can subscribe a single community multiple times.

Steps to recreate: Step 1: Open any community Step 2: Click on subscribe button Step 3: Capture the POST request and submit it multiple times Step 4: Check the subscription count

POST Request:

POST /for/nocommunity/subscribe HTTP/1.1 Host: liberapay.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://liberapay.com/for/nocommunity Cookie: __cfduid=d5a7372c0620f73d866bac0869443206a1528250205; csrf_token=hmxFrGGb7FULfeeMuDIIamnotahacker; session="163767:1:VTi89XOnmnZWYLXMBlE8G_a_8gZCZAz5" Connection: close Content-Type: application/x-www-form-urlencoded Content-Length: 43

csrf_token=hmxFrGGb7FULfeeMuDIIamnotahacker

Response:

HTTP/1.1 302 Found Date: Wed, 06 Jun 2018 02:11:26 GMT Connection: close [TRUNCATED]

Impact

Any user can increase his/her community subscriber's count to any number.

The original report as published on HackerOne, by mkind. 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 server did not check whether the user was already subscribed before creating a new subscription record.

Impact

Any user could increase a community's subscriber count to any number.

What the attacker needed

A user account; ability to capture and replay HTTP requests

How it was found

  1. Open any community page.
  2. Click the subscribe button.
  3. Capture the resulting POST request.
  4. Submit the captured request multiple times.
  5. Check the subscription count.

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.

When you click 'subscribe' on a community, your browser sends a request to the server. The server should check if you are already subscribed, but it did not, so sending the same request many times made the subscriber count go up each time. This let anyone artificially boost a community's popularity number.

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.

More from Liberapay

View all

The newest disclosed reports for this program.

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.