Skip to content
CSRF Disclosed report Intermediate

Non-changing "_idnonce" value leads to CSRF on accounts at https://intensedebate.com for account takeover

The anti-CSRF token '_idnonce' on the account settings page does not change when the user's email is changed, so an attacker who knows the token can forge a request to change the victim's email to the attacker's address. The attacker can then reset the password and take over the account.

hackxsd_rootx Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Disclosed after 18 days

Summary:

The "_idnonce" value on https://intensedebate.com protects victims from CSRF attacks. However, this value is not changing with changed user ids of same account (_idnonce value is same in request from user id 'X' and user id 'Y' when 'X' is changed to 'Y'). It leads to CSRF on victim's account (prospective user who is going to signup on https://intensedebate.com for legitimate account). I demonstrate that account takeover is possible due to this vulnerability of knowing the secret token i.e. "_idnonce" value.

An attacker will create account with own email address. Considering that he's targeting account takeover, the attacker will note the value of "_idnonce" while making the request to change email to the victim's email (prospective user who is going to signup on https://intensedebate.com for legitimate account).

When the victim tries to signup on https://intensedebate.com, he's denied by the system since the email already exists. The victim obtains the password reset link on his email to change the password, verifies his email id, and operates the account. Both email id and password have been changed, however, any new request of changing email id will have the same "_idnonce" value. It will be exploited by the attacker for CSRF to change victim's email id to attacker's email id.

Platform(s) Affected:

User accounts at https://intensedebate.com

Steps To Reproduce:

  1. Sign up on https://intensedebate.com as attacker with own email address and verify it to operate the account.
  2. Change email id on Account section of https://intensedebate.com/edit-user-account page to the victim's email (prospective user who is going to signup on https://intensedebate.com for legitimate account). Note down the "_idnonce" value by observing the request in Burp. You are logged out from the account by application when you change email id.
  3. As a victim, try to sign up on https://intensedebate.com using different browser. The system will tell that email already exists.
  4. Since the victim can't sign up, the way to claim this account is resetting the password using Forgot Password feature. Do so as the victim and verify the account to operate it.
  5. On the same (victim's) browser, load the following HTML page as PoC of CSRF. Before loading the page, change xyz123 to the _idnonce value noted down by attacker in Step 2 and also change [email protected] to the attacker's email id. [Keep the double quotes in both values].
<html><form enctype="application/x-www-form-urlencoded" method="POST" action="https://intensedebate.com/edit-user-account"><table><tr><td>_idnonce</td><td><input type="text" value="xyz123" name="_idnonce"></td></tr> <tr><td>txt_email</td><td><input type="text" value="[email protected]" name="txt_email"></td></tr> <tr><td>txt_old_pass</td><td><input type="text" value="" name="txt_old_pass"></td></tr> <tr><td>txt_new_pass</td><td><input type="text" value="" name="txt_new_pass"></td></tr> <tr><td>txt_new_pass_repeat</td><td><input type="text" value="" name="txt_new_pass_repeat"></td></tr> <tr><td>chk_email_reply</td><td><input type="text" value="T" name="chk_email_reply"></td></tr> </table><input type="submit" value="https://intensedebate.com/edit-user-account"></form></html>

Both email id and password have been taken by the victim, however, the request of changing email id will work with the same "_idnonce" value. As the attacker, reset the password of target account using Forgot Password feature and verify the account to operate it i.e. account takeover.

Impact

Non-changing "_idnonce" value leads to CSRF on accounts at https://intensedebate.com for account takeover.

The original report as published on HackerOne, by hackxsd_rootx. 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 application reuses the same anti-CSRF token across email changes instead of generating a fresh one, so a token learned before the victim claims the account remains valid.

Impact

An attacker could take over a victim's account by changing the victim's email to the attacker's address and then resetting the password.

What the attacker needed

Attacker has an account; attacker knows the victim's email; victim clicks or loads the attacker's page

How it was found

  1. Sign up as attacker with own email and verify the account.
  2. Change the account email to the victim's email and note the '_idnonce' value from the request.
  3. As the victim, try to sign up and see that the email already exists.
  4. Reset the password via Forgot Password and verify the account.
  5. Load a crafted HTML page in the victim's browser with the noted token and attacker's email to submit the change-email form.
  6. Reset the password of the target account and verify it to take over.

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 secret value a website puts in forms to prove the request came from its own pages, not from an attacker's site. Here that secret stayed the same even after the account's email changed, so an attacker who learned it once could reuse it to make the victim's browser send a request that changes the victim's email to the attacker's. The attacker then uses the password reset feature to take over the account.

What is CSRF?

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

More from Automattic

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.