xuexitong-homework-submit
Audited by Socket on Sep 28, 2026
2 alerts found:
AnomalySecurityThe utility appears designed for authenticated Chaoxing homework management. The primary security concern is that arbitrary task and homework URLs are fetched with a session containing an explicit Cookie header, which may disclose the account cookie to an attacker-controlled host. Restrict these URLs to the expected Chaoxing domain and avoid forwarding explicit cookies across origins. No clear malware behavior is present in the provided fragment.
The code implements an apparent homework-fetching and temporary-save workflow. The main security concerns are transmitting session cookies over plain HTTP and sending the manually configured Cookie header to an unrestricted caller-supplied homework URL. Limit requests to the intended HTTPS Chaoxing hosts and avoid HTTP for authenticated uploads. The update-check helper and submission helper are outside the supplied code and cannot be evaluated here.