Skip to content
IDOR Write-up Intermediate

Explotando Mass Assignment + Integer Sequence Exhaustion — Appl

A user who could create publications was able to supply an arbitrary integer id in the POST body, which the application accepted and wrote into an auto-increment column. By setting the id just below the 32-bit integer maximum, the next legitimate inserts pushed the counter past its limit and broke the ability to create new publications.

Miguel Segovia Gil Follow

Published on medium.com

Contenido original, no generado por IA y basado en dos reportes realizados por mi persona. Además, lo curioso es que no he visto a nadie explotando o comentando este tipo de vulnerabilidad.

Miguel Segovia Gil, 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 create-publication endpoint bound request fields directly onto the database model, so a client-supplied id was written into an auto-increment column and the counter was synced to that value plus one.

Impact

The application became unusable and no user could publish new content, though the author notes the severity depends on ease of exploitation and rates it P2 or P3.

What the attacker needed

A normal user account; ability to create publications; a couple of later legitimate inserts

How it was found

  1. As a normal user, send a create-publication request with an id field set just below the 32-bit integer maximum.
  2. Wait for legitimate users to create a couple more publications so the auto-increment counter reaches the maximum.
  3. Observe that the counter overflows and no user can create new publications.

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.

Many databases give each new row a number that goes up by one each time, so the next row gets the next number. Here the application let a normal user choose that number themselves instead of letting the database pick it. The user picked a number very close to the largest value the field can hold, so after a couple of normal posts the counter had nowhere left to go and new posts could no longer be saved.

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.

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.