Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-10812 Overview
CVE-2024-10812 is an open redirect vulnerability [CWE-601] affecting binary-husky/gpt_academic version 3.83. The flaw exists in the handling of the file parameter, which accepts user-controlled input and redirects users to the supplied URL without validation or sanitization. Attackers can craft malicious links that appear to originate from a trusted gpt_academic deployment but send victims to adversary-controlled destinations. The vulnerability enables phishing campaigns, malware distribution, and credential theft against users of affected deployments.
Critical Impact
Attackers can abuse the trusted gpt_academic domain to redirect authenticated users to arbitrary external sites for credential harvesting and malware delivery.
Affected Products
- binary-husky gpt_academic version 3.83
Discovery Timeline
- 2025-03-20 - CVE-2024-10812 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-10812
Vulnerability Analysis
The vulnerability resides in a redirect handler within gpt_academic 3.83 that consumes a file query parameter and uses its value as the destination for an HTTP redirect response. The application performs no allowlist check, no origin comparison, and no scheme restriction before issuing the redirect. Any value supplied by the requester is honored, including absolute URLs pointing to external hosts controlled by an attacker.
Exploitation requires user interaction. A victim must click a link that targets a legitimate gpt_academic instance but embeds an attacker-controlled URL in the file parameter. Because the initial hostname belongs to a trusted application, security-aware users and URL-reputation systems are more likely to permit the request. The browser then follows the server-issued redirect to the malicious destination.
Root Cause
The root cause is missing input validation on the file parameter before it is used to construct a redirect response. The handler trusts client-supplied data to determine the redirect target, violating the principle of using an allowlist of permitted destinations. This pattern is classified under CWE-601: URL Redirection to Untrusted Site.
Attack Vector
The attack vector is network-based and requires user interaction. An attacker crafts a URL such as https://victim-gpt-academic.example/<redirect-endpoint>?file=https://attacker.example/login and distributes it through email, chat platforms, or search engine optimization. When the victim follows the link, the gpt_academic server responds with a redirect to the attacker site. The attacker site typically mimics a login page or hosts a drive-by download, leveraging the trust established by the original domain.
For additional technical context, see the Huntr Bug Bounty Report.
Detection Methods for CVE-2024-10812
Indicators of Compromise
- HTTP requests to gpt_academic endpoints containing a file parameter whose value is an absolute URL with an external hostname or non-relative scheme such as http://, https://, //, or data:.
- Server access logs showing 3xx redirect responses where the Location header points to a host outside the organization's trusted domain list.
- User reports of login pages or download prompts appearing after clicking links that originate from a gpt_academic URL.
Detection Strategies
- Deploy web application firewall (WAF) rules that inspect the file parameter and block values matching external URL patterns or encoded redirect payloads.
- Correlate referer headers in authentication logs against gpt_academic redirect endpoints to identify suspicious outbound redirection flows.
- Hunt in proxy and DNS telemetry for client sessions that transition from a gpt_academic host directly to newly registered or low-reputation domains.
Monitoring Recommendations
- Enable verbose logging on the gpt_academic reverse proxy to capture all query parameters and redirect targets for retrospective analysis.
- Alert on sudden increases in 3xx responses from gpt_academic endpoints, particularly those issuing cross-origin Location headers.
- Monitor email and collaboration platforms for inbound links that contain the gpt_academic hostname combined with a file parameter referencing external URLs.
How to Mitigate CVE-2024-10812
Immediate Actions Required
- Inventory all gpt_academic deployments and confirm whether any instance runs version 3.83 or earlier releases exhibiting the same handler behavior.
- Restrict external exposure of affected instances behind authenticated reverse proxies or VPN access until a fixed version is deployed.
- Educate users with access to gpt_academic about the risk of following redirect links and verify the final destination before entering credentials.
Patch Information
No vendor advisory URL is published in the NVD record at the time of this writing. Administrators should monitor the binary-husky/gpt_academic repository for releases newer than 3.83 that address CWE-601, and review the Huntr Bug Bounty Report for remediation guidance from the reporter.
Workarounds
- Implement an allowlist of permitted redirect destinations at the reverse proxy layer and reject requests whose file parameter resolves to an external host.
- Rewrite outbound redirects from gpt_academic to pass through an interstitial warning page that displays the destination URL before continuing.
- Strip or normalize the file parameter at the gateway when its value is an absolute URL or contains protocol-relative prefixes such as //.
# Example NGINX rule to block absolute URLs in the 'file' parameter
location /redirect {
if ($arg_file ~* "^(https?:|//|data:|javascript:)") {
return 400;
}
proxy_pass http://gpt_academic_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

