nuclei-templates/http/exposures/tokens/openai/openai-api-key.yaml

28 lines
748 B
YAML

id: openai-api-key
info:
name: OpenAI API Key
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/openai.yml
- https://platform.openai.com/docs/api-reference
- https://platform.openai.com/docs/api-reference/authentication
metadata:
verified: true
max-request: 1
tags: openai,token,exposure
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- "(sk-[a-zA-Z0-9]{48})"
# digest: 490a0046304402201e2f4c2e0748d18d5867e84c62ed8f58ae0f3c4f84c4c445636f24fe0a96a34302207842323486e29e5e86ce8412ccc38d8de6476c16d55b4b0c34527bdc36e56da9:922c64590222798bb761d5b6d8e72950