Skip to content
CSRF Disclosed report Beginner

CSRF token manipulation in every possible form submits. NO server side Validation

The report claims that CSRF tokens on many forms across the site are stored in cookies and are not validated server-side, so the token value can be altered with a proxy and the request still succeeds. The author says this affects signup, login, profile edits, team creation, donations, password change, identity, email settings and community creation.

mah1ndra Follow

Originally disclosed on HackerOne

  • Disclosed after 18 hours

Web Application is generating CSRF_token values inside cookies which is not a best practice for web applications the revelation of cookies can reveal CSRF Tokens as well. Authenticity tokens should be kept separate from cookies and should be isolated to change operations in the account only.

Multiple CSRF token manipulation found across liberapay in possible form submits

  1. Both signup and login.

2.After logging in. In profile section: All the following sections are vulnerable. =>Name, Avatar, Currencies,
Goal, Statement, Accounts ElseWhere, Privacy. Their URLs

https://liberapay.com/<username>/edit/username https://liberapay.com/<username>/edit/avatar https://liberapay.com/<username>/edit/currencies https://liberapay.com/<username>/edit/goal https://liberapay.com/<username>/edit/statement https://liberapay.com/<username>/edit/elsewhere https://liberapay.com/<username>/edit/privacy

  1. In Account Elsewhere section. We can link all other platforms and delete them. CSRF token manipulation can be done while deleting them. Cause no server check.
  2. In About > teams section: where we can create teams also vulnerable to CSRF token Manipulation.

URL: https://liberapay.com/about/teams 5. Liberapay Donation section is also Vulnerable to CSRF token Manipulation.

URL: https://liberapay.com/Liberapay/donate 6. Settings > password change: also vulnerable to CSRF token Manipulation.

URL: https://liberapay.com/<username>/settings/ 7. In Identity Section: where we can Submit 1.Personal info 2.Organisation Info 3. Legal Representation details.

URL: https://liberapay.com/<username>/identity
8. Emails & Notifications sections: where we can add emails and update notification options through checkboxes are vulnerable to CSRF token Manipulation.

URL: https://liberapay.com/<username>/emails/ 9. Creating new communities section: Where we can create new communities. It is also Vulnerable to CSRF token Manipulation.

URL: https://liberapay.com/for/new

Impact

The CSRF token Which is inside cookie can be manipulated with proxies. So CSRF tokens can be manipulated.

The server application is not verifying the existence and correctness of CSRF token before processing the request. Actually, It should be verified on the server application and If the token is missing or incorrect, the request should be rejected. This can probe to serious issues if exploited.

A detailed POC Video is uploaded below. Thank you.

Attachments

liberapay.mp4 From the original on HackerOne

The original report as published on HackerOne, by mah1ndra. 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 does not validate the CSRF token at all, and the token is stored in a cookie rather than tied to the form submission.

Impact

If exploited, an attacker could make a logged-in user perform account changes such as editing profile data, changing the password or adding emails, though the report gives no working cross-site proof.

What the attacker needed

Victim is logged in; attacker can use a proxy to alter requests

The fix

The server should verify the CSRF token on every state-changing request and reject requests where it is missing or incorrect.

How it was found

  1. Log in and open a profile edit form such as name or avatar.
  2. Intercept the form submission with a proxy.
  3. Change the CSRF token value in the request.
  4. The server is said not to check the token, so altered requests are not rejected.

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 CSRF token is a random value a site puts in a form so it can tell a real submission from one forged by another website. Here the author says the site keeps that value in a cookie and never checks it on the server, so changing it does not stop the request. If true, another site could make a logged-in user's browser submit actions without their intent.

What is CSRF?

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

More by mah1ndra

View all

1 more disclosed report, best first.

More from Liberapay

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.