Tainted flow: 'msg_req' from open (line 82, file read) → urllib.request.urlopen (network output)
High
- Category
- Data Flow
- Content
msg_req.add_header('Content-Type', 'application/json') msg_req.add_header('Authorization', f'Bearer {access_token}') with urllib.request.urlopen(msg_req, timeout=10) as resp: msg_result = json.loads(resp.read().decode('utf-8')) if msg_result.get('code') == 0:- Confidence
- 80% confidence
- Finding
- The script reads arbitrary content from a local notify file and automatically sends it to an external Feishu chat with no authentication, origin validation, or content restrictions. If an attacker or untrusted local process can write to that file, they can trigger unauthorized data exfiltration to the configured chat and potentially leak sensitive information.
