id: simplesamlphp-detect

info:
  name: SimpleSAMLphp - Detect
  author: righettod
  severity: info
  description: |
    SimpleSAMLphp was detected.
  reference:
    - https://simplesamlphp.org/
  classification:
    cpe: cpe:2.3:a:simplesamlphp:simplesamlphp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: simplesamlphp
    product: simplesamlphp
    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: 4a0a00473045022002618e88b4f11c154f6a5ca6859c67b3e1f87f95e7bab9a7053cfad8ec8de7a00221008b2794776b653a9a9e159207616fd2c1d3c2cbaabfc810239354cc6e2289a05a:922c64590222798bb761d5b6d8e72950