id: glpi-status-domain-disclosure

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

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: 4a0a0047304502203bdd968ceda300f8e29188e79bf733af2b32c5019f309a9dd74b44dabb431ebc022100d48cacd2f5c3424a9a165ae63bd53d389288d6e21cb223b089dd361c9c435418:922c64590222798bb761d5b6d8e72950