जमा करें #980739: girishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injectionजानकारी

शीर्षकgirishsaraf Online-Appointment-Booking-System f427b4757128ca253d33d0cc4e87bbb9c999a4d5 SQL Injection
विवरणThe affected component is the root `cover.php` patient login handler. After checking that `uname` and `psw` are non-empty, it concatenates both POST values directly into the query: ```php $username=$_POST['uname']; $password=$_POST['psw']; $query = mysqli_query($conn,"select * from patient where password='$password' AND username='$username'"); ``` Because the credentials are embedded into the SQL string without escaping or prepared statements, an unauthenticated attacker can submit `nouser' OR '1'='1` as the username to make the WHERE clause always true. This bypasses authentication and grants a patient session (`$_SESSION['username']`, `$_SESSION['user']`), which can then be used to book or cancel appointments on behalf of the account.
स्रोत⚠️ https://github.com/girishsaraf/Online-Appointment-Booking-System/issues/5
उपयोगकर्ता
 zsh07 (UID 101257)
सबमिशन15/09/2026 07:08 PM (20 दिन पहले)
संयम05/10/2026 12:27 PM (20 days later)
स्थितिस्वीकृत
VulDB प्रविष्टि413581 [girishsaraf Online-Appointment-Booking-System तक f427b4757128ca253d33d0cc4e87bbb9c999a4d5 Patient Login cover.php mysqli_query uname/psw SQL इंजेक्शन]
अंक20

Might our Artificial Intelligence support you?

Check our Alexa App!