27 lines
911 B
YAML
27 lines
911 B
YAML
id: codecov-accesstoken
|
|
|
|
info:
|
|
name: Codecov Access Token
|
|
author: DhiyaneshDK
|
|
severity: info
|
|
reference:
|
|
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/codecov-access-token.yaml
|
|
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/codecov-access-token.go
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
tags: codecov,exposure,tokens
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- (?i)(?:codecov)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)
|
|
|
|
# digest: 4b0a00483046022100937f52090b5ba0f4775e6dabebdbb27d31b326ba587bb556e43130f3c42ed8ef0221008af7b33e604c314a8088be58ed938aa37ace66fe26979475252b18d487b4cd6e:922c64590222798bb761d5b6d8e72950
|