wordpress plugin contact form 7 5.3.1 unrestricted file upload

▸▸▸ Exploit & Vulnerability >>   webapps exploit & php vulnerability




wordpress plugin contact form 7 5.3.1 unrestricted file upload Code Code...
				
# Exploit Title: Wordpress Plugin Contact Form 7 5.3.1 - Unrestricted File Upload # Date: 12/20/2020 # Exploit Author: Ramón Vila Ferreres (@ramonvfer) # Vendor Homepage: https://contactform7.com # Software Link: https://wordpress.org/plugins/contact-form-7/ # Version: 5.3.1 and below # Tested on: Windows 10 1909, Ubuntu 20.4 Explanation --------------------------------------------------------------------- ContactForm7 version 5.3.1 and below doesn't properly sanitize uploaded filenames to prevent Arbitrary File Upload that can lead to full server takeover in the worst-case scenario. This happens in the wpcf7_antiscript_file_name function, that fails to sanitize the provided filename if it ends with any Unicode special character ranging from U+0000 (null) to U+001F (us). The function matches both the file name and the file extension against an exclusion regex. Appending any unicode special character to the file extension results in a complete bypass of this verification (as the regex doesn't match) leading to the Unrestricted File Upload. Exploit --------------------------------------------------------------------- 1. Change the file extension of the file you want to upload (e.g: "shell.php") to its equivalent with the special character ending (in this case "shell.php" (appended U+0000)) 2. Upload the file using ContactForm7 file upload feature in the target website. 3. Go to <target.com>/wp-content/uploads/wpcf7_uploads/shell.php Note the special character at the end Note that the file upload location may vary as it is configurable. 4. Now you have uploaded your file!

Wordpress plugin contact form 7 5.3.1 unrestricted file upload Vulnerability / Exploit Source : Wordpress plugin contact form 7 5.3.1 unrestricted file upload



Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.