Products & Services
Support

Product Categories


Popular Downloads


Manage Software

How to Buy

For Home

Linksys Products Store
Linksys is now part of Belkin
Products for everyone

All Ordering Options

Training & Events Partners
Guest

Vulnerability Alert

PHP magic_quote_gpc Security Bypass Remote SQL Injection Vulnerability

 
Threat Type:CWE-89: SQL Injection
IntelliShield ID:25189
Version:7
First Published:2012 February 15 18:43 GMT
Last Published:2013 October 01 14:48 GMT
Port: Not available
CVE:CVE-2012-0831
BugTraq ID:51954
Urgency:Unlikely Use
Credibility:Confirmed
Severity:Mild Damage
CVSS Base:7.5 CVSS Calculator
CVSS Version 2.0
CVSS Temporal:5.5
 
Version Summary:Red Hat has released an additional security advisory and updated packages to address the PHP magic_quote_gpc security bypass remote SQL injection vulnerability.
 
 
Description
PHP versions 5.3.10 and prior contain a vulnerability that could allow an unauthenticated, remote attacker to conduct SQL injection attacks on an affected system.

The vulnerability exists because the affected software improperly handles imported environment variables. An unauthenticated, remote attacker could exploit this vulnerability to bypass security restrictions and execute arbitrary SQL commands on the affected database. Successful exploitation could allow the attacker to obtain sensitive information or to alter data that is contained in the database on the targeted system.

PHP has confirmed this vulnerability and updates are available.

 
Warning Indicators
PHP versions 5.3.10 and prior are vulnerable.
 
IntelliShield Analysis
To exploit this vulnerability, the attacker would need to send crafted requests to the targeted system.  To achieve this objective, the attacker would need access to trusted, internal networks.  This access requirement decreases the likelihood of a successful exploit.
 
Vendor Announcements
PHP has released a changelog at the following link: PHP 5.4.1

Apple has released security advisory at the following link: HT5501

FreeBSD has released a VuXML document at the following link: php -- multiple vulnerabilities

Red Hat has released an official CVE statement and security advisories for bug 789468 at the following links: CVE-2012-0831, RHSA-2013:0514, and RHSA-2013:1307

 
Impact
An unauthenticated, remote attacker could exploit this vulnerability to execute arbitrary SQL commands on the affected database. Successful exploitation could allow the attacker to obtain sensitive information or alter data that is contained in the database on the targeted system.
 
Technical Information
The vulnerability exists because the affected software fails to properly perform a temporary change to the magic_quotes_gpc directive when importing environment variables. An unauthenticated, remote attacker could exploit this vulnerability by sending crafted requests to disable the magic_quotes_gpc setting, bypass security restrictions, and inject arbitrary SQL commands to the affected PHP-based application database. 

Successful exploitation could allow the attacker to obtain sensitive information or to alter data that is contained in the affected database on the targeted system.

 
Safeguards
Administrators are advised to apply the appropriate updates.

Administrators may consider using IP-based access control lists (ACLs) to allow only trusted systems to access the affected systems.

Administrators are advised to allow only trusted users to have network access.

Administrators are advised to monitor affected systems.
 
Patches/Software
PHP has released updated software at the following link: PHP 5.4.1 or later

Apple has released updated software at the following links:

Mac OS X and Mac OS X Server 10.6.8
Security Update 2012-004 (Snow Leopard)
Security Update 2012-004 Server (Snow Leopard)

Mac OS X and Mac OS X Server 10.7.5
OS X Lion Update 10.7.5 (Client)
OS X Lion Update 10.7.5 (Server)

Mac OS X and Mac OS X Server 10.8.2
OS X Mountain Lion Update v10.8.2

CentOS packages can be updated using the up2date or yum command.

FreeBSD has released ports collection updates at the following link: Ports Collection Index

Red Hat has released updated software for registered subscribers at the following link: Red Hat Network. Red Hat packages can be updated on Red Hat Enterprise Linux versions 5 and later using the yum tool.

 
Alert History
 
Version 6, March 11, 2013, 7:17 PM: CentOS has released updated packages to address the PHP magic_quote_gpc security bypass remote SQL injection vulnerability.

