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

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: 490a004630440220561669fd76ff7c45b9be2f978f1e4b95a3433c9d7b12a9c0a963b4f5cea56bcf022050e48684b54d9e7deed081c3392f6e1cf315ba0173fe88c4b7e7a09f2c7ae788:922c64590222798bb761d5b6d8e72950