Secunia Logo
 
PostgreSQL Encoding-Based SQL Injection Vulnerability
Secunia Advisory: SA20231
Release Date: 2006-05-24
Last Update: 2006-05-25
Popularity: 15,685 views

Critical:
Moderately critical
Impact: Manipulation of data
Where: From remote
Solution Status: Vendor Patch

Software:PostgreSQL 7.x
PostgreSQL 8.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-2313
CVE-2006-2314


Description:
Two vulnerabilities have been reported in PostgreSQL, which potentially can be exploited by malicious people to conduct SQL injection attacks.

The vulnerabilities are caused due to the differences in the way PostgreSQL server and non encoding-aware applications interpret SQL query strings that contain certain multi-byte characters. A non encoding-aware application may insert escape characters into a malicious query string (e.g. to escape single-quote or backslash characters), without realizing that the escape characters will be interpreted as part of a multi-byte character sequence by the server. This can be exploited to conduct SQL injection attacks by injecting certain multi-byte characters into the query string.

Successful exploitation allows bypassing of SQL injection escaping code that are implemented in non encoding-aware applications.

The vulnerabilities have been reported in the 7.3, 7.4, 8.0 and 8.1 branch.

Solution:
Update to the fixed versions.
http://www.postgresql.org/download/

Version 7.3.x:
Update to version 7.3.15.

Version 7.4.x:
Update to version 7.4.13.

Version 8.0.x:
Update to version 8.0.8.

Version 8.1.x:
Update to version 8.1.4.

Provided and/or discovered by:
The vendor credits Akio Ishida and Yasuo Ohgaki.

Changelog:
2006-05-25: Updated credit section.

Original Advisory:
http://archives.postgresql.org/pgsql-announce/2006-05/msg00010.php
http://www.postgresql.org/docs/techdocs.50
http://www.postgresql.org/docs/8.1/static/release-7-3-15.html
http://www.postgresql.org/docs/8.1/static/release-7-4-13.html
http://www.postgresql.org/docs/8.1/static/release-8-0-8.html
http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-4


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Microsoft Office Communications Server SIP INVITE Denial of Service // 146 views
2. Bluo CMS "id" SQL Injection Vulnerability // 86 views
3. Basic PHP CMS "id" SQL Injection Vulnerability // 80 views
4. VLC Media Player Real Demuxer Integer Overflow Vulnerability // 73 views
5. Zeroboard Multiple Vulnerabilities // 66 views
6. Lito Lite CMS "cid" SQL Injection Vulnerability // 65 views
7. BlackBerry Desktop Software FlexNET Connect ActiveX Control Vulnerability // 60 views
8. Active eWebquiz "useremail" and "password" SQL Injection Vulnerabilities // 59 views
9. Minimal Ablog Multiple Vulnerabilities // 48 views
10. Active Newsletter "email" and "password" SQL Injection Vulnerabilities // 46 views