Tainted flow: 'APP_KEY' from os.environ.get (line 77, credential/environment) → requests.get (network output)
- Category
- Data Flow
- Confidence
- 94% confidence
- Finding
Authenticating to DingTalk is legitimate, but this request places APP_SECRET in the URL query string. Requests exceptions can include that complete URL, and the surrounding handler converts exceptions to strings and writes them to stdout and the failure log, potentially exposing the application secret to readers of those outputs.
- Content
python last_err = None for attempt in range(retries + 1): try: resp = requests.get( "https://oapi.dingtalk.com/gettoken", params={"appkey": APP_KEY, "appsecret": APP_SECRET}, timeout=timeout,
