id: simplesamlphp-detect

info:
  name: SimpleSAMLphp - Detect
  author: righettod
  severity: info
  description: |
    SimpleSAMLphp was detected.
  reference:
    - https://simplesamlphp.org/
  metadata:
    max-request: 1
    verified: true
    shodan-query: http.title:"SimpleSAMLphp installation page"
  tags: tech,simplesamlphp,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/simplesaml/module.php/core/frontpage_welcome.php"
      - "{{BaseURL}}/module.php/core/frontpage_welcome.php"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "you have successfully installed simplesamlphp", "simplesamlphp installation page", "/module.php/core/login-admin.php")'
        condition: and
# digest: 4a0a0047304502202e32a049b8845aa2680efc64591d51e88b6c2db0c04766e42cfd847855a9df12022100ab0b70175aaea1c484cda3c2dbec516e9ca3a1dcb5f52b227c630a185d5bacb0:922c64590222798bb761d5b6d8e72950