Exploits / Vulnerability Discovered : 2019-10-07 |
Type : webapps |
Platform : php
This exploit / vulnerability Vbulletin 5.0 < 5.5.4 updateavatar authenticated remote code execution is for educational purposes only and if it is used you will do on your own risk!
author..............: Egidio Romano aka EgiX
mail................: n0b0d13s[at]gmail[dot]com
software link.......: https://www.vbulletin.com/
+-------------------------------------------------------------------------+
| This proof of concept code was written for educational purpose only. |
| Use it at your own risk. Author will be not responsible for any damage. |
+-------------------------------------------------------------------------+
[-] Vulnerability Description:
User input passed through the "data[extension]" and "data[filedata]" parameters to
the "ajax/api/user/updateAvatar" endpoint is not properly validated before being used
to update users' avatars. This can be exploited to inject and execute arbitrary PHP code.
Successful exploitation of this vulnerability requires the "Save Avatars as Files" option
to be enabled (disabled by default).
[-] Disclosure timeline:
[30/09/2019] - Vendor notified
[03/10/2019] - Patch released: https://bit.ly/2OptAzI
[04/10/2019] - CVE number assigned (CVE-2019-17132)
[07/10/2019] - Public disclosure
*/
set_time_limit(0);
error_reporting(E_ERROR);
if (!extension_loaded("curl")) die("[-] cURL extension required!\n");