{"id":59375,"date":"2024-09-01T22:39:58","date_gmt":"2024-09-01T19:39:58","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/181214\/sercomm_backdoor_scanner.rb.txt"},"modified":"2024-09-01T22:39:58","modified_gmt":"2024-09-01T19:39:58","slug":"sercomm-network-device-backdoor-detection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/sercomm-network-device-backdoor-detection\/","title":{"rendered":"SerComm Network Device Backdoor Detection"},"content":{"rendered":"<p>##<br \/># This module requires Metasploit: https:\/\/metasploit.com\/download<br \/># Current source: https:\/\/github.com\/rapid7\/metasploit-framework<br \/>##<\/p>\n<p>class MetasploitModule &lt; Msf::Auxiliary<br \/>include Msf::Exploit::Remote::Tcp<br \/>include Msf::Auxiliary::Scanner<br \/>include Msf::Auxiliary::Report<\/p>\n<p>def initialize(info={})<br \/>super(update_info(info,<br \/>&#8216;Name&#8217; =&gt; &#8216;SerComm Network Device Backdoor Detection&#8217;,<br \/>&#8216;Description&#8217; =&gt; %q{<br \/>This module can identify SerComm manufactured network devices which<br \/>contain a backdoor, allowing command injection or account disclosure.<br \/>},<br \/>&#8216;Author&#8217; =&gt;<br \/>[<br \/>&#8216;Eloi Vanderbeken &lt;eloi.vanderbeken[at]gmail.com&gt;&#8217;, # Initial discovery, poc<br \/>&#8216;Matt &#8220;hostess&#8221; Andreko &lt;mandreko[at]accuvant.com&gt;&#8217; # Msf module<br \/>],<br \/>&#8216;License&#8217; =&gt; MSF_LICENSE,<br \/>&#8216;References&#8217; =&gt;<br \/>[<br \/>[ &#8216;CVE&#8217;, &#8216;2014-0659&#8217; ],<br \/>[ &#8216;OSVDB&#8217;, &#8216;101653&#8217; ],<br \/>[ &#8216;URL&#8217;, &#8216;https:\/\/github.com\/elvanderb\/TCP-32764&#8217; ]],<br \/>&#8216;DisclosureDate&#8217; =&gt; &#8216;2013-12-31&#8217; ))<\/p>\n<p>register_options([<br \/>Opt::RPORT(32764)<br \/>])<br \/>end<\/p>\n<p>def do_report(ip, endianness)<br \/>report_vuln({<br \/>:host =&gt; ip,<br \/>:port =&gt; rport,<br \/>:name =&gt; &#8220;SerComm Network Device Backdoor&#8221;,<br \/>:refs =&gt; self.references,<br \/>:info =&gt; &#8220;SerComm Network Device Backdoor found on a #{endianness} device&#8221;<br \/>})<br \/>end<\/p>\n<p>def run_host(ip)<br \/>begin<br \/>connect<br \/>sock.put(Rex::Text.rand_text(5))<br \/>res = sock.get_once<br \/>disconnect<\/p>\n<p>if (res &amp;&amp; res.start_with?(&#8220;MMcS&#8221;))<br \/>print_good(&#8220;#{ip}:#{rport} &#8211; Possible backdoor detected &#8211; Big Endian&#8221;)<br \/>do_report(ip, &#8220;Big Endian&#8221;)<br \/>elsif (res &amp;&amp; res.start_with?(&#8220;ScMM&#8221;))<br \/>print_good(&#8220;#{ip}:#{rport} &#8211; Possible backdoor detected &#8211; Little Endian&#8221;)<br \/>do_report(ip, &#8220;Little Endian&#8221;)<br \/>else<br \/>vprint_status(&#8220;#{ip}:#{rport} &#8211; Backdoor not detected.&#8221;)<br \/>end<br \/>rescue Rex::ConnectionError =&gt; e<br \/>vprint_error(&#8220;#{ip}:#{rport} &#8211; Connection failed: #{e.class}: #{e}&#8221;)<br \/>end<br \/>end<br \/>end<\/p>\n","protected":false},"excerpt":{"rendered":"<p>### This module requires Metasploit: https:\/\/metasploit.com\/download# Current source: https:\/\/github.com\/rapid7\/metasploit-framework## class MetasploitModule &lt; Msf::Auxiliaryinclude Msf::Exploit::Remote::Tcpinclude Msf::Auxiliary::Scannerinclude Msf::Auxiliary::Report def initialize(info={})super(update_info(info,&#8216;Name&#8217; =&gt; &#8216;SerComm Network Device Backdoor Detection&#8217;,&#8216;Description&#8217; =&gt; %q{This module can identify SerComm manufactured network devices whichcontain a backdoor, allowing command injection or account disclosure.},&#8216;Author&#8217; =&gt;[&#8216;Eloi Vanderbeken &lt;eloi.vanderbeken[at]gmail.com&gt;&#8217;, # Initial discovery, poc&#8216;Matt &#8220;hostess&#8221; Andreko &lt;mandreko[at]accuvant.com&gt;&#8217; # Msf module],&#8216;License&#8217; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-59375","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59375","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=59375"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59375\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}