Trustwave SpiderLabs Security Advisory TWSL2015-006: Multiple Vulnerabilities in QlikView Vendor: Qlik ( Product: QlikView Version affected: 11.20 Service Release 10 and prior Product description: QlikView is a powerful web based reporting application. Finding 1: Persistent Cross-Site Scripting (XSS) Credit: Tom Neaves of Trustwave A Persistent Cross-Site Scripting (XSS) vulnerability was identified within the add button action functionality which normally should open a target URL. However, it is possible to inject arbitrary JavaScript into the "text" field in a persistent manner which when clicked by a user results in the JavaScript being executed. Location: https://vulnerableapplication/QvAjaxZfc/QvsViewClient.aspx?mark=XXX&host=XXX&view=XXX.qvw&slot=&platform=XXX&dpi=XXX&xrfkey=XXX Method: HTTP POST Affected Parameter: text Example POST data: Resulting HTML: When a user clicks on a button: Finding 2: Arbitrary Redirection Credit: Maciej Grela of Trustwave The application logout page was found to permit user defined values to be sent to it. The URL supplied in the "login" parameter is stored into window.location resulting in a redirect to an attacker controlled page. Location: https://vulnerableapplication/qlikview/logout.htm Method: HTTP GET Affected Parameter: login Example: https://vulnerableapplication/qlikview/logout.htm? Affected Function: redirectMe Finding 3: DOM-based Cross-Site Scripting (XSS) Credit: Maciej Grela of Trustwave It is possible to inject arbitrary JavaScript into the "login" parameter sent to the logout page. The JavaScript is then included in the vulnerable function "redirectMe". Location: https://vulnerableapplication/qlikview/logout.htm Method: HTTP GET Affected Parameter: login Example: https://vulnerableapplication/qlikview/logout.htm?login=data:text%2Fhtml;base64,PGh0bWw+PGhlYWQ+PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg== ("" is base64 encoded) Affected Function: redirectMe Finding 4: Authentication Bypass on Exported Documents Credit: Tom Neaves of Trustwave It is possible to access previously exported documents without supplying a valid "AccessPointSession" session cookie. Example: https://vulnerableapplication/QvAjaxZfc/QvsViewClient.aspx?public=XXX&size=XXX&host=XXX&name=Temp/XXX.csv (where XXX.csv is the temporary filename) Remediation Steps: Upgrade to 11.20 Service Release 11 or the latest stable version of QlikView. Please note that Trustwave SpiderLabs have not verified this fix. Revision History: 01/27/15 - Vulnerability disclosed to vendor 04/29/15 - Patch released by vendor 05/11/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 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. 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.