Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2368+ Articles
158+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-19384: SQL Injection in SourceCodester Simple Doctors Appointment System
CVE-2026-19384: SQL Injection in SourceCodester Simple Doctors Appointment System
SECURITYHIGHCVE-2026-19384

CVE-2026-19384: SQL Injection in SourceCodester Simple Doctors Appointment System

A remotely exploitable SQL injection vulnerability in SourceCodester Simple Doctors Appointment System 1.0 allows unauthenticated attackers to manipulate database queries via the ID parameter in admin/ajax.php.

Dylan H.

Security Team

August 10, 2026
3 min read

Affected Products

  • SourceCodester Simple Doctors Appointment System 1.0

Executive Summary

CVE-2026-19384 is a SQL injection vulnerability in SourceCodester Simple Doctors Appointment System 1.0. The flaw resides in the /admin/ajax.php endpoint when the action parameter is set to set_appointment. An attacker can manipulate the ID argument to inject arbitrary SQL into the backend database query.

The vulnerability is remotely exploitable with no authentication required, and has been assigned a CVSS base score of 7.3 (High).


Vulnerability Details

FieldValue
CVE IDCVE-2026-19384
CVSS Score7.3 (High)
Attack VectorNetwork (Remote)
AuthenticationNone required
Affected ProductSourceCodester Simple Doctors Appointment System 1.0
Vulnerable Endpoint/admin/ajax.php?action=set_appointment
Vulnerable ParameterID
Vulnerability TypeSQL Injection (CWE-89)
Published2026-08-10

Technical Analysis

Vulnerable Code Path

The vulnerability exists in the administrative AJAX handler at /admin/ajax.php. When action=set_appointment is submitted, the application passes the ID parameter directly into a SQL query without adequate sanitization or parameterization:

GET /admin/ajax.php?action=set_appointment&ID=1 OR 1=1-- HTTP/1.1
Host: target.example.com

The unsanitized ID value is interpolated into the query string, allowing an attacker to alter the query's logic, extract data, or bypass access controls.

Potential Impact

Successful exploitation of this SQL injection vulnerability could allow an attacker to:

  • Bypass authentication — Alter query logic to gain unauthorized access to the appointment management panel
  • Extract sensitive data — Dump patient appointment records, personal information, and credentials stored in the database
  • Modify or delete records — Tamper with appointment scheduling data
  • Escalate to RCE — On misconfigured MySQL deployments, leverage INTO OUTFILE or LOAD_FILE() for file-system access

Affected Systems

This vulnerability affects healthcare appointment management installations running:

  • SourceCodester Simple Doctors Appointment System version 1.0

SourceCodester products are widely used in educational and small-business contexts. Healthcare-adjacent deployments handling patient data are at elevated risk if exposed to the internet.


Remediation

Immediate Actions

  1. Take the affected endpoint offline if internet-exposed until a patch is available
  2. Apply a Web Application Firewall (WAF) rule to block SQL injection patterns on the /admin/ajax.php endpoint
  3. Restrict admin panel access to trusted IP ranges only
  4. Audit database logs for signs of prior exploitation (unusual UNION, OR 1=1, or -- patterns in query logs)

Developer Fix

The correct remediation is to replace string interpolation with parameterized queries (prepared statements):

// Vulnerable (DO NOT USE)
$query = "SELECT * FROM appointments WHERE id = " . $_GET['ID'];
 
// Fixed — use prepared statements
$stmt = $pdo->prepare("SELECT * FROM appointments WHERE id = ?");
$stmt->execute([$_GET['ID']]);

Additionally, enforce input validation to ensure ID contains only integer values before any database interaction.


Detection

Indicators of Exploitation

Look for the following patterns in web server access logs:

/admin/ajax.php?action=set_appointment&ID=1+OR+1%3D1--
/admin/ajax.php?action=set_appointment&ID=1+UNION+SELECT+...
/admin/ajax.php?action=set_appointment&ID=1';+DROP+TABLE+--

WAF Signatures

Most major WAF vendors (Cloudflare, ModSecurity, AWS WAF) detect standard SQL injection payloads via managed ruleset. Ensure these are enabled for the /admin/ path.


References

  • NVD — CVE-2026-19384
  • SourceCodester Simple Doctors Appointment System
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command

Related Advisories

  • BeyondTrust CVE-2026-1731 Remote Code Execution
  • Apache Struts RCE CVE-2026-3098
#CVE#SQL Injection#NVD#Vulnerability#Web Application#Healthcare

Related Articles

CVE-2026-9525: SQL Injection in itsourcecode Electronic

A remotely exploitable SQL injection vulnerability in the admin panel of itsourcecode Electronic Judging System 1.0 allows attackers to manipulate database.

4 min read

CVE-2026-5637: SQL Injection in projectworlds Car Rental

A remotely exploitable SQL injection vulnerability (CVE-2026-5637) has been disclosed in projectworlds Car Rental System 1.0. The flaw exists in...

4 min read

CVE-2026-16152: SQL Injection in SourceCodester Class and Exam Timetabling System

A remotely exploitable SQL injection vulnerability has been disclosed in SourceCodester Class and Exam Timetabling System 1.0. The flaw in /edit_rooma.php...

2 min read
Back to all Security Alerts