id: sauce-token

info:
  name: Sauce Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/sauce.yml
    - https://docs.saucelabs.com/dev/api/
  metadata:
    verified: true
    max-request: 1
  tags: sauce,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)sauce.{0,50}\b([a-f0-9-]{36})\b'
# digest: 4a0a0047304502210090d690e3df6bc6358dd0c445a3e5f7874ca0a7177ef5c4ff331c5fbadcdc68c2022002396134e184a6dfaa89f6a0d4475dbc99cada5b518d1ee2df4c990e0ffea640:922c64590222798bb761d5b6d8e72950