ORM Leak: Query filter

Information disclosureExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

The attacker can control the column to filter results by. The ORM provides operators for matching parts of a value. These operators can utilize the SQL LIKE condition in generated queries, perform regex matching based on user-controlled patterns, or apply comparison operators such as < and >.

json
{
  "username": "admin",
  "password__startswith": "p"
}

Interesting filter to use:

  • __startswith

  • __contains

  • __regex

Comments

No comments yet.