
Cloud Vulnerability DB
A community-led vulnerabilities database
When a query is formatted, a parameter value is placed directly after the preceding SQL text. If a placeholder directly follows a minus sign with no space (balance-?) and the bound value is negative, the result contains -- (balance--5), which PostgreSQL, SQLite, MSSQL and Oracle parse as the start of a line comment. Everything after it on the same line is ignored, including later predicates. MySQL and MariaDB are not affected, as they require whitespace after --.
An application is affected only if all of the following hold:
? or named placeholder directly follows a -,select can return rows those conditions would have excluded, and an update or delete can match more rows than intended. The attacker controls only the sign of a numeric value; no SQL text can be injected. Queries generated by the ORM itself never place a placeholder directly after a minus.Fixed in 7.2.12 and 6.6.20.
Put a space between the minus and the placeholder (balance - ?), or validate that the value is not negative.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."