id: bitbucket-clientid

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

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

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