Skip to content
Access control Disclosed report Beginner

Banned user still has access to their deleted account via HackerOne's API using their API key

A banned user's API token remains valid, allowing access to account data such as reports, balance, earnings, payouts, weaknesses, and programs. An attacker with a previously generated token could continue to use the API despite the ban.

mrmax4o4 Follow

Originally disclosed on HackerOne

Medium 5.0 View original
  • Triaged in 11 days
  • Fixed in 2 months
  • Paid in 11 days
  • Disclosed after 3.1 years

Hello team,

##Summary:

When a user's account gets banned (permanently), he is no longer able to submit reports, and as soon as there are no pending payouts the account will be deleted. The user won't have access to the account(login) or show his profile. By using a previously generated API token(before the ban) the user will be able to:

  • Get Reports
  • Get Balance
  • Get Earnings
  • Get Payouts
  • Get Weaknesses
  • Get Programs

Generally, the user will be able to do the following actions https://api.hackerone.com/hacker-reference/#hacker-reference.

##Steps to reproduce:

  • Create a new account
  • Ban the account permanently (I am waiting for approval and I will share an API token for a banned account).

let's assume the

  • Username: mrtst
  • API token: XXXXXXXXXXXXXXXXXXXX=

Exploit:

  • Get Reports (Get a single report also):

curl "https://api.hackerone.com/v1/hackers/me/reports" -X GET -u "mrtst:XXXXXXXXXXXXXXXXXXXX=" -H 'Accept: application/json'

  • Get Balance:

curl "https://api.hackerone.com/v1/hackers/payments/balance" -X GET -u "mrtst:XXXXXXXXXXXXXXXXXXXX=" -H 'Accept: application/json'

  • Get Earnings:

curl "https://api.hackerone.com/v1/hackers/payments/earnings" -X GET -u "mrtst:XXXXXXXXXXXXXXXXXXXX=" -H 'Accept: application/json'

  • Get Payouts:

curl "https://api.hackerone.com/v1/hackers/payments/payouts" -X GET -u "mrtst:XXXXXXXXXXXXXXXXXXXX=" -H 'Accept: application/json'

  • Get Weaknesses:

curl "https://api.hackerone.com/v1/hackers/programs/{handle}/weaknesses" -X GET -u "mrtst:XXXXXXXXXXXXXXXXXXXX=" -H 'Accept: application/json'

  • Get Programs:

curl "https://api.hackerone.com/v1/hackers/programs" -X GET -u "mrtst:XXXXXXXXXXXXXXXXXXXX=" -H 'Accept: application/json'

Impact

A banned user can fully access his deleted account.

I noticed that you are restricting testing any ban bypass, this is just for testing purposes, and this issue has been discovered and exploited on a test account - Hope I didn't violate any of the rules.

I will share the token as soon as I get the approval.

Best, @mrmax4o4

The original report as published on HackerOne, by mrmax4o4. 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 API authentication does not check whether the account is banned or deleted, so valid tokens continue to work.

Impact

A banned user can fully access his deleted account.

What the attacker needed

A previously generated API token; account banned

How it was found

  1. Create a new account
  2. Ban the account permanently
  3. Use the previously generated API token to make API requests

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 an account is banned, the user should lose all access. Here, an old API key still worked, so the banned user could still read their account information through the API. This is like changing the locks but leaving a spare key under the mat.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by mrmax4o4

View all

3 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.