Miggo Logo

CVE-2016-4861: Zend Framework Allows SQL Injection

9.8

CVSS Score
3.0

Basic Information

EPSS Score
0.87953%
Published
5/14/2022
Updated
11/1/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
zendframework/zendframeworkcomposer< 1.12.201.12.20

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly names the order and group methods in Zend_Db_Select as vulnerable entry points. The security advisory ZF2016-03 details that these methods didn't properly handle SQL comments in input parameters, allowing attackers to bypass validation. Both methods process user-provided SQL fragments for ORDER BY and GROUP BY clauses without adequate comment stripping, making them direct vectors for injection. The patch specifically targeted these methods by adding comment removal logic, confirming their vulnerable status.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T** (*) or**r *n* (*) *roup m*t*o*s in Z*n*_**_S*l**t in t** Z*n* *r*m*work ***or* *.**.** mi**t *llow r*mot* *tt**k*rs to *on*u*t SQL inj**tion *tt**ks *y l*v*r**in* **ilur* to r*mov* *omm*nts *rom *n SQL st*t*m*nt ***or* v*li**tion.

Reasoning

T** vuln*r**ility **s*ription *xpli*itly n*m*s t** or**r *n* *roup m*t*o*s in Z*n*_**_S*l**t *s vuln*r**l* *ntry points. T** s**urity **visory Z*****-** **t*ils t**t t**s* m*t*o*s *i*n't prop*rly **n*l* SQL *omm*nts in input p*r*m*t*rs, *llowin* *tt*