Miggo Logo

CVE-2009-3696: phpMyAdmin Cross-site Scripting In MySQL Table Name

4.3

CVSS Score

Basic Information

EPSS Score
0.86854%
Published
5/2/2022
Updated
2/18/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
phpmyadmin/phpmyadmincomposer>= 2.11.0, < 2.11.9.62.11.9.6
phpmyadmin/phpmyadmincomposer>= 3.0.0, < 3.2.2.13.2.2.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit patches show: 1) Added htmlspecialchars() to user-controlled strings in HTML contexts (XSS fixes) 2) Added PMA_sqlAddslashes() to SQL query parameters. The unpatched versions lacked these sanitizations, making the echo statements vulnerable to XSS via table names, and SQL queries vulnerable to injection via interface parameters.

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 p*pMy**min *.**.x ***or* *.**.*.* *n* *.x ***or* *.*.*.* *llows r*mot* *tt**k*rs to inj**t *r*itr*ry w** s*ript or *TML vi* * *r**t** n*m* *or * MySQL t**l*.

Reasoning

T** *ommit p*t***s s*ow: *) ***** `*tmlsp**i*l***rs()` to us*r-*ontroll** strin*s in *TML *ont*xts (XSS *ix*s) *) ***** `PM*_sql***sl*s**s()` to SQL qu*ry p*r*m*t*rs. T** unp*t**** v*rsions l**k** t**s* s*nitiz*tions, m*kin* t** ***o st*t*m*nts vuln*