|
|
>> PostgreSQL Multibyte Encoding Security Bypass and SQL Injection Vulnerabilities
|
Title : PostgreSQL Multibyte Encoding Security Bypass and SQL Injection Vulnerabilities VUPEN ID : VUPEN/ADV-2006-1941 CVE ID : CVE-2006-2313 - CVE-2006-2314
Rated as : Moderate Risk 
Remotely Exploitable : Yes Locally Exploitable : Yes Release Date : 2006-05-23
|
Multiple vulnerabilities have been identified in PostgreSQL, which could be exploited by remote attackers to bypass security restrictions and execute arbitrary SQL commands.
The first issue is due to an input validation error when handling a parameter containing invalidly-encoded multibyte characters, which could be exploited by malicious people to bypass standard string-escaping methods and conduct SQL injection attacks via a supposedly secure script.
The second issue is due to an error when escaping ASCII single quote "'" characters (by turning them into "\'") and operating in multibyte encodings (e.g. SJIS, BIG5, GBK, GB18030, or UHC) that allow using the "0x5c" ASCII code (backslash) as the trailing byte of a multibyte character, which could be exploited by attackers to inject arbitrary SQL queries.
Affected Products
PostgreSQL versions prior to 8.1.4
PostgreSQL versions prior to 8.0.8
PostgreSQL versions prior to 7.4.13
PostgreSQL versions prior to 7.3.15
Solution
Upgrade to PostgreSQL version 8.1.4, 8.0.8, 7.4.13, or 7.3.15 :
http://www.postgresql.org/download
References
http://www.vupen.com/english/advisories/2006/1941 http://www.postgresql.org/docs/techdocs.50
Credits
Vulnerabilities reported by Akio Ishida and Yasuo Ohgaki
ChangeLog
2006-05-23 : Initial release
Vulnerability Management
Subscribe to VUPEN VNS and receive real-time alerts when new advisories or patches relevant to your systems and network configurations are available.
Feedback
If you have additional information or corrections for this security advisory please submit them via our contact form. | |
|