Miggo Logo

CVE-2017-20178: Codiad information disclosure vulnerability

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.25813%
Published
2/21/2023
Updated
10/20/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
codiad/codiadcomposer< 2.8.12.8.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the saveJSON function's insecure data formatting. The original implementation wrote JSON data as a PHP comment without line breaks (<?php/*|{data}|*/?>). This structure could be misinterpreted by some PHP processors, allowing the JSON payload to be served as plaintext. The patch explicitly adds \r\n line breaks around the JSON data to ensure proper comment parsing. The function's direct role in handling sensitive data storage and the explicit reference in CVE/GHSA advisories confirm its vulnerability.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* vuln*r**ility w*s *oun* in *o*i** *.*.*. It **s ***n r*t** *s pro*l*m*ti*. *****t** *y t*is issu* is t** *un*tion s*v*JSON o* t** *il* *ompon*nts/inst*ll/pro**ss.p*p. T** m*nipul*tion o* t** *r*um*nt **t* l***s to in*orm*tion *is*losur*. T** *tt**k

Reasoning

T** vuln*r**ility st*ms *rom t** s*v*JSON *un*tion's ins**ur* **t* *orm*ttin*. T** ori*in*l impl*m*nt*tion wrot* JSON **t* *s * P*P *omm*nt wit*out lin* *r**ks (<?p*p/*|{**t*}|*/?>). T*is stru*tur* *oul* ** misint*rpr*t** *y som* P*P pro**ssors, *llo