Vigil@nce: PostgreSQL, memory corruption via substring
February 2010 by Vigil@nce
SYNTHESIS OF THE VULNERABILITY
An authenticated attacker can use the substring() function, in
order to generate a corruption, leading to a denial of service or
to code execution with database privileges.
Severity: 2/4
Consequences: privileged access/rights, denial of service of
service
Provenance: user account
Means of attack: 1 attack
Ability of attacker: technician (2/4)
Confidence: unique source (2/5)
Diffusion of the vulnerable configuration: high (3/3)
Creation date: 28/01/2010
IMPACTED PRODUCTS
– PostgreSQL
DESCRIPTION OF THE VULNERABILITY
The SQL substring() function extracts a character string. For
example, to extract "ell" (from offset 2, with size 3) :
SELECT substring(’Hello’, 2, 3);
A "Bit String" is a string containing 0 and 1 values. For example:
B’101’
When the substring() function is called on a Bit String, a memory
corruption occurs.
An authenticated attacker can therefore use the substring()
function, in order to generate a corruption, leading to a denial
of service or to code execution with database privileges.
CHARACTERISTICS
Identifiers: BID-37973, CVE-2010-0442, VIGILANCE-VUL-9388
http://vigilance.fr/vulnerability/PostgreSQL-memory-corruption-via-substring-9388