cbcvebase.
CVE-2021-27315
published 2021-03-24

CVE-2021-27315: Blind SQL injection in contactus.php in Doctor Appointment System 1.0 allows an unauthenticated attacker to insert malicious SQL queries via the comment…

PriorityP266high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EXPLOIT
EPSS
7.83%
93.9th percentile
Blind SQL injection in contactus.php in Doctor Appointment System 1.0 allows an unauthenticated attacker to insert malicious SQL queries via the comment parameter.

Affected

1 ranges
VendorProductVersion rangeFixed in
doctor_appointment_system_projectdoctor_appointment_system

Detection & IOCsextracted from sources · hover to see the quote

path/contactus.php
commandfirstname={{randstr}}&lastname={{randstr}}&email={{randstr}}%40test.com&comment=test'+AND+(SELECT+6133+FROM+(SELECT(SLEEP(6)))nOqb)+AND+'RiUU'='RiUU&submit=Send+Us
  • Detect blind time-based SQLi attempts against /contactus.php via POST; look for SLEEP() payloads in the 'comment' parameter from unauthenticated requests.
  • Match on HTTP 500 response combined with response body containing 'Medical Management System' and a response duration >= 6 seconds to confirm successful exploitation.
  • The exploit uses a POST to /contactus.php with Content-Type: application/x-www-form-urlencoded; flag requests where the comment field contains SQL constructs such as AND+(SELECT+...+FROM+(SELECT(SLEEP(...)))).
  • Tag: time-based-sqli — the injection uses SLEEP(6) to infer data; monitor for abnormally delayed responses (>=6s) on this endpoint.
  • ·The Nuclei template uses a 10-second HTTP timeout (@timeout: 10s) to accommodate the SLEEP(6) payload; detection rules must account for this extended response window to avoid false negatives.
  • ·Exploitation requires no authentication (PR:N, UI:N per CVSS), meaning any unauthenticated network request to /contactus.php with a crafted comment parameter is a valid attack vector.

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.