Exploit for php platform in category web applications
{"id": "1337DAY-ID-26821", "type": "zdt", "bulletinFamily": "exploit", "title": "WordPress InfiniteWP Client 1.5.1.3 / 1.6.0 PHP Object Injection Vulnerability", "description": "Exploit for php platform in category web applications", "published": "2017-01-27T00:00:00", "modified": "2017-01-27T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {}, "href": "https://0day.today/exploit/description/26821", "reporter": "Yorick Koster", "references": [], "cvelist": [], "immutableFields": [], "lastseen": "2018-02-06T09:14:46", "viewCount": 11, "enchantments": {"score": {"value": 0.3, "vector": "NONE"}, "dependencies": {}, "backreferences": {"references": [{"type": "threatpost", "idList": ["THREATPOST:5D5241707AB76ED799696E37D048872A", "THREATPOST:7876640D5EC3E8FE3FE885606BBB1C6D"]}]}, "exploitation": null, "vulnersScore": 0.3}, "sourceHref": "https://0day.today/exploit/26821", "sourceData": "------------------------------------------------------------------------\r\nInfiniteWP Client WordPress Plugin unauthenticated PHP Object injection vulnerability\r\n------------------------------------------------------------------------\r\nYorick Koster, June 2016\r\n\r\n------------------------------------------------------------------------\r\nAbstract\r\n------------------------------------------------------------------------\r\nA PHP Object injection vulnerability was found in the InfiniteWP Client\r\nWordPress Plugin, which can be used by an unauthenticated user to\r\ninstantiate arbitrary PHP Objects. Using this vulnerability it is\r\npossible to execute arbitrary PHP code.\r\n\r\n------------------------------------------------------------------------\r\nOVE ID\r\n------------------------------------------------------------------------\r\nOVE-20160803-0004\r\n\r\n------------------------------------------------------------------------\r\nTested versions\r\n------------------------------------------------------------------------\r\nThis issue was successfully tested on the InfiniteWP Client WordPress\r\nPlugin version 1.5.1.3/1.6.0.\r\n\r\n------------------------------------------------------------------------\r\nFix\r\n------------------------------------------------------------------------\r\nInput validation was added to version 1.6.1.1 of InfiniteWP Client to\r\nmitigate this issue. JSON support was added to InfiniteWP Client version\r\n1.6.3.2, which will eventually replace the serialized data.\r\n\r\n------------------------------------------------------------------------\r\nDetails\r\n------------------------------------------------------------------------\r\nhttps://sumofpwn.nl/advisory/2016/infinitewp_client_wordpress_plugin_unauthenticated_php_object_injection_vulnerability.html\r\n\r\nThis issue is possible due to an unsafe call to unserialize() in the iwp_mmb_parse_request() method. The input is taken directly from the POST body as can be seen in the following code fragment:\r\n\r\ninit.php:\r\n\r\nif( !function_exists ('iwp_mmb_parse_request')) {\r\nfunction iwp_mmb_parse_request()\r\n{\r\nglobal $HTTP_RAW_POST_DATA;\r\n$HTTP_RAW_POST_DATA_LOCAL = NULL;\r\n$HTTP_RAW_POST_DATA_LOCAL = file_get_contents('php://input');\r\nif(empty($HTTP_RAW_POST_DATA_LOCAL)){\r\nif (isset($HTTP_RAW_POST_DATA)) {\r\n$HTTP_RAW_POST_DATA_LOCAL = $HTTP_RAW_POST_DATA;\r\n}\r\n}\r\n\r\nob_start();\r\n\r\nglobal $current_user, $iwp_mmb_core, $new_actions, $wp_db_version, $wpmu_version, $_wp_using_ext_object_cache;\r\n$data = base64_decode($HTTP_RAW_POST_DATA_LOCAL);\r\nif ($data){\r\n//$num = @extract(unserialize($data));\r\n$unserialized_data = @unserialize($data);\r\nif(isset($unserialized_data['params'])){\r\n$unserialized_data['params'] = iwp_mmb_filter_params($unserialized_data['params']);\r\n}\r\n\r\nIt has been confirmed that this issues can be used to execute arbitrary PHP code.\r\n\r\n------------------------------------------------------------------------\r\nSummer of Pwnage (https://sumofpwn.nl) is a Dutch community project. Its\r\ngoal is to contribute to the security of popular, widely used OSS\r\nprojects in a fun and educational way.\n\n# 0day.today [2018-02-06] #", "_state": {"dependencies": 1647589307, "score": 1659730416}}