id: moodle-installer

info:
  name: Moodle Installation Exposure
  author: tess
  severity: high
  description: Moodle is susceptible to the Installation page exposure due to misconfiguration.
  classification:
    cpe: cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: moodle
    product: moodle
    shodan-query: title:"Installation Moodle"
  tags: misconfig,moodle,install,exposure

http:
  - method: GET
    path:
      - '{{BaseURL}}/install.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Installation - Moodle"

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

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