28 Jun 2016

Authenticated Option Deletion Vulnerability in Social Media and Share Icons (Ultimate Social Media)

Recently we have been finding a lot of vulnerabilities in WordPress plugins through monitoring our websites for what look to be requests related to hacking attempts against plugins that don’t have known vulnerabilities and then checking over the plugins for exploitable vulnerabilities. That has lead to us finding quite a few vulnerabilities in the current versions of plugins. In attempt to catch more of this type of issue we have been looking around for more data so that we can catch more of these vulnerabilities. That lead us to look at the Social Media and Share Icons (Ultimate Social Media) plugin, despite it looking like it might not have been the target of a hacker. While reviewing that we found a fairly serious vulnerability, though not one that hackers would likely be interested in exploiting.

One of things we review during this type of check is AJAX accessible functions since we have seen those to be a frequent source of issues. Despite the fact that that all of the functions look to be intended only to be accessible to Administrator level users, no check was being done to insure that lower level users were not accessing them. Most of them were still protected to an extent due to fact that a valid nonce was being checked for. That wasn’t the case for the function sfsi_DeleteSkin(), which is located in the file /libs/controllers/sfsi_iconsUpload_contoller.php. While that function is intended for deleting custom skins for the the plugin, the code allows you to delete any option from the wp_options table, since it doesn’t do anything to limit what you can pass to the delete_option() function: [Read more]