id: glpi-status-page

info:
  name: GLPI Status Page - Detect
  author: canberbamber
  severity: info
  description: |
    A php status page that indicates if local or ldap identity is used for glpi.
  reference:
    - https://buildmedia.readthedocs.org/media/pdf/glpi-user-documentation/latest/glpi-user-documentation.pdf
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"glpi"
  tags: tech,status,glpi

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "GLPI_DB_OK"
          - "GLPI_SESSION_DIR_OK"
          - "GLPI_OK"
        condition: or

      - type: status
        status:
          - 200

# digest: 490a0046304402200a32d522f5f00075eeeb3eb54bfad76315399d4ab6d356ad8788a0493e91601a022040a04b8cbbbd7f4c21319181ae9e3c1ae7e92d9cf1933397a89112eb2d6a7dc8:922c64590222798bb761d5b6d8e72950
