Tainted flow: 'req' from os.environ.get (line 51, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 94% confidence
- Finding
OAuth requests are legitimate, but their destination comes from unrestricted KIMI_AUTH_HOST configuration. A changed destination receives refresh tokens during refresh and controls device-login responses during login; exploitation requires influence over that configuration rather than an ordinary proxy request.
- Content
python "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "space-duck-kimi-relay/0.2"}) try: with urllib.request.urlopen(req, timeout=30) as r: return r.status, json.loads(r.read() or b"{}") except urllib.error.HTTPError as e: try:
