Trustwave SpiderLabs Security Advisory TWSL2015-002: Cross-Site Scripting in Magnolia CMS Published: 02/12/15 Version: 1.0 Vendor: Magnolia International Ltd Product: Magnolia CMS Version affected: 5.3.6 Enterprise and Community Edition and possibly other versions Product description: Magnolia CMS is an Open Source Enterprise Content Management System. Finding : Cross-Site Scripting (XSS) in Magnolia CMS Credit: Piotr Karolak of Trustwave SpiderLabs CVE: CVE-2015-1413 CWE: CWE-79 Description of Finding Trustwave discovered XSS vulnerability in Magnolia CMS, which can be exploited to perform Cross-Site Scripting attacks against users of vulnerable application. Cross site scripting is a vulnerability that allows an attacker to send malicious code to another user. Because a browser cannot know if the script should be trusted or not, it will execute the script in the user context allowing the attacker to access any cookies or session tokens retained by the browser. The exploitation example below affects /magnoliaPublic/ . Path Fragment (suffix ~.html) input ~ was set to Science%3Csvg%20onload%3Dprompt("XSS")%3E~.html The input is reflected inside a text element. GET /magnoliaPublic/demo-project/service/category~Science%3Csvg%20onload%3Dprompt("XSS")%3E~.html HTTP/1.1 Referer: http://a.b.c.d/magnoliaPublic/demo-project.html Cookie: JSESSIONID=C923ED1E476024D944DB3FCB65BDA09F Host: a.b.c.d Connection: Keep-alive Accept-Encoding: gzip,deflate User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36 Accept: */* Remediation Steps: Upgrade to version v5.3.7 or the latest stable version of Magnolia CMS. Please note that Trustwave SpiderLabs have not verified this fix. Revision History: 01/08/15 - Vulnerability disclosed to vendor 02/05/15 - Patch released by vendor 02/12/15 - Advisory published About Trustwave: Trustwave helps businesses fight cybercrime, protect data and reduce security risks. With cloud and managed security services, integrated technologies and a team of security experts, ethical hackers and researchers, Trustwave enables businesses to transform the way they manage their information security and compliance programs while safely embracing business imperatives including big data, BYOD and social media. More than 2.5 million businesses are enrolled in the Trustwave TrustKeeper® cloud platform, through which Trustwave delivers automated, efficient and cost-effective data protection, risk management and threat intelligence. Trustwave is a privately held company, headquartered in Chicago, with customers in 96 countries. For more information about Trustwave, visit www.trustwave.com. About Trustwave SpiderLabs: SpiderLabs(R) is the advanced security team at Trustwave focused on application security, incident response, penetration testing, physical security and security research. The team has performed over a thousand incident investigations, thousands of penetration tests and hundreds of application security tests globally. In addition, the SpiderLabs Research team provides intelligence through bleeding-edge research and proof of concept tool development to enhance Trustwave's products and services. https://www.trustwave.com/spiderlabs Disclaimer: The information provided in this advisory is provided "as is" without warranty of any kind. Trustwave disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Trustwave or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Trustwave or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.