Skip to content

Twitter API Key

ID: twitter-api-key

Severity: info

Author: DhiyaneshDK

Tags: twitter,exposure,tokens

id: twitter-api-key
info:
name: Twitter API Key
author: DhiyaneshDK
severity: info
reference:
- https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/twitter-api-key.go
- https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/twitter-api-key.yaml
metadata:
verified: true
max-request: 1
tags: twitter,exposure,tokens
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- (?i)(?:twitter)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{25})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a004730450221008fef87f072a0a645863ab828dacf865ece116c0e76a8994b995f9631d49c812602206c4d8e9d9cc7c04b37814920acaf13b0c09560bf37d71ba8b3ae3957b13782c4: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/twitter/twitter-api-key.yaml"

View on Github