2024-02-29 06:29:38 +00:00
|
|
|
id: react-app-password
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: React App Password
|
|
|
|
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
|
|
|
|
max-request: 1
|
|
|
|
tags: react,exposure,tokens
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- \bREACT_APP(?:_[A-Z0-9]+)*_PASS(?:\s+WORD)?\s*=\s*['"]?([^\s'"$]{6,})(?:[\s'"$]|$)
|
2024-03-06 09:19:19 +00:00
|
|
|
# digest: 4a0a004730450220553b5524510b51fa6cff613b6a8cad617d332e091a9bdb005666ac370b6ed32802210091f2d8338e4ca53d07266513d92b078a2bc6be156db8c673598af768f6f37c0c:922c64590222798bb761d5b6d8e72950
|