Skip to content
CSRF Disclosed report Beginner

CSRF to Account Take Over Bug

A page hosted elsewhere could change a logged-in victim's email address via the user-settings endpoint; the reporter suggests using forgot password afterwards.

defmax Follow

Originally disclosed on HackerOne

  • Fixed in 29 hours
  • Disclosed after 5 months

Hello Sir

This is N B Sri Harsha

I Have Found An CSRF to Account take over bug

effected url :- https://www.irccloud.com/chat/user-settings

I have wrote an html code and uploaded it , please check that out

u have to fill email address , there , and click on update settings

U will get output as {"_reqid":0,"success":true}

Thats It , the victims email address will be changed

after that he goes to forgot password and changes the password

hope this security issue will be fixed soon

The original report as published on HackerOne, by defmax. 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 user-settings endpoint performed state-changing updates based only on the session cookie, with no CSRF token or origin check.

Impact

An attacker could change a logged-in victim's email address and then use the forgot-password flow, potentially leading to account takeover.

What the attacker needed

Victim is logged in; victim visits attacker page

The fix

The settings endpoint should verify requests originate from its own pages before applying changes.

How it was found

  1. Host an HTML page that submits a settings update to the user-settings endpoint with a new email address.
  2. Get a logged-in victim to load that page.
  3. The settings update succeeds and the victim's email address is changed.
  4. The victim then uses the forgot-password flow with the new email to change the password.

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 are logged in to a site, your browser sends your session cookie with every request to that site, even ones triggered by another page. If the site does not check that the request really came from its own pages, an attacker's page can silently submit a form on your behalf. Here that let the attacker change the victim's email, and then use the 'forgot password' feature to receive the reset link and take over the account.

What is CSRF?

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

More by defmax

View all

7 more disclosed reports, best first.

More from IRCCloud

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.