Zend Framework up to 1.12.6 SQL Statement Zend_Db_Select::order ORDER BY Statement sql injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 0.00 |
Summary
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.
Details
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
Product
Type
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Sql injectionCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Exploit Delay Time: 🔍
Upgrade: Framework 1.12.7/2.0
Timeline
06/12/2014 🔍06/12/2014 🔍
06/15/2014 🔍
04/03/2019 🔍
Sources
Advisory: ZF2014-04Researcher: Cassiano Dal Pizzol
Status: Confirmed
Coordinated: 🔍
GCVE (VulDB): GCVE-100-13609
Secunia: 58847
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 06/16/2014 00:14Updated: 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.
No comments yet. Languages: en.
Please log in to comment.