提交 #984337: girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection信息

标题girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection
描述The affected component is the root `signup.php` registration handler. The `fname` field is concatenated directly into an INSERT statement: ```php $name=$_POST['fname']; $sql = "INSERT INTO Patient (Name, Gender, DOB,Contact,Email,Username,Password) VALUES ('$name','$gender','$dob','$contact','$email','$username','$password') "; ... echo "Error: " . $sql . "<br>" . mysqli_error($conn); ``` An unauthenticated attacker can close the quoted value and inject additional columns, causing error-based disclosure of the full query and `mysqli_error()`. By injecting a subquery into another column position (e.g. `fname=x',(SELECT password FROM patient LIMIT 1),'...')-- -`), the attacker can insert extracted data into the new row and read it back, exfiltrating arbitrary database contents.
来源⚠️ https://github.com/girishsaraf/Online-Appointment-Booking-System/issues/9
用户
 jiqinwang (UID 101291)
提交2026-09-16 15時48分 (19 日前)
管理2026-10-05 16時58分 (19 days later)
状态已接受
VulDB条目413617 [girishsaraf Online-Appointment-Booking-System 直到 f427b4757128ca253d33d0cc4e87bbb9c999a4d5 Registration signup.php fname SQL注入]
积分20

Do you need the next level of professionalism?

Upgrade your account now!