# Exploit Title: Wordpress Ultimate-Product-Catalog <=3.8.1 Privilege escalation # Date: 2016-06-17 # Google Dork: Index of /wp-content/plugins/ultimate-product-catalogue/ # Exploit Author: Joaquin Ramirez Martinez [ i0akiN SEC-LABORATORY ] # Vendor Homepage: http://www.etoilewebdesign.com # plugin uri: http://www.etoilewebdesign.com/plugins/ultimate-product-catalog/ # Software Link: # Version: 3.8.1 # Tested on: windows 7 + Mozilla firefox. # Demo: https://www.youtube.com/watch?v=m_qMZ2wIQPI ==================== DESCRIPTION ==================== In a recent security research, a privilege scalation web vulnerability has been detected in the WordPress Ultimate Product Catalogue Plugin <=v3.8.1. The vulnerability allows remote attackers to take over control of the Ultimate Product Catalogue Plugin administration page if the plugin ispremium version and the remote attacker have an especific account (contributor|editor|author). The privilege scalation web vulnerability is located in the /Functions/Update_Admin-Databases.php` file. Remote attackers are able to request crafted data of the POST method request with the vulnerable Žacces_roleŽ parameter. The security risk of the privilege scalation web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 8.6. Exploitation of the privilege scalation vulnerability requires low user interaction and low privilege web-application user account. Successful exploitation of the privilege scalation web vulnerability results in web aplication compromise. For security demostration I made a prof of concept to show the vulnerability logged in as a contributor user. ============== POC (html) ==============
================ Vulnerable code ================ located in /Functions/Update_Admin-Databases.php` file function Update_UPCP_Options() { global $Full_Version; $InstallVersion = get_option("UPCP_First_Install_Version"); ... if ($Full_Version == "Yes" and isset($_POST['access_role'])) {update_option("UPCP_Access_Role", $_POST['access_role']);} ... $update = __("Options have been succesfully updated.", 'UPCP'); return $update; } the function no check for capabilities... ========== CREDITS ========== Vulnerability discovered by: Joaquin Ramirez Martinez [i0akiN SEC-LABORATORY] joaquin.ramirez.mtz.lab[at]gmail[dot]com https://www.facebook.com/I0-security-lab-524954460988147/ https://www.youtube.com/channel/UCe1Ex2Y0wD71I_cet-Wsu7Q ============ REFERENCES ============ https://i0akinsec.wordpress.com/2016/06/17/wordpress-ultimate-product-catalog-3-8-1-privilege-escalation/ http://www.etoilewebdesign.com/plugins/ultimate-product-catalog/ https://wordpress.org/plugins/ultimate-product-catalogue/ https://wordpress.org/plugins/ultimate-product-catalogue/changelog/ Note: The vulnerability can be exploited if the plugin is in full version. An attacker without any account, but the administration menu item only appear when the attacker account is contributor, editor or author. When the legitimate UPCP administrator want request the plugin administration page, it will denegate his access. ================================== time-line 2015-10-08: vulnerability found 2016-06-17: reported to vendor 2016-06-17: Vendor has realeased a new version (3.8.) 2016-06-18: Public disclousure ===================================