CVE-2026-5179
Received Received - Intake
SQL Injection in Simple Doctors Appointment System Login Module

Publication date: 2026-03-31

Last updated on: 2026-04-29

Assigner: VulDB

Description
A vulnerability was detected in SourceCodester Simple Doctors Appointment System 1.0. This affects an unknown part of the file /admin/login.php. The manipulation of the argument Username results in sql injection. The attack can be executed remotely. The exploit is now public and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-31
Last Modified
2026-04-29
Generated
2026-05-07
AI Q&A
2026-03-31
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
sourcecodester simple_doctors_appointment_system 1.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The SQL injection vulnerability in the Simple Doctors Appointment System allows attackers to gain unauthorized access to sensitive data, manipulate data, and potentially disrupt services. Such unauthorized access and data tampering can lead to violations of data protection regulations like GDPR and HIPAA, which mandate the protection of personal and health information. Failure to secure the system against this vulnerability could result in non-compliance with these standards, exposing organizations to legal and financial penalties.

Mitigations such as using prepared statements, input validation, minimizing database privileges, and regular security audits are essential to maintain compliance by protecting data integrity and confidentiality.


Can you explain this vulnerability to me?

CVE-2026-5179 is a critical SQL injection vulnerability found in the Simple Doctor's Appointment System version 1.0, specifically in the '/admin/login.php' file. The vulnerability occurs because the 'username' parameter is used directly in SQL queries without proper input validation or sanitization.

This flaw allows attackers to inject malicious SQL code remotely, manipulating the database queries. Exploitation does not require prior authentication, making it easier for attackers to exploit.

Attackers can use techniques such as time-based and boolean-based blind SQL injection to exploit this vulnerability, potentially gaining unauthorized access to sensitive data, tampering with data, or taking full control of the system.


How can this vulnerability impact me? :

This vulnerability can have severe impacts including unauthorized access to the database, leakage of sensitive information, data tampering, and potentially full system compromise.

Attackers can disrupt services by manipulating or deleting data, which can affect business continuity and trust.

Since exploitation requires no authentication, the risk of attack is higher, making it critical to address this vulnerability promptly.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This SQL injection vulnerability can be detected by testing the 'username' parameter in the '/admin/login.php' file for injection flaws.

A proof of concept involves sending a POST request to '/doctors_appointment/admin/ajax.php?action=login' with crafted 'username' and 'password' parameters to observe abnormal behavior.

Detection techniques include time-based and boolean-based blind SQL injection tests.

The sqlmap tool can be used to verify the vulnerability by targeting the 'username' parameter on a MySQL database.

  • Example sqlmap command: sqlmap -u "http://target/doctors_appointment/admin/ajax.php?action=login" --data="username=admin&password=pass" -p username --dbms=MySQL

What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include:

  • Use prepared statements with parameter binding to separate SQL code from user input.
  • Implement strict input validation and filtering to ensure inputs meet expected formats.
  • Minimize database user permissions by avoiding high-privilege accounts (such as root or admin) for routine database operations.
  • Conduct regular security audits to detect and remediate vulnerabilities promptly.

Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart