id: bittrex-secretkey

info:
  name: Bittrex Secret Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/bittrex-secret-key.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/bittrex-secret-key.go
  metadata:
    verified: true
    max-request: 1
  tags: bittrex,exposure,tokens,secretkey,vuln

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

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