Trustwave SpiderLabs Security Advisory TWSL2013-031: Information Disclosure Vulnerability in RiskNet Acquirer Published: 11/07/13 Version: 1.0 Vendor: aiCorporation (http://aicorporation.net/) Product: RiskNet Acquirer Version affected: Potentially all versions (tested on 6.0) prior to the "6.0 b7+ADHOC-443" hotfix Product description: RiskNet Acquirer is a fraud management solution developed to protect major financial institutions including banks and payment processors. Finding 1: Information Disclosure Leading to Privilege Escalation (Full Database Access) Credit: Tom Neaves of Trustwave SpiderLabs CVE: CVE-2013-5687 CWE: CWE-200 RiskNet Acquirer consists of a thick client, a web service, and a database. During the authentication process as a normal user, a HTTP POST SOAP request is sent to the "ApplicationServiceBean" web service over HTTPS. This request contains user credentials, the workstation IP address and hostname. Example: POST /ApplicationServiceBean HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0) Content-Type: text/xml; charset=utf-8 SOAPAction: "" Host: WEBSERVER Content-Length: 625 Expect: 100-continue Connection: Keep-Alive HTTP/1.1 100 Continue HASHUSERNAMEPASSWORDIPHOSTNAME2820 The response from the server reveals the database hostname, username and password, as shown below. The assumption is that this message is to tell the thick client how to connect to the database. HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Fri, 00 Jan 2132 01:23:45 GMT GUID_VALUE;InactivePeriod=15;DBUser=DB_USER;DBPassword=DB_PASSWORD;UserID=USERNAME;Password_Expired=false;UserFlags=0;DATABASE=DATABASE_NAME;PORT=1433;SERVER=DATABASE_SERVER;INSTANCENAME=;SSL=false It is then possible to utilise the privileged database credentials returned directly and connect to the database server resulting in unauthorised access and potential modification of data belonging to any RiskNet Acquirer table. A previously normal user now has the ability to access all data, including audit logs. Remediation Steps: According to aiCorporation, the "6.0 b7+ADHOC-443" hotfix mitigates this vulnerability. However, Trustwave SpiderLabs have not verified this fix. Revision History: 08/22/13 - Vulnerability disclosed to vendor 11/05/13 - Vendor confirms availability of hotfix 11/07/13 - Advisory published References 1. http://aicorporation.net/risknetacquirer/ About Trustwave: Trustwave is the leading provider of on-demand and subscription-based information security and payment card industry compliance management solutions to businesses and government entities throughout the world. For organizations faced with today's challenging data security and compliance environment, Trustwave provides a unique approach with comprehensive solutions that include its flagship TrustKeeper compliance management software and other proprietary security solutions. Trustwave has helped thousands of organizations--ranging from Fortune 500 businesses and large financial institutions to small and medium-sized retailers--manage compliance and secure their network infrastructure, data communications and critical information assets. Trustwave is headquartered in Chicago with offices throughout North America, South America, Europe, Africa, China and Australia. For more information, visit https://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.