id: default-amazon-cognito

info:
  name: Amazon Cognito Developer Authentication Sample - Detect
  author: pussycat0x
  severity: info
  reference:
    - https://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Amazon Cognito Developer Authentication Sample"
  tags: aws,cognito,default,tech,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Amazon Cognito Developer Authentication Sample") && contains(body, "Congratulations!")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a004830460221008083009b04fdb970da9cd12183e330465dfc3d503f9070bf5cf2d5f8a18370d602210099429d3788380568452fad89f79a209ee8b933e7be65e31fab81608962e54e23:922c64590222798bb761d5b6d8e72950