T09 · Insecure Skill Coding Practices
- Location
scripts/api_request.py:42- Finding
Authenticated Session Cookie Can Be Sent to an Arbitrary URL
- Content
View full analysis
[method]") sys.exit(1) url = sys.argv[2] method = sys.argv[3] if len(sys.argv) > 3 else 'GET' result = custom_request(url, method.upper()) ``` ### Technical Analysis The `custom` command accepts a user-controlled URL and HTTP method. Before making the request, `make_request()` loads the complete saved Umeng session Cookie and places it in the `Cookie` header. It also includes the CSRF token extracted from that Cookie. There is no validation of the URL scheme, hostname, port, path, resolved IP address, or redirect destination. Consequently, the authentication headers are not limited to `https://upush.umeng.com`. The separate `security_interceptor.py` ...[truncated 1554 chars]- Remediation
View remediation
