id: aws-session-token

info:
  name: AWS Session Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/aws.yml
  metadata:
    verified: true
    max-request: 1
  tags: aws,amazon,token,exposure,session,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)(?:aws.?session|aws.?session.?token|aws.?token)["''`]?\s{0,30}(?::|=>|=)\s{0,30}["''`]?([a-z0-9/+=]{16,200})[^a-z0-9/+=]'
# digest: 490a0046304402205697c2780e40444ff305fbf05dc8c048cfb72baf7fb1996a7c81af20cf2835040220486f8dcf9a16980ae8e1230768a64d281482b2f7a89a4f98c0eb364dba48a2cb:922c64590222798bb761d5b6d8e72950