Miggo Logo

CVE-2023-36259: Craft CMS Audit Plugin Cross Site Scripting vulnerability

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.2615%
Published
1/30/2024
Updated
2/5/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
superbig/craft-auditcomposer< 3.0.23.0.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unsanitized user input in title handling during element saving. The pre-patch code shows direct assignment of $title to model->title and snapshot['title'] without encoding. The fix adds Html::encode() to both assignments, confirming these were the vulnerable points. As this matches the CWE-79 pattern of improper input neutralization during web page generation, and the commit explicitly addresses XSS in titles, we can conclusively identify these assignments in onSaveElement as vulnerable.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*ross Sit* S*riptin* (XSS) vuln*r**ility in *r**t *MS *u*it Plu*in ***or* v*rsion *.*.* *llows *tt**k*rs to *x**ut* *r*itr*ry *o** *urin* us*r *r**tion.

Reasoning

T** vuln*r**ility st*ms *rom uns*nitiz** us*r input in titl* **n*lin* *urin* *l*m*nt s*vin*. T** pr*-p*t** *o** s*ows *ir**t *ssi*nm*nt o* `$titl*` to `mo**l->titl*` *n* `sn*ps*ot['titl*']` wit*out *n*o*in*. T** *ix ***s `*tml::*n*o**()` to *ot* *ssi