id: glpi-status-domain-disclosure

info:
  name: GLPI Status Domain Disclosure
  author: dogasantos
  severity: info
  metadata:
    max-request: 3
  tags: glpi,exposure,status,files

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "GLPI_"
          - "LDAP server"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|([a-zA-Z0-9]+(\.[a-zA-Z0-9]{2,3}){1,2}))'
# digest: 490a0046304402205851c55ca9769d8be352673c4dece6f64d758ce8944be852a7f33bcd5c32385802204726964b62614e4d468df557b46d1a4d5eb1a6d5f8e44f82d5799f0d0220c960:922c64590222798bb761d5b6d8e72950