Skip to content
IDOR Disclosed report Intermediate

Mass Accounts Takeover Without any user Interaction at https://app.taxjar.com/

An improper access control flaw in TaxJar's Accountant Access form let an attacker change the email address on any account by manipulating the account number in a POST request. This could lead to account takeover for a large number of users.

mr_asg Follow

Originally disclosed on HackerOne

High 8.1 View original
  • Triaged in 19 hours
  • Fixed in 22 hours
  • Paid in 42 hours
  • Disclosed after 50 days

Summary by the program

@mr_asg discovered an improper access control issue in TaxJar. This could have allowed for account takeover using the email change functionality. The vulnerability was caused by not correctly validating whether or not the reset password token was connected to the user being reset and was resolved by relying on the user fetched from the reset password token itself instead of the account ID provided in the URL.

Summary by the researcher

I discovered an IDOR in the Accountant Access form in Taxjar. This could have allowed an attacker to take over any user's account. The vulnerability was caused by manipulating the user's number in the POST request to /accounts/<ACCOUNT_NUMBER> with adding the user's email parameter carrying the attacker's email in the payload data in the request, which causing changing the email in the account associated with the number that was manipulated . And by a Proof Of Concept Python script, I made a loop in which the account number and the attacker’s email were changed every time, which demonstrated the attacker’s ability to carry out the attack against a large number of accounts . The Write-up here : https://medium.com/@mrasg/mass-account-takeover-in-stripes-taxjar-a-one-click-exploit-6fd13bb75f04

The original report as published on HackerOne, by mr_asg. 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 trusted the account number supplied in the request URL instead of verifying that the authenticated user owned that account.

Impact

An attacker could potentially take over any user's account by changing their email, and a script demonstrated this against a large number of accounts.

The fix

The issue was resolved by relying on the user fetched from the reset password token instead of the account ID provided in the URL.

How it was found

  1. Open the Accountant Access form while logged in.
  2. Send a POST request to the accounts endpoint.
  3. Replace the account number with a victim's account number.
  4. Add the attacker's email as the email parameter in the request body.
  5. Submit the request to change the victim's email.
  6. Repeat with different account numbers to mass-change accounts.

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.

The site used an account number in the request to decide which account to change, without checking it belonged to you. An attacker could swap in someone else's number and change their email, potentially taking over the account.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by mr_asg

View all

4 more disclosed reports, best first.

More from Stripe

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.