CVE-2009-0542 SQL injection in n/a
Remote attackers can execute arbitrary SQL commands via a percent character in the username if mod_sql is enabled, potentially leading to code execution or data theft.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2009-0542?
CVE-2009-0542 is a high-severity SQL injection vulnerability in n/a, published on 12 Feb 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
SQL injection vulnerability in ProFTPD Server 1.3.1 through 1.3.2rc2 allows remote attackers to execute arbitrary SQL commands via a "%" (percent) character in the username, which introduces a "'" (single quote) character during variable substitution by mod_sql.
Weakness: CWE-89
Which versions are affected by CVE-2009-0542?
It affects 1 product.
Products include Proftpd Project Proftpd.
How do I fix CVE-2009-0542?
Upgrade to a fixed version.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2009-0542 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0542 exists.
Public exploit code: 2 Exploit-DB entries.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2009-0542, GHSA-m4rf-c9xj-c2gp.