Miggo Logo

CVE-2016-6624:
phpMyAdmin IPv6 and proxy server IP-based authentication rule circumvention

5.9

CVSS Score
3.0

Basic Information

EPSS Score
0.54435%
CWE
-
Published
5/17/2022
Updated
4/24/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
phpmyadmin/phpmyadmincomposer>= 4.6, < 4.6.44.6.4
phpmyadmin/phpmyadmincomposer>= 4.4, < 4.4.15.84.4.15.8
phpmyadmin/phpmyadmincomposer>= 4.0, < 4.0.10.174.0.10.17

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper IP validation in proxy environments using IPv6. The core issue involves two key functions: 1) checkIPAllowDeny, responsible for enforcing IP-based access rules, which failed to properly verify if the client IP (from X-Forwarded-For) was allowed when behind an authorized proxy. 2) getClientIp, which likely mishandled IPv6 address parsing from headers. This is supported by the patched commits modifying IP validation logic and the vulnerability's nature (CWE-661 - Improper Enforcement of Authorization Rules). The confidence is high as the vulnerability directly maps to IP handling functions in the authentication workflow.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in p*pMy**min involvin* improp*r *n*or**m*nt o* t** IP-**s** *ut**nti**tion rul*s. W**n p*pMy**min is us** wit* IPv* in * proxy s*rv*r *nvironm*nt, *n* t** proxy s*rv*r is in t** *llow** r*n** *ut t** *tt**kin* *omput*r is not

Reasoning

T** vuln*r**ility st*ms *rom improp*r IP v*li**tion in proxy *nvironm*nts usin* IPv*. T** *or* issu* involv*s two k*y *un*tions: *) `****kIP*llow**ny`, r*sponsi*l* *or *n*or*in* IP-**s** ****ss rul*s, w*i** **il** to prop*rly v*ri*y i* t** *li*nt IP