Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade github.com/uptrace/bun/driver/pgdriver
to version 1.2.15 or higher.
Affected versions of this package are vulnerable to SQL Injection via the appendArg
function in /pgdriver/format.go
. When a placeholder is directly preceded by a minus -
and not separated by any whitespace, the library does not handle the particular case when a negative number is inserted for the placeholder. This leads to two consecutive minus signs in the query, turning them into the start of a line comment.
Note:
To exploit this behavior and cause SQL Injection, the following conditions must be met by a parameterized query:
a placeholder for a numeric value must be immediately preceded by a minus (as described above).
there must be a second placeholder for a string value after the first placeholder; both must be on the same line.
both parameter values must be user-controlled.