Skip to content

Sendgrid API Key Disclosure

ID: sendgrid-api-key

Severity: info

Author: Ice3man,DhiyaneshDK

Tags: exposure,token,sendgrid

id: sendgrid-api-key
info:
name: Sendgrid API Key Disclosure
author: Ice3man,DhiyaneshDK
severity: info
reference:
- https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendgrid-api-token.go
- https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendgrid-api-token.yaml
metadata:
max-request: 1
tags: exposure,token,sendgrid
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- (?i)\b(SG\.(?i)[a-z0-9=_\-\.]{66})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a004730450221008c0a367b0429620d73daa7cd476219c113cb31ec9106b072754555eb65c897ab02202d9c87afb5d12af7c237484fb53abe0370ede2bed99254df7dce6f12db0524ed:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/tokens/sendgrid/sendgrid-api-key.yaml"

View on Github