{"id":58969,"date":"2024-08-19T18:29:39","date_gmt":"2024-08-19T15:29:39","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180231\/SYSS-2024-017.txt"},"modified":"2024-08-19T18:29:39","modified_gmt":"2024-08-19T15:29:39","slug":"ewon-cosy-password-disclosure","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/ewon-cosy-password-disclosure\/","title":{"rendered":"Ewon Cosy+ Password Disclosure"},"content":{"rendered":"<p>&#8212;&#8211;BEGIN PGP SIGNED MESSAGE&#8212;&#8211;<br \/>Hash: SHA512<\/p>\n<p>Advisory ID: SYSS-2024-017<br \/>Product: Ewon Cosy+<br \/>Manufacturer: HMS Industrial Networks AB<br \/>Affected Version(s): Firmware Versions: &lt; 21.2s10 and &lt; 22.1s3<br \/>Tested Version(s): Firmware Version: 21.2s7<br \/>Vulnerability Type: Cleartext Storage of Sensitive Information in a Cookie (CWE-315)<br \/>Risk Level: Low<br \/>Solution Status: Fixed<br \/>Manufacturer Notification: 2024-03-27<br \/>Solution Date: 2024-07-18<br \/>Public Disclosure: 2024-08-11<br \/>CVE Reference: CVE-2024-33892<br \/>Author of Advisory: Moritz Abrell, SySS GmbH<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Overview:<\/p>\n<p>The Ewon Cosy+ is a VPN gateway used for remote access and maintenance<br \/>in industrial environments.<\/p>\n<p>The manufacturer describes the product as follows (see [1]):<\/p>\n<p>&#8220;The Ewon Cosy+ gateway establishes a secure VPN connection between<br \/>the machine (PLC, HMI, or other devices) and the remote engineer.<br \/>The connection happens through Talk2m, a highly secured industrial<br \/>cloud service. The Ewon Cosy+ makes industrial remote access easy<br \/>and secure like never before!&#8221;<\/p>\n<p>Due to cleartext storage of the password in a cookie, an attacker with<br \/>appropriate access is able to retrieve the plaintext administrative<br \/>password.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Vulnerability Details:<\/p>\n<p>The credentials used for the basic authentication against the web<br \/>interface of Cosy+ are stored in the cookie &#8220;credentials&#8221; after a<br \/>successful login.<\/p>\n<p>An attacker with access to a victim&#8217;s browser is able to retrieve the<br \/>administrative password of Cosy+.<\/p>\n<p>In addition, the cookie is not secured (no HttpOnly, Secure or<br \/>SameSite attribute is set). Thus, the credentials could also be extracted<br \/>in combination with cross-site scripting (XSS) vulnerabilities.<\/p>\n<p>Note: During the responsible disclosure process, SySS GmbH became aware of<br \/>CVE-2015-7928[8], which describes an issue with password autocomplete<br \/>in Ewon devices. Since this function contains the problematic cookie,<br \/>this CVE may already describe the insecure cookie. SySS GmbH would therefore<br \/>like to credit the reporter of CVE-2015-7928, Karn Ganeshen.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Proof of Concept (PoC):<\/p>\n<p>1. &#8220;credentials&#8221; cookie value: YWRtOlN1cDNyUzNjcjN0IyM=<\/p>\n<p>2. Decoded credentials:<br \/>#&gt; echo -n &#8220;YWRtOlN1cDNyUzNjcjN0IyM=&#8221; | base64 -d<br \/>adm:Sup3rS3cr3t##<\/p>\n<p>Bonus: accessing the cookie from JavaScript code:<br \/>&lt;script&gt;alert(&#8220;Credentials can be access via JavaScript&#8221; + document.cookie)&lt;\/script&gt;<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Solution:<\/p>\n<p>According to the manufacturer note[4], the vulnerability was fixed<br \/>with the firmware versions 21.2s10 and 22.1s3.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Disclosure Timeline:<\/p>\n<p>2024-03-26: Vulnerability discovered<br \/>2024-03-27: Vulnerability reported to manufacturer<br \/>2024-04-02: Inquiry about the status<br \/>2024-04-05: Manufacturer acknowlegded the vulnerability and started the<br \/>analysis<br \/>2024-04-10: Two more vulnerabilities reported to the manufacturer<br \/>(SYSS-2024-032 and SYSS-2024-033)<br \/>2024-04-11: Manufacturer acknowlegded the vulnerabilities and asked for<br \/>a publication date for all findings<br \/>2024-04-12: Proposed dates for a discussion about publication<br \/>2024-04-15: Manufacturer sent a technical overview of planned remediation<br \/>actions and details about the planned timeline<br \/>2024-04-15: Acknowlegded the remediation actions and asked the manufacturer<br \/>to assign a CVE ID<br \/>2024-04-30: CVE ID CVE-2024-33893[5] assigned by the manufacturer<br \/>2024-05-31: Manufacturer informed that the fix is in completion stage and<br \/>asked if the blog post[6] can be reviewed by HMS<br \/>2024-06-04: Proposed dates to review the blog post draft<br \/>2024-06-21: Inquiry about the status<br \/>2024-06-21: Received an out-of-office auto reply<br \/>2024-07-01: Inquiry about the status<br \/>2024-07-04: Inquiry about the status<br \/>2024-07-12: Inquiry about the status and letting the manufacturer know that<br \/>the vulnerability will be published within a talk at DEF CON[7]in August<br \/>2024-07-12: Manufacturer responded that the fix is planned by the end of<br \/>July; manufacturer asked again for reviewing the blog post<br \/>draft<br \/>2024-07-12: Again confirmed reviewing the blog post is possible and asking<br \/>for the sending of details<br \/>2024-07-17: Blog post provided to HMS<br \/>2024-07-18: Fixed firmware versions 21.2s10 and 22.1s3 released by HMS<br \/>2024-07-23: Inquiry about the status<br \/>2024-07-23: Manufacturer reviewed the blog post and confirmed that a<br \/>fix is provided<br \/>2024-07-29: Discussion with HMS about the blog post and final publication<br \/>actions<br \/>2024-08-11: Vulnerability disclosed at DEF CON[7]2024-08-11: Blog post published[6]\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>References:<\/p>\n[1] Ewon Cosy+ product website<br \/>https:\/\/www.hms-networks.com\/p\/ec71330-00ma-ewon-cosy-ethernet<br \/>[2] SySS Security Advisory SYSS-2024-017<br \/>https:\/\/www.syss.de\/fileadmin\/dokumente\/Publikationen\/Advisories\/SYSS-2024-017.txt<br \/>[3] SySS Responsible Disclosure Policy<br \/>https:\/\/www.syss.de\/en\/responsible-disclosure-policy<br \/>[4] Manufacturer note<br \/>https:\/\/hmsnetworks.blob.core.windows.net\/nlw\/docs\/default-source\/products\/cybersecurity\/security-advisory\/hms-security-advisory-2024-07-29-001&#8211;ewon-several-cosy&#8211;vulnerabilities.pdf<br \/>[5] CVE-2024-33892<br \/>https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2024-33892<br \/>[6] Blog post<br \/>https:\/\/blog.syss.com\/posts\/hacking-a-secure-industrial-remote-access-gateway\/<br \/>[7] DEF CON talk<br \/>https:\/\/defcon.org\/html\/defcon-32\/dc-32-speakers.html#54521<br \/>[8] CVE-2015-7928<br \/>https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2015-7928<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Credits:<\/p>\n<p>This security vulnerability was found by Moritz Abrell of SySS GmbH.<\/p>\n<p>E-Mail:moritz.abrell@syss.de<br \/>Public Key:https:\/\/www.syss.de\/fileadmin\/dokumente\/PGPKeys\/Moritz_Abrell.asc<br \/>Key Fingerprint: 2927 7EB6 1A20 0679 79E9 87E6 AE0C 9BF8 F134 8B53<\/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<br \/>&#8212;&#8211;BEGIN PGP SIGNATURE&#8212;&#8211;<\/p>\n<p>iQIzBAEBCgAdFiEEKSd+thogBnl56Yfmrgyb+PE0i1MFAmay4zQACgkQrgyb+PE0<br \/>i1Oq5hAApN8Ekc20CgEg5KyIFK18sKBPzSA\/SeZcSdUOkv8N05riytWxbVFuLBpS<br \/>LhHH9spxUjn6Sr36JDp5dISCj9rtajrNE\/adIiNC9LUhBRIr2h1ogFfh5zKK8N9D<br \/>m4CXknQ3b2QQctkuhywyKSKjvNnvxj+k6nDIFlTzXdl3e9cEpisaAFr8zt9\/jb7d<br \/>ZBt8HHrEvJRCa5eBK40r0t42xFiWILh98enmLVCM2VOUnaAxz6JXLTunRSXqC6WH<br \/>SzEOR\/G32z+NxNCphPuswlIqfnhoaOFQ7oP2miuGglDdm5yWQX6E+xtp5HUelmkS<br \/>DyZ6nUPOmr67lOgOUIhtIQp4zRYNiQAvDv70x9k\/RCv+VDG4B5qEffFIbq6JgSCW<br \/>Q+5iQXfDEJwuj0ePIe\/wO+svn7C7LOSfvRfjw39GF0gTeKhPi8cNj5S+Jpl3M6pP<br \/>XWEHcHzhVze9t5CLFgkh4GtmqH4OvWvFxn8d3x5h21eljloobUNZXAWlUYJdb6Ae<br \/>gNhWD3IKQJyPo\/4cyDC5iZS6QtivjyiQUb6aU6vqKWcR7tlnr7jferG00Q3Sz8R2<br \/>ddC8Vw78j2GvzyCibNhSoKGfjQAOhYgfsH8ktRDQ\/zDYguT4cHA++V16MbfXwIv0<br \/>y3mQqModAAlpqYGVf4783H24kuyP19KewZuj5dSsMTyShIcTkCU=<br \/>=LXSO<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-017Product: Ewon Cosy+Manufacturer: HMS Industrial Networks ABAffected Version(s): Firmware Versions: &lt; 21.2s10 and &lt; 22.1s3Tested Version(s): Firmware Version: 21.2s7Vulnerability Type: Cleartext Storage of Sensitive Information in a Cookie (CWE-315)Risk Level: LowSolution Status: FixedManufacturer Notification: 2024-03-27Solution Date: 2024-07-18Public Disclosure: 2024-08-11CVE Reference: CVE-2024-33892Author of Advisory: Moritz Abrell, SySS GmbH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &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-58969","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58969","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=58969"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58969\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}