Skip to content
Business logic Disclosed report Intermediate

Unauthorized Blogs Creation

A new account that was not yet eligible to create blog posts could bypass the restriction by taking a blog creation request from an eligible account, swapping in the new account's session cookies, and following the returned redirect. This allowed the attacker to create and edit a blog post on the ineligible account.

albetisi Follow

Originally disclosed on HackerOne

  • Triaged in 19 hours
  • Fixed in 16 days
  • Disclosed after 2.0 years

Hi,

An unauthorized blog creation vulnerability has been identified on the lichess.org . By manipulating certain request and leveraging the session cookies of a different account, an attacker can bypass account-specific limitations and create a blog post on an account that is not yet eligible to do so.

Steps: 1.Open a new account and attempt to create a blog post, you will face this message below.

Screenshot_from_2023-08-31_05-24-12.png
Screenshot_from_2023-08-31_05-24-12.png From the original on HackerOne

2.Log in with a different browser and an old account that has the ability to create blog posts , go to create some blog with test data and solve the capatcha, but before click save fire up the burp suite, catch the request and send it to repeater and then drop it

Screenshot_from_2023-08-31_05-28-58.png
Screenshot_from_2023-08-31_05-28-58.png From the original on HackerOne

3.Here ,I Replaced the cookies in the request with the cookeis of the new account ,I clicked send and response be like:

Screenshot_from_2023-08-31_05-36-23.png
Screenshot_from_2023-08-31_05-36-23.png From the original on HackerOne

4.I coppied the location url and I visited it in the browser while logged in with the new account. https://lichess.org/[The Location Header]

5.You can see that as a new account we are able to edit the content and submit the form

6.Verify that the unauthorized blog post is successfully created in the new account.

Screenshot_from_2023-08-31_05-39-16.png
Screenshot_from_2023-08-31_05-39-16.png From the original on HackerOne

Recommendation:

The platform's blog creation feature should be thoroughly reviewed and validated to ensure that all account restrictions are enforced correctly.

Impact

Allows unauthorized users to circumvent the intended restrictions on blog creation and create posts on accounts that are not yet eligible to do so. This lead to the spread of unauthorized or malicious content on the platform, potentially damaging the platform's reputation and user experience.

The original report as published on HackerOne, by albetisi. 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 blog creation endpoint did not re-check the account's eligibility when processing the final save request, relying only on a check made earlier in the flow.

Impact

Allows unauthorized users to circumvent the intended restrictions on blog creation and create posts on accounts that are not yet eligible to do so, which could lead to the spread of unauthorized or malicious content on the platform.

What the attacker needed

A new account that cannot create blogs; an old account that can create blogs; ability to intercept and modify requests

How it was found

  1. Open a new account and try to create a blog post; a restriction message appears.
  2. In a different browser, log in with an old account that can create blogs, start a blog with test data, solve the captcha, and intercept the save request in Burp Suite before dropping it.
  3. Replace the cookies in the intercepted request with those of the new account and send it.
  4. Copy the Location URL from the response and visit it in the browser while logged in as the new account.
  5. Edit the content and submit the form.
  6. Verify that the blog post is created on the new account.

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.

A new account could not create a blog. By reusing a save request from an allowed account and changing only the login cookies, the new account could finish the blog anyway.

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 Lichess

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.