Secunia Logo
Netsikker nu! 2008
 
PostgreSQL Encoding-Based SQL Injection Vulnerability
Secunia Advisory: SA20231
Release Date: 2006-05-24
Last Update: 2006-05-25
Popularity: 15,028 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

Today
New advisories: 1
New vulnerabilities: 4
Updated advisories: 1

Moderately // 3 views
Red Hat update for kernel

7th Oct, 2008
New advisories: 19
New vulnerabilities: 68
Updated advisories: 62

Moderately // 436 views
Debian update for php5
Moderately // 343 views
Atarone CMS Multiple Vulnerabilities
Moderately // 373 views
Debian update for squid
Less // 360 views
SUSE update for mercurial
Moderately // 413 views
SUSE update for openssh

Solutions | More...  


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. phpBB Avatar Script Insertion Vulnerability // 77 views
2. phpBB Avatar Functions Information Disclosure and Deletion // 72 views
3. Debian update for php5 // 48 views
4. Juniper Products Neighbor Discovery Protocol Neighbor Solicitation Vulnerability // 38 views
5. Atarone CMS Multiple Vulnerabilities // 38 views
6. MetaGauge Directory Traversal Vulnerability // 35 views
7. Debian update for squid // 34 views
8. phpBB "url" bbcode Script Insertion Vulnerability // 34 views
9. SUSE update for openssh // 32 views
10. phpBB BBcode "url" Script Insertion Vulnerability // 30 views