# CVE-2026-105704: SourceCodester Drug Recommendation System authentication bypass in Auth Guard

Source: https://junglewise.ai/threats/cve-2026-105704-a-vulnerability-was-identified-in-sourcecodester-drug  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-06. Updated: 2026-10-06  
License: CC BY 4.0 with a link back

CVE-2026-105704 · Severity: high · CVSS 7.3 · Published 2026-10-06

SourceCodester Drug Recommendation System is a web application for recommending medications to patients. An authentication bypass vulnerability in its Auth Guard component allows unauthenticated attackers to manipulate a user_id parameter and bypass login protections, gaining unauthorized access to sensitive administrative functions like user management and database operations. The exploit is publicly available and requires only network access with no authentication.

Technologies: [SourceCodester Drug Recommendation System](https://junglewise.ai/threats/technologies/drug-recommendation-system). Vendors: [SourceCodester](https://junglewise.ai/threats/vendors/sourcecodester).

## Quick answers

**Is CVE-2026-105704 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-105704 being exploited in the wild.

**How severe is CVE-2026-105704?** High severity, with a CVSS score of 7.3, published 6 October 2026.

**Which products and versions are affected?** SourceCodester Drug Recommendation System 1.0.

**Is there a fix for CVE-2026-105704?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-105704 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-105704?** Check whether you run SourceCodester Drug Recommendation System at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The Auth Guard fails to call exit() or die() after sending a Location redirect header when $_SESSION['user_id'] is empty, allowing execution to continue past the authentication check. An attacker can manipulate the user_id parameter to reach protected admin pages and execute sensitive operations (user deletion, password changes, SQL queries) without proper authentication. A network-based remote attack requires no prior authentication or user interaction.

## Affected products

- SourceCodester Drug Recommendation System 1.0

## Timeline

- 2026-10-06: disclosed

## References

- [https://github.com/hackliu/Vulnerability-Reports/blob/master/Drug-Recommender-Web-App/VULN-02-Broken-Access-Control.md](https://github.com/hackliu/Vulnerability-Reports/blob/master/Drug-Recommender-Web-App/VULN-02-Broken-Access-Control.md)
- [https://vuldb.com/cve/CVE-2026-105704](https://vuldb.com/cve/CVE-2026-105704)

## Related threats

- [SourceCodester Drug Recommendation System cross-site scripting in Admin Record Tables](https://junglewise.ai/threats/cve-2026-108920-a-security-vulnerability-has-been-detected-in-sourcecodester)
- [SourceCodester Drug Recommendation System stored XSS in Student Registration](https://junglewise.ai/threats/cve-2026-108919-a-weakness-has-been-identified-in-sourcecodester-drug)
- [SourceCodester Drug Recommendation System CSRF protection bypass](https://junglewise.ai/threats/cve-2026-105706-a-weakness-has-been-identified-in-sourcecodester-drug)
- [SourceCodester Drug Recommendation System reflected/stored XSS in admin interface](https://junglewise.ai/threats/cve-2026-105705-a-security-flaw-has-been-discovered-in-sourcecodester-drug)
- [SourceCodester Drug Recommendation System SQL injection in symptom creation](https://junglewise.ai/threats/cve-2026-105178-a-security-flaw-has-been-discovered-in-sourcecodester-drug)
