CVE-2018-12613 phpMyAdmin Improper Authentication
Authenticated attackers can include arbitrary files to execute code or read data, with unauthenticated access possible under specific non-default configurations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-12613?
CVE-2018-12613 is a high-severity path traversal vulnerability in Phpmyadmin Phpmyadmin, published on 21 Jun 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in phpMyAdmin 4.8.x before 4.8.2, in which an attacker can include (view and potentially execute) files on the server. The vulnerability comes from a portion of code where pages are redirected and loaded within phpMyAdmin, and an improper test for whitelisted pages. An attacker must be authenticated, except in the "$cfg['AllowArbitraryServer'] = true" case (where an attacker can specify any host he/she is already in control of, and execute arbitrary code on phpMyAdmin) and the "$cfg['ServerDefault'] = 0" case (which bypasses the login requirement and runs the vulnerable code without any authentication).
Weakness: CWE-287
Which versions are affected by CVE-2018-12613?
2 open source packages ship an affected version, including phpmyadmin/phpmyadmin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
phpmyadmin/phpmyadmin Packagist | From 4.8 | 4.8.2 |
phpmyadmin/phpmyadmin Packagist | From 4.8 | 4.8.2 |
Products include Phpmyadmin Phpmyadmin.
How do I fix CVE-2018-12613?
Upgrade phpmyadmin/phpmyadmin to 4.8.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-12613 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-12613 exists.
Public exploit code: 1 Metasploit module, 5 Exploit-DB entries, 1 Nuclei template and 4 proofs of concept on GitHub.
Other vulnerabilities in Phpmyadmin Phpmyadmin
Sources
Also known as GHSA-x394-g9j8-x7mf.