phpmyadmin 4.8.1 (authenticated) local file inclusion (1)

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




phpmyadmin 4.8.1 (authenticated) local file inclusion (1) Code Code...
				
The latest version downloaded from the official website, the file name is phpMyAdmin-4.8.1-all-languages.zip The problem appears in /index.php Find 55~63 lines Line 61 contains include $_REQUEST['target']; This is obviously LFI precursor, as long as we bypass the 55 to 59 restrictions on the line Line 57 restricts the target parameter from beginning with index Line 58 limit target parameter cannot appear within $target_blacklist Find the definition of $target_blacklist : In /index.php the first of 50 lines As long as the target parameter is not import.php or export.php, the last limit is Core::checkPageValidity($_REQUEST['target']) Find the checkPageValidity method of the Core class : Defined in the \ libraries \ classes \ core.php on the 443 line The problem is in urldecode() on line 465 We can use this function to bypass the white list detection! I ? Twice url encoded as % 253f can bypass the validation! Payload: http://127.0.0.1/phpmyadmin/index.php?target=db_sql.php%253f/../../../../../../windows/wininit.ini - - - I thought the loophole was over, because I didn't find out where phpmyadmin could perform file operations to implement Getshell . After several weeks of inspiration, I thought of a way to get Shell without writing files . We all know that after login phpmyadmin , the database is completely controllable, then we can write the WebShell to the database and then include the database file? Tested locally, I found that if you use WebShell as the field value of the data table can be perfectly written to the database file: Find the corresponding database file: Include: Payload: http://127.0.0.1/phpmyadmin/index.php?a=phpinfo();&target=db_sql.php%253f/../../../../../../phpStudy/PHPTutorial/MySQL/data/hack/hack.frm

Phpmyadmin 4.8.1 (authenticated) local file inclusion (1) Vulnerability / Exploit Source : Phpmyadmin 4.8.1 (authenticated) local file inclusion (1)



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.