Version 5, February 22, 2013, 8:14 AM: Red Hat has released a security advisory and updated packages to address the PHP magic_quote_gpc security bypass remote SQL injection vulnerability.

Version 4, September 24, 2012, 10:40 AM: Apple has released a security advisory and updated software to address the PHP magic_quote_gpc security bypass remote SQL injection vulnerability.

Version 3, May 1, 2012, 11:26 AM: FreeBSD has released a VuXML document and updated ports collection to address the PHP magic_quote_gpc security bypass remote SQL injection vulnerability.

Version 2, April 26, 2012, 11:43 AM: PHP has released a changelog and updated software to address the PHP magic_quote_gpc security bypass remote SQL injection vulnerability.

Version 1, February 15, 2012, 1:43 PM: PHP contains a vulnerability that could allow an unauthenticated, remote attacker to conduct SQL injection attacks. Updates are not available.


Product Sets
 
The security vulnerability applies to the following combinations of products.

Primary Products:
phpphp 5.3.0 Base | 5.3.1 Base | 5.3.2 Base | 5.3.3 Base | 5.3.4 Base | 5.3.5 Base | 5.3.6 Base | 5.3.7 Base | 5.3.8 Base | 5.3.9 Base | 5.3.10 Base

Associated Products:
AppleMac OS X 10.6.1 Intel, PPC | 10.6.2 Base | 10.6.3 Base | 10.6.4 Base | 10.6.5 Base | 10.6.6 Base | 10.6.7 Base | 10.6.8 Base | 10.7 Base | 10.7.1 Base | 10.7.2 Base | 10.7.3 Base | 10.7.4 Base | 10.8 Base, .1 | 10.8.1 Base
AppleMac OS X Server 10.6.1 Intel, PPC | 10.6.2 Base | 10.6.3 Base | 10.6.4 Base | 10.6.5 Base | 10.6.6 Base | 10.6.7 Base | 10.6.8 Base | 10.7 Base | 10.7.1 Base | 10.7.2 Base | 10.7.3 Base | 10.7.4 Base | 10.8.0 Base | 10.8.1 Base
CentOS ProjectCentOS 6 .0 i386, .0 x86_64, .1 i386, .1 x86_64, .2 i386, .2 x86_64
FreeBSD ProjectFreeBSD 6.3 Base | 6.4 Base | 7.0 Base | 7.1 Base | 7.2 Base | 7.3 Base | 7.4 Base | 8.0 Base | 8.1 Base | 8.2 Base | 9.0 Base
Red Hat, Inc.Red Hat Enterprise Linux 5 IA-32, IA-64, PPC, s390x, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Desktop 6 IA-32, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Desktop Workstation 5 IA-32, x86-64
Red Hat, Inc.Red Hat Enterprise Linux HPC Node 6 x86_64
Red Hat, Inc.Red Hat Enterprise Linux Server 6 IA-32, PPC 64, s390x, x86_64
Red Hat, Inc.Red Hat Enterprise Linux Workstation 6 IA-32, x86_64




Alerts and bulletins on the Cisco Security Intelligence Operations Portal are highlighted by analysts in the Cisco Threat Operations Center and represent a subset of the comprehensive content that is available through Cisco Security IntelliShield Alert Manager Service. This customizable threat and vulnerability alert service provides security staff with access to timely, accurate, and credible information about threats and vulnerabilities that may affect their environment.


LEGAL DISCLAIMER
The urgency and severity ratings of this alert are not tailored to individual users; users may value alerts differently based upon their network configurations and circumstances. THE ALERT, AND INFORMATION CONTAINED THEREIN, ARE PROVIDED ON AN "AS IS" BASIS AND DO NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE ALERT, AND INFORMATION CONTAINED THEREIN, OR MATERIALS LINKED FROM THE ALERT, IS AT YOUR OWN RISK. INFORMATION IN THIS ALERT AND ANY RELATED COMMUNICATIONS IS BASED ON OUR KNOWLEDGE AT THE TIME OF PUBLICATION AND IS SUBJECT TO CHANGE WITHOUT NOTICE. CISCO RESERVES THE RIGHT TO CHANGE OR UPDATE ALERTS AT ANY TIME.
Powered by  IntelliShield