HexBrain

Localize · Report #783258

2-factor authentication can be disabled when logged in without confirming account password

Validstatus
mediumseverity
159upvotes
10 Feb 2020disclosed

How it was found

Description

When users wants to Disable his/her TwoFactor Authentication, they have to know their account password. But using this vulnerability They don't need password to disable it. this will allow hacker who get someone cookie to disabling twofactor auth and also Fullytakeover the account.

How To Reproduce

  1. Open Your BurpSuite and Turn on the intercept
  2. Go To 2Factor Authentication page click the red buttons "Disable two factor ...."
  3. Put any wrong password and copy all the header
  4. Go to repeater and make a POST request to https://localizestaging.com/api/user/two-factor/set also Paste the header here.
  5. add a body request like this method=sms&phone=%2B62-hacker-phone-number then click GO
  6. Bypassed !

Impact

disable twofactor authentication without needing to know the password

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original