NoSQL error-based injection
The text describes a technique for extracting data through NoSQL injection by causing errors rather than using boolean conditions. An attacker could use error messages to infer information character by character.
sensepost.com
Published on sensepost.com
In this second blog post (read the first one here), on NoSQL injection, I discuss how to do error-based injection. I think this might be a novel approach – at least my Google search-fu isn’t finding anything.
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 passes unsanitised user input into a NoSQL query, allowing the attacker to alter query logic and trigger errors that leak information.
Impact
An attacker could extract sensitive data such as another user's password character by character through error-based inference.
What the attacker needed
Vulnerable NoSQL $where injection
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.
NoSQL databases are a type of database that don't use traditional SQL queries. Injection happens when user input is mixed into a database query without proper checks, letting an attacker change the query's meaning. This post talks about a way to learn data by making the database produce error messages, instead of asking yes/no questions.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.