Skip to content
DoS Write-up Intermediate

Ability to Deny Subaccounts feature from all users

The application allowed a user to set the ID of a sub-account to an arbitrary large value, including the maximum 32-bit integer. By doing so, the attacker caused the ID counter to reach its limit, so that all clients were unable to create new sub-accounts.

mostafaaboelnour19 Follow

Published on medium.com

I will share with you how my friend Mostafa Mamdoh and I were able to deny all users from creating sub-accounts in the application.

0xAb031n0uR, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application trusted a user-supplied ID value and used it to set the next ID counter without validating that it was within a safe range.

Impact

All clients were unable to create new sub-accounts, causing a denial of service for that feature.

What the attacker needed

A user account with permission to create sub-accounts

How it was found

  1. Edit a permission for a sub-account and observe the request containing an id field.
  2. Change the id to a large value such as 1e9 and notice the id becomes 1000000000.
  3. Create another sub-account and see its id is 1000000001.
  4. Change the id to the maximum integer 2147483647.
  5. Observe that any client trying to create a sub-account now gets a server error.

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 write-up has not been written yet. The Original tab links to the source.

Every sub-account has a unique number called an ID. The application let a user choose that number freely. The attacker chose the largest possible number, so the system could not give out any more numbers, and nobody could create new sub-accounts.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.