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: 490a0046304402202ccd02692f28fa45a34a337df5100fdf9069a0742d4fe6fb43b0e595d4df934202203eb5fb0195e4cb6e5c2e58979f56db2f154e714c1589de1b498c8be8273dc0b1:922c64590222798bb761d5b6d8e72950