Property
Languagepython
Severitymedium
CWECWE-89: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’)
OWASPA01:2017 - Injection
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

The code builds SQL queries for aiopg using string concatenation or formatting with variables, which can allow untrusted input to alter the query. This makes the application vulnerable to SQL injection when user input is included directly in the SQL string.

Impact#

If exploited, an attacker could manipulate database queries to read, modify, or delete sensitive data, bypass authentication, or execute unauthorized commands. This can lead to data breaches, data loss, or full compromise of the application’s database.