id: sidekiq-sensitive-url

info:
  name: Sidekiq Sensitive URL
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sidekiq-sensitive-url.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sidekiq-sensitive-url.yaml
  metadata:
    max-request: 1
  tags: exposure,token,sidekiq,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(http(?:s??):\/\/)([a-f0-9]{8}:[a-f0-9]{8})@(?:gems.contribsys.com|enterprise.contribsys.com)(?:[\/|\#|\?|:]|$)
# digest: 4a0a00473045022100dfa8145d2d97a927e6dc43b6064ef0ff97ece908c0230a5f55ecf8173448e8cc02206f0ca0e51ab03047434b4b6880e8a1ae0268ef97653184208b22d751e8156919:922c64590222798bb761d5b6d8e72950