Skip to main content

CVE-2023-1061: SQL Injection in SourceCodester Doctors Appointment System

Medium
VulnerabilityCVE-2023-1061cvecve-2023-1061
Published: Mon Feb 27 2023 (02/27/2023, 11:08:30 UTC)
Source: CVE
Vendor/Project: SourceCodester
Product: Doctors Appointment System

Description

A vulnerability, which was classified as critical, has been found in SourceCodester Doctors Appointment System 1.0. This issue affects some unknown processing of the file /admin/edit-doc.php. The manipulation of the argument email/oldmail leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.

AI-Powered Analysis

AILast updated: 07/04/2025, 15:12:40 UTC

Technical Analysis

CVE-2023-1061 is a SQL Injection vulnerability identified in SourceCodester Doctors Appointment System version 1.0. The vulnerability arises from improper sanitization or validation of user-supplied input in the /admin/edit-doc.php file, specifically through the manipulation of the 'email' or 'oldmail' parameters. An attacker can remotely exploit this flaw by injecting malicious SQL code into these parameters, which the backend database executes. This can lead to unauthorized access to sensitive data, modification or deletion of database records, or potentially full compromise of the underlying database server. The vulnerability does not require user interaction and can be exploited over the network without authentication, increasing its risk profile. The CVSS 4.0 score is 5.3 (medium severity), reflecting that while the attack vector is network-based with low complexity and no privileges or user interaction needed, the impact on confidentiality, integrity, and availability is limited or partial. The vulnerability is publicly disclosed, but no known exploits in the wild have been reported yet. However, given the critical nature of SQL Injection flaws and the public disclosure, the risk of exploitation remains significant, especially if the system handles sensitive patient or appointment data.

Potential Impact

For European organizations using the SourceCodester Doctors Appointment System 1.0, this vulnerability poses a risk of unauthorized data exposure or manipulation. Healthcare data is highly sensitive and regulated under GDPR, so any breach could lead to severe legal and financial consequences. Attackers exploiting this vulnerability could access patient records, appointment details, or administrative data, potentially leading to identity theft, fraud, or disruption of healthcare services. The integrity of appointment scheduling could be compromised, affecting patient care and operational continuity. Additionally, exploitation could serve as a foothold for further attacks within the healthcare provider's network. The impact is heightened in Europe due to strict data protection laws and the critical nature of healthcare infrastructure.

Mitigation Recommendations

Organizations should immediately audit their use of the SourceCodester Doctors Appointment System version 1.0 and plan to upgrade or patch the affected component once a fix is available. In the absence of an official patch, implement input validation and sanitization on the 'email' and 'oldmail' parameters to prevent injection of malicious SQL code. Employ parameterized queries or prepared statements in the backend code to eliminate direct concatenation of user input into SQL commands. Restrict database user privileges to the minimum necessary to limit the impact of potential exploitation. Monitor web server and application logs for suspicious activity targeting the /admin/edit-doc.php endpoint. Additionally, consider deploying web application firewalls (WAFs) with rules to detect and block SQL injection attempts. Regularly back up databases and ensure incident response plans are in place to quickly respond to any compromise.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
VulDB
Date Reserved
2023-02-27T11:07:04.245Z
Cisa Enriched
false
Cvss Version
4.0
State
PUBLISHED

Threat ID: 682cd0f81484d88663aeb8a3

Added to database: 5/20/2025, 6:59:04 PM

Last enriched: 7/4/2025, 3:12:40 PM

Last updated: 7/30/2025, 6:39:11 PM

Views: 11

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats