id: asana-client-id

info:
  name: Asana Client ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/asana-client-id.go
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/asana-client-id.yaml
  metadata:
    verified: true
    max-request: 1
  tags: asana,exposure,tokens,secret

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:asana)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022037689a506b020521f2fe6d467cbee5e732970590b6d6983e31ab7217ae2e93da022100ba82b70e688096e2871c35d676b17ab0d747a7b374627696c1055ac0eb702353:922c64590222798bb761d5b6d8e72950