VDB-13609 · ZF2014-04 · SA58847

Zend Framework up to 1.12.6 SQL Statement Zend_Db_Select::order ORDER BY Statement sql injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.6$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in Zend Framework up to 1.12.6. This affects the function Zend_Db_Select::order of the component SQL Statement Handler. This manipulation as part of ORDER BY Statement causes sql injection. It is possible to initiate the attack remotely. Furthermore, there is an exploit available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical was found in Zend Framework up to 1.12.6 (Programming Tool Software). Affected by this vulnerability is the function Zend_Db_Select::order of the component SQL Statement Handler. The manipulation as part of a ORDER BY Statement leads to a sql injection vulnerability. The CWE definition for the vulnerability is CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. As an impact it is known to affect confidentiality, integrity, and availability.

The weakness was shared 06/12/2014 by Cassiano Dal Pizzol as ZF2014-04 as confirmed advisory (Website). The advisory is shared at framework.zend.com. The vendor cooperated in the coordination of the public release. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known. MITRE ATT&CK project uses the attack technique T1505 for this issue.

A public exploit has been developed in PHP/SQL and been published immediately after the advisory. It is possible to download the exploit at framework.zend.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $5k-$25k.

Upgrading to version 1.12.7 or 2.0 eliminates this vulnerability. The advisory contains the following remark:

We fixed the issue in the Zend_Db_Select::order() function using a more granular regular expression to match only SQL functions in an ORDER BY statement, such as ORDER BY ABS("zfproducts"."product_id"). The new regular expression is '/^[\w]*\(.*\)$/' instead of the previous '/\(.*\)/'. (…) This SQL injection attack does not affect Zend Framework 2 versions because the implementation of Zend\Db\Sql\Select::order() does not manage parenthetical expressions.

The vulnerability is also documented in the vulnerability database at Secunia (SA58847†). The entry VDB-111160 is related to this item. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Not Affected

  • Zend Framework 2.x

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Programming Language: 🔍
Download: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Upgrade: Framework 1.12.7/2.0

Timelineinfo

06/12/2014 🔍
06/12/2014 +0 days 🔍
06/15/2014 +3 days 🔍
04/03/2019 +1753 days 🔍

Sourcesinfo

Advisory: ZF2014-04
Researcher: Cassiano Dal Pizzol
Status: Confirmed
Coordinated: 🔍

GCVE (VulDB): GCVE-100-13609
Secunia: 58847

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 06/16/2014 00:14
Updated: 04/03/2019 11:06
Changes: 06/16/2014 00:14 (52), 04/03/2019 11:06 (3)
Complete: 🔍
Cache ID: 216:F9C:103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!