McAfee Web Gateway And Squid Proxy 3.1.19 Bypass

http://packetstormsecurity.org/files/111842/McAfee-Web-Gateway-And-Squid-Proxy-3.1.19-Bypass.html

# Exploit Title: Proxy URL Filtering Bypass

# Date: 13/04/2012
# Author: Gabriel Menezes Nunes
# Version: McAfee Web Gateway and Squid Proxy
# Tested on: McAfee Web Gateway and Squid Proxy 3.1.19
# CVE: CVE-2012-2212 and CVE-2012-2213




I found a vulnerability in McAfee Web Gateway 7 and Squid Proxy that allows access to filtered sites.
The appliance/software believes in the Host field of HTTP Header using CONNECT method.
Example


CONNECT 66.220.147.44:443 HTTP/1.1
Host: www.facebook.com




It is blocked.


CONNECT 66.220.147.44:443 HTTP/1.1 (without host field)


It is blocked.


But:


CONNECT 66.220.147.44:443 HTTP/1.1
Host: www.uol.com.br (allowed url)


The connection works.


From here, I can send SSL traffic without a problem. This way, I can access any blocked site that allows SSL connections.
Others test that I did is convert GET methods in CONNECT methods.


GET http://www.facebook.com HTTP/1.1
Host: www.facebook.com


in


CONNECT 66.220.147.44:80 HTTP/1.1
Host: www.uol.com.br


It will connect.


and after it is possible to send the GET packets. It will work!


This vulnerability is different from the CONNECT Tunnel method. The flaw is on the Host field processing. The appliance believes on this field.


So, any sites can be accessed. URL filtering in this device/software is irrelevant and useless. 
One of the most important (if not the most important) feature of this kind of device is to protect the network in accessing specific URLs. So, this flaw is very dangerous, and it can be implemented even in malwares, bypassing any protection.
I developed a python script that acts like a proxy and it uses this flaw to access any site. 
This tool is just a proof of concept.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值