id: moodle-changelog-file

info:
  name: Moodle Changelog File
  author: oppsec
  severity: info
  description: Moodle has a file which describes API changes in core libraries and APIs, and can be used to discover Moodle version.
  metadata:
    max-request: 1
  tags: miscellaneous,misc,moodle

http:
  - method: GET
    path:
      - "{{BaseURL}}/lib/upgrade.txt"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "This files describes API changes in core libraries and APIs,"
          - "information provided here is intended especially for developers."
          - "new my moodle and profiles API"
        condition: and

      - type: word
        part: header
        words:
          - "text/plain"

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