24 lines
848 B
YAML
24 lines
848 B
YAML
id: reactapp-username
|
|
|
|
info:
|
|
name: React App Username
|
|
author: DhiyaneshDK
|
|
severity: info
|
|
reference:
|
|
- https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/react.yml
|
|
- https://create-react-app.dev/docs/adding-custom-environment-variables/
|
|
- https://stackoverflow.com/questions/48699820/how-do-i-hide-an-api-key-in-create-react-app
|
|
metadata:
|
|
verified: true
|
|
tags: react,keys,file
|
|
|
|
file:
|
|
- extensions:
|
|
- all
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- \bREACT_APP(?:_[A-Z0-9]+)*_USER(?:\s+NAME)?\s*=\s*['"]?([^\s'"$]{3,})(?:[\s'"$]|$)
|
|
# digest: 4a0a0047304502201077003a86f122901374676e5f9dfda39f6c54f870a6e4f12b7dd01707a3a5e2022100c998646fe193fa833a18772b90679efa1ba4cca48a55a2da1c839b79e50b4cfd:922c64590222798bb761d5b6d8e72950 |