id: moodle-workplace-panel

info:
  name: Moodle Workplace Login Panel - Detect
  author: righettod
  severity: info
  description: |
    Moodle workplace login panel was detected.
  reference:
    - https://moodle.com/solutions/workplace/
  classification:
    cpe: cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: moodle
    product: moodle
    shodan-query: http.html:"moodle"
  tags: panel,moodle,login,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/login/index.php"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(body, "content=\"moodle", "\"name\":\"moodle\"") && contains(body, "workplace")'
        condition: and
# digest: 4a0a004730450221008736b2c8e8955c9ccc36f30274b49d55089762ed37164012d9f37d6007550ab6022048dd4a2e184a49e2e12b7a8e3d8d4bbc2fd7e51d5d066d1816d5318bc6a1422f:922c64590222798bb761d5b6d8e72950