{"id":388,"date":"2021-03-13T13:47:56","date_gmt":"2021-03-13T13:47:56","guid":{"rendered":"https:\/\/lyhinslab.org\/?p=388"},"modified":"2021-05-13T16:09:11","modified_gmt":"2021-05-13T16:09:11","slug":"how-the-white-box-hacking-works-xss-in-orocrm","status":"publish","type":"post","link":"https:\/\/lscp.llc\/index.php\/2021\/03\/13\/how-the-white-box-hacking-works-xss-in-orocrm\/","title":{"rendered":"How White-Box hacking works: XSS in OroCRM"},"content":{"rendered":"\n<p>Recently, Lyhin&#8217;s Lab decided to take a more challenging application. OroCRM v4.1.6:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Has 785 stars and 260 forks on Github<\/li><li>PHP Symphony framework<\/li><li>Is being actively maintained<\/li><\/ol>\n\n\n\n<p>And after a few hours of active researching, <a href=\"https:\/\/www.linkedin.com\/in\/darina-goncharenko-b08102181\/\"><a href=\"https:\/\/www.linkedin.com\/#\">Darina Goncharenko<\/a><\/a> found an XSS vulnerability. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Steps to reproduce<\/h3>\n\n\n\n<p>Severity: Medium<br>CVSS:3.0\/AV:N\/AC:L\/PR:H\/UI:R\/S:C\/C:L\/I:L\/A:L<\/p>\n\n\n\n<p>1.&nbsp;Log&nbsp;in&nbsp;as&nbsp;administrator&nbsp;and&nbsp;create&nbsp;a&nbsp;new&nbsp;product;<br>2.&nbsp;Fill&nbsp;the&nbsp;description&nbsp;field&nbsp;with&nbsp;payload&nbsp;using&nbsp;HTML&nbsp;encoding:<br>Example:&nbsp;&amp;lt;embed&nbsp;src=\/\/14.rs&amp;gt;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"2520\" height=\"1554\" src=\"https:\/\/lyhinslab.org\/wp-content\/uploads\/2021\/03\/image.png\" alt=\"\" class=\"wp-image-420\"\/><\/figure>\n\n\n\n<p><br>3. Save changes and note the embedded script executes every time when the product is edited.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1280\" height=\"552\" src=\"https:\/\/lyhinslab.org\/wp-content\/uploads\/2021\/03\/image-1.png\" alt=\"\" class=\"wp-image-421\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Solution<\/h3>\n\n\n\n<p>To mitigate similar issues, implement validation and output encoding for input parameters handled by the application.<\/p>\n\n\n\n<p>We determine the overall security level of OroCRM application v4.1.6 as &#8220;High&#8221;.&nbsp;We were pleased by the conversation with OroCRM, they received our recommendation and took their 60 days to remediate this issue. We note, that we did not re-test this issue. <\/p>\n\n\n\n<p><em><em>LL advises all the researchers to avoid breaking real applications<\/em>&nbsp;<em>illegally. This fun leads to broken businesses and lives, and, most likely, will not make an attacker really rich.<\/em><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, Lyhin&#8217;s Lab decided to take a more challenging application. OroCRM v4.1.6: Has 785 stars and 260 forks on Github PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":0,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"wp:attachment":[{"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lscp.llc\/index.php\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}