{"id":21150,"date":"2022-03-01T18:58:28","date_gmt":"2022-03-01T15:58:28","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166170\/rufus317-dllhijack.txt"},"modified":"2022-03-02T12:24:54","modified_gmt":"2022-03-02T08:54:54","slug":"rufus-3-17-1846-dll-hijacking","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/rufus-3-17-1846-dll-hijacking\/","title":{"rendered":"Rufus 3.17.1846 DLL Hijacking"},"content":{"rendered":"<p dir=\"ltr\">Hi all,<\/p>\n<p dir=\"ltr\">I would like to disclose a vulnerability that I just found today.<\/p>\n<p dir=\"ltr\">Details below:<\/p>\n<p dir=\"ltr\">Vulnerable Software and Version:<\/p>\n<p dir=\"ltr\">1. Rufus 3.17.1846 executable<br \/>\n2. Rufus 3.17.1846 portable executable<\/p>\n<p dir=\"ltr\">Vulnerable software download link:<br \/>\nhttps:\/\/rufus.ie\/en\/<\/p>\n<p dir=\"ltr\">https:\/\/github.com\/pbatard\/rufus\/releases\/tag\/v3.17<\/p>\n<p dir=\"ltr\">Date discovered and reported:<br \/>\n25 Feb 2022<\/p>\n<p dir=\"ltr\">Description:<br \/>\nBoth Rufus 3.17.1846 executable AND portable executable are suffering from DLL<br \/>\nHijacking by placing x86 MSASN1.dll or VERSION.dll in the same directory as<br \/>\nthe executables, which could cause arbitrary code execution and privilege<br \/>\nescalation.<\/p>\n<p dir=\"ltr\">Taking MSASN1.dll as an example, craft a malicious x86 DLL with an entry<br \/>\npoint with DllMain and place in the same directory, once double click the<br \/>\nexecutable, an x86 admin shell could be obtained as the executable requires<br \/>\nadmin right to run by design.<\/p>\n<p dir=\"ltr\">Attack vector:<br \/>\nTaking MSASN1.dll as an example PoC code of dll can be found in my<br \/>\nrepository<\/p>\n<p dir=\"ltr\">Attack steps:<\/p>\n<p dir=\"ltr\">1.<\/p>\n<p dir=\"ltr\">Craft and drop a malicious DLL named as &#8220;MSASN1.dll&#8221; with entry point<br \/>\nDllMain [image: image]\n&lt;https:\/\/user-images.githubusercontent.com\/21979646\/155570972-1ca622d7-f75e-42ba-b9e5-45eace8fd8d3.png&gt;<br \/>\n2.<\/p>\n<p dir=\"ltr\">Double click the executable &#8220;Rufus&#8221;, administrator privilege is required<br \/>\nto run<br \/>\n3.<\/p>\n<p dir=\"ltr\">Malicious DLL has been called and an admin shell can be obtained as<br \/>\nPoC [image:<br \/>\nimage]\n&lt;https:\/\/user-images.githubusercontent.com\/21979646\/155571105-aabc503a-47e9-4489-b6f8-df1aad548b70.png&gt;<\/p>\n<p dir=\"ltr\">This issue has been submitted to github as well and is acknowledged by the<br \/>\nowner,<br \/>\nhttps:\/\/github.com\/pbatard\/rufus\/issues\/1877<\/p>\n<p dir=\"ltr\">Thanks and regards,<br \/>\nJames Tsz Ko Yeung<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi all, I would like to disclose a vulnerability that I just found today. Details below: Vulnerable Software and Version: 1. Rufus 3.17.1846 executable 2. Rufus 3.17.1846 portable executable Vulnerable software download link: https:\/\/rufus.ie\/en\/ https:\/\/github.com\/pbatard\/rufus\/releases\/tag\/v3.17 Date discovered and reported: 25 Feb 2022 Description: Both Rufus 3.17.1846 executable AND portable executable are suffering from DLL Hijacking &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-21150","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=21150"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/21150\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=21150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=21150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=21150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}