J-Security Center

Title: NSS NSS_PostGreSQL Remote SQL Query Manipulation Vulnerability

Severity: HIGH

Description:

NSS(Name Service Switch) can use PostgreSQL as a back-end for authentication.

The NSS database module 'nss_postgresql' is prone to a vulnerability which will allow SQL queries to be manipulated via any request which requires PAM authentication, regardless of the protocol used. Data that is included in SQL query strings is not adequately sanitized. It may be possible for users to modify the structure of SQL queries by carefully constructing variables containing metacharacters that will be included in the target query.

It is believed that the attacker would need an interactive account on the vulnerable host to exploit this issue. Attacks will be executed on the database server as the database user that is making the query.

This issue allows the user to access resources that would normally be restricted, which may in turn provide an opportunity for the attacker to exploit other vulnerabilities that exist in the server.

Affected Products:

  • Alessandro Gardich nss_postgresql 0.6.1

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.