BotSting

Attack libraryTechnique

Broken access control

The attacker asks, as one user, for a record that belongs to another.

Attacks in the library
17
Cross-user access
17 attacks

What the attacker does

The attacker signs in as themselves and names someone else's order, account, profile or document. Sometimes they simply ask. Sometimes they vary the identifier, or ask for a list wide enough to include it.

Why it works

The lookup tool accepts an identifier and returns the record. Nothing in the tool compares the record's owner with the person asking. The developer assumed the model would only request the current user's records, and the model requests what the conversation asks for.

It is the same flaw that has topped web security lists for years, with a model in the middle.

What BotSting counts as proof

A marked value planted in one test user's record appears in a reply to a different test user. The value was never shown to the second user by any other route.

What to change

  • Enforce ownership in the tool or the data layer, using the authenticated user. This is the whole fix.
  • Remove identifiers from tool arguments where the session already determines them.

Related techniques