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
  classification:
    cpe: cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: glpi-project
    product: glpi
    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: 4a0a00473045022100d677b8c74cfcb9368f645f07ef8d7fdfdacbbb1a3346f751cc93f268973871e8022046a325443b25d15ba3a3c9f97ee7d21722bfeaa5f1a40a4217e7b2e25af34fbc:922c64590222798bb761d5b6d8e72950