Miggo Logo

CVE-2023-5917: phpBB's Smiley Pack acp_icons.php main pack vulnerable to cross site scripting

2.4

CVSS Score
3.0

Basic Information

EPSS Score
0.25922%
Published
11/2/2023
Updated
10/30/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
phpbb/phpbbcomposer< 3.3.113.3.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues in acp_icons.php's main function: 1) The 'pack' parameter was used in file() without sanitization (via basename()), allowing directory traversal. 2) The '_url' field was populated with raw 'img' values instead of HTML-escaped content. The patch introduced utf8_basename() for path sanitization and utf8_substr(rawurlencode(...)) for output encoding, confirming these were the vulnerable points. Both issues occur within the main function's logic for handling smiley pack imports.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* vuln*r**ility, w*i** w*s *l*ssi*i** *s pro*l*m*ti*, **s ***n *oun* in p*p** up to *.*.**. T*is issu* *****ts t** *un*tion m*in o* t** *il* `p*p**/in*lu**s/**p/**p_i*ons.p*p` o* t** *ompon*nt Smil*y P**k **n*l*r. T** m*nipul*tion o* t** *r*um*nt p**

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s in **p_i*ons.p*p's m*in *un*tion: *) T** 'p**k' p*r*m*t*r w*s us** in *il*() wit*out s*nitiz*tion (vi* **s*n*m*()), *llowin* *ir**tory tr*v*rs*l. *) T** '_url' *i*l* w*s popul*t** wit* r*w 'im*' v*lu*s inst