id: duffel-token

info:
  name: Duffel API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/duffel-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/duffel-api-token.go
  classification:
    cwe-id: CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: duffel,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - duffel_(test|live)_(?i)[a-z0-9_\-=]{43}
# digest: 4b0a00483046022100956c3682a439452f547635b9904a5f12fd286c177141cdbcb585eaefbbe99063022100a15ba212b11ffe9aad0f8a2fe87a1f4065eb302a211a5b0b50bc540a38ed596d:922c64590222798bb761d5b6d8e72950