Amazon Linux AMI : postgresql8 (ALAS-2012-129)

medium Nessus Plugin ID 69619
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote Amazon Linux AMI host is missing a security update.

Description

It was found that the optional PostgreSQL xml2 contrib module allowed local files and remote URLs to be read and written to with the privileges of the database server when parsing Extensible Stylesheet Language Transformations (XSLT). An unprivileged database user could use this flaw to read and write to local files (such as the database's configuration files) and remote URLs they would otherwise not have access to by issuing a specially crafted SQL query. (CVE-2012-3488)

It was found that the 'xml' data type allowed local files and remote URLs to be read with the privileges of the database server to resolve DTD and entity references in the provided XML. An unprivileged database user could use this flaw to read local files they would otherwise not have access to by issuing a specially crafted SQL query.
Note that the full contents of the files were not returned, but portions could be displayed to the user via error messages.
(CVE-2012-3489)

Solution

Run 'yum update postgresql8' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2012-129.html

Plugin Details

Severity: Medium

ID: 69619

File Name: ala_ALAS-2012-129.nasl

Version: 1.8

Type: local

Agent: unix

Published: 9/4/2013

Updated: 4/18/2018

Dependencies: ssh_get_info.nasl

Risk Information

VPR

Risk Factor: Medium

Score: 4

CVSS v2

Risk Factor: Medium

Base Score: 4.9

Vector: CVSS2#AV:N/AC:M/Au:S/C:P/I:P/A:N

Vulnerability Information

CPE: cpe:2.3:o:amazon:linux:*:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-contrib:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-debuginfo:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-devel:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-docs:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-libs:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-plperl:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-plpython:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-pltcl:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-server:*:*:*:*:*:*:*, p-cpe:2.3:a:amazon:linux:postgresql8-test:*:*:*:*:*:*:*

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Patch Publication Date: 9/22/2012

Reference Information

CVE: CVE-2012-3488, CVE-2012-3489

RHSA: 2012:1263

ALAS: 2012-129