Description
IPFire versions prior to 2.29 (Core Update 198) contain a SQL injection vulnerability that allows an authenticated attacker to manipulate the SQL query used when viewing OpenVPN connection logs via the CONNECTION_NAME parameter. When viewing a range of OpenVPN connection logs, the application issues an HTTP POST request to the Request-URI /cgi-bin/logs.cgi/ovpnclients.dat and inserts the value of the CONNECTION_NAME parameter directly into the WHERE clause without proper sanitization or parameterization. The unsanitized value can alter the executed query and be used to disclose sensitive information from the database.
Problem types
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Product status
Any version before 2.29 (Core Update 198)
Credits
Alex Williams from Pellera Technologies
References
www.ipfire.org/blog/ipfire-2-29-core-update-198-released
bugzilla.ipfire.org/show_bug.cgi?id=13879
www.vulncheck.com/...ipfire-sqli-via-openvpn-connection-logs