Miggo Logo

CVE-2019-11830: PharStreamWrapper for Typo3 unsafe deserialization vulnerability

9.8

CVSS Score
3.0

Basic Information

EPSS Score
0.84814%
Published
5/24/2022
Updated
2/5/2024
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
typo3/phar-stream-wrappercomposer>= 2.0.0, < 2.1.12.1.1
typo3/phar-stream-wrappercomposer>= 3.0.0, < 3.1.13.1.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from PharMetaDataInterceptor's custom Phar stub parsing implementation, which failed to properly handle certain Phar structures. This allowed bypassing the deserialization protection mechanism. The security advisory explicitly mentions that 'internal Phar stub parsing has been adjusted to match actual handling like provided in the native PHP source code,' indicating the intercept() method (responsible for parsing) contained the flawed logic. The CWE-502 mapping confirms this is a deserialization bypass via improper input validation during Phar metadata analysis.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

P**rM*t***t*Int*r**ptor in t** P**rStr**mWr*pp*r (*k* p**r-str**m-wr*pp*r) p**k*** *.x ***or* *.*.* *n* *.x ***or* *.*.* *or TYPO* mis**n*l*s P**r stu* p*rsin*, w*i** *llows *tt**k*rs to *yp*ss * **s*ri*liz*tion prot**tion m****nism.

Reasoning

T** vuln*r**ility st*ms *rom `P**rM*t***t*Int*r**ptor`'s *ustom `P**r` stu* p*rsin* impl*m*nt*tion, w*i** **il** to prop*rly **n*l* **rt*in `P**r` stru*tur*s. T*is *llow** *yp*ssin* t** **s*ri*liz*tion prot**tion m****nism. T** s**urity **visory *xpl