Security Advisory 07-013 – Remote Code Execution In GreenSQL Logging Facility
Remote Code Execution In GreenSQL Logging Facility.
Vulnerability discovery and development:
Portcullis Security Testing Services
Credit for Discovery:
Nico Leidecker of Portcullis Computer Security Ltd discovered this vulnerability. Further research was then carried out and the vendor notified.
Version 0.6.3 was tested and found to be vulnerable.
GreenSQL is an Open Source database Firewall which acts as proxy server and is used to protect databases from SQL injection attacks. Any incoming request is written to a log file using the ‘fprintf’ function in the printline function of the logging facility. There is no explicit format string supplied.
By sending a specially crafted request to the proxy server, an attacker could exploit the vulnerability and execute code in the server’s context.
The vendor has been contacted and has advised that the downloadable fixed version is available at http://www.greensql.net.
Permission is hereby granted for the electronic redistribution of this information. It is not to be edited or altered in any way without the express written consent of Portcullis Computer Security Limited.