{"id":259,"date":"2020-08-08T09:35:27","date_gmt":"2020-08-08T09:35:27","guid":{"rendered":"https:\/\/lyhinslab.org\/?p=259"},"modified":"2020-08-15T06:59:07","modified_gmt":"2020-08-15T06:59:07","slug":"lifehacks-for-hackers-the-family-networking-weaknesses-0-days-guaranteed","status":"publish","type":"post","link":"https:\/\/lscp.llc\/index.php\/2020\/08\/08\/lifehacks-for-hackers-the-family-networking-weaknesses-0-days-guaranteed\/","title":{"rendered":"Lifehacks for hackers: the family networking weaknesses, 0-days guaranteed"},"content":{"rendered":"\n<p>The stablest and the most efficient way to find the brand new and very own 0-days with no lingering deployment is <s>to apply for LL membership<\/s> to pen test the router your parents use. This works primarily because:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Families use routers for years. &#8220;It just works fine&#8221;<\/li><li>Families rarely want to buy a new router just because the previous one is insecure<\/li><li>Families rarely do the patch management<\/li><\/ul>\n\n\n\n<p>Yes, router is the core of any network. Whoever controls the routers, controls the whole network. As an illustrative example, feel the exploit example by Ihor Voschyk, a researcher at Lyhin&#8217;s Lab. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">The Ihor Voschyk Experience<\/h4>\n\n\n\n<p>While having a time off, having a little rest from routine work stuff, I decided to have a look at the router which I found at my parents place.<\/p>\n\n\n\n<p>This was a Tenda D301 Wi-Fi router. The firmware was probably customized by the ISP who installed this router. Exact firmware version was v50.22.1.3_ru_TUA01.<\/p>\n\n\n\n<p>At first glance I knew this will be funny: default username and password are seen as soon as the user opens the web interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"723\" height=\"435\" src=\"https:\/\/lyhinslab.org\/wp-content\/uploads\/2020\/08\/1.png\" alt=\"\" class=\"wp-image-261\"\/><\/figure>\n\n\n\n<p>The first thing I decided to look at was diagnostic functionality. \u201cPing\u201d and \u201cTraceroute\u201d utilities are pretty popular. More than that, these are usually used insecurely: user input is checked by JavaScript and then passed to the command line without being sanitized. This case was not an exception.<\/p>\n\n\n\n<p>I\u2019ve tried a simple payload for command injection using \u201csleep\u201d, because this was a case of a blind command injection:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"745\" height=\"380\" src=\"https:\/\/lyhinslab.org\/wp-content\/uploads\/2020\/08\/2.png\" alt=\"\" class=\"wp-image-262\"\/><\/figure>\n\n\n\n<p>As evident from the screenshot, response time was around 31 seconds. This means that \u201csleep\u201d is being executed.<\/p>\n\n\n\n<p>Tenda D301 uses BusyBox which also has \u201cnetcat\u201d installed. Unfortunately, netcat from BusyBox doesn\u2019t allow us to gain a shell, but still makes a nice PoC.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"390\" height=\"51\" src=\"https:\/\/lyhinslab.org\/wp-content\/uploads\/2020\/08\/3.png\" alt=\"\" class=\"wp-image-263\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"142\" src=\"https:\/\/lyhinslab.org\/wp-content\/uploads\/2020\/08\/4.png\" alt=\"\" class=\"wp-image-264\"\/><\/figure>\n\n\n\n<p>This means it is possible to execute commands.<\/p>\n\n\n\n<p>Further research reveals that \u201cwget\u201d utility is present. It is possible to compile a binary to upload it to the router and gain persistent access.<\/p>\n\n\n\n<p>Now to the sad part: later I\u2019ve identified a \u201ctelnet\u201d utility, which can be activated through a web interface. It can be used to spawn a shell and execute any commands we like \ud83d\ude0a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion<\/h4>\n\n\n\n<p>Top-3 advices to any family network owner, who want to protect his wife and children from a bastard with a directional Wi-Fi antenna (costs 20$):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Update the firmware reguraly. If the router has no updates for more, than four years &#8211; definitely buy a new router or accept the risk <\/li><li>Feel the power of the router administrative panel. Configure Wi-Fi yourself at least once. By the way, use the latest stable wireless standard and disallow WPS.<\/li><li>Use secure <strong>and different<\/strong> passwords for both Wi-Fi access and administrative panel<\/li><\/ul>\n\n\n\n<p>Top-3 advices to anybody who would like to teach his parents of how to be secure. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Be patient<\/li><li>Be soft, fond, put some efforts to understand to the opposite positions <\/li><li>Statistically and by our feelings, you still have no chances<\/li><\/ul>\n\n\n\n<p><em>LL advises to all the researchers do not break real applications<\/em> <em>illegally. This fun leads to broken businesses and lives, and, most likely, will not make an attacker really rich. <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The stablest and the most efficient way to find the brand new and very own 0-days with no lingering deployment is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-259","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":0,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"wp:attachment":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}