Vulnerability identifier: #VU18679
Vulnerability risk: Medium
CVSSv4.0: 2 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/U:Green]
CVE-ID:
CWE-ID:
CWE-352
Exploitation vector: Network
Exploit availability: Yes
Vulnerable software:
phpMyAdmin
Web applications /
Remote management & hosting panels
Vendor: phpMyAdmin
Description
The vulnerability allows a remote attacker to perform cross-site request forgery attacks.
The vulnerability exists due to insufficient validation of the HTTP request origin in "tbl_sql.php" script. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website, such as execute arbitrary INSERT or DELETE statements.
PoC:
http://[host]/tbl_sql.php?sql_query=INSERT+INTO+%60pma__bookmark%60+(%60id%60%2C+%60dbase%60%2C+%60user%60%2C+%60label%60%2C+%60query%60)+VALUES+(DAYOFWEEK(%27%27)%2C+%27%27%2C+%27%27%2C+%27%27%2C+%27%27)&show_query=1&db=phpmyadmin&table=pma__bookmark
Mitigation
Install update from vendor's website.
Vulnerable software versions
phpMyAdmin: 4.0.0 - 4.0.10.20, 4.1.0 - 4.1.14.8, 4.2.0 - 4.2.13.3, 4.3.0 - 4.3.13.3, 4.4.0 - 4.4.15.10, 4.5.0 - 4.5.5.1, 4.6.0 - 4.6.6, 4.7.0 rc1 - 4.7.9, 4.8.0 - 4.8.5
External links
https://www.phpmyadmin.net/security/PMASA-2019-4/
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.