McAfee Web Gateway And Squid Proxy 3.1.19 Bypass

简介: http://packetstormsecurity.org/files/111842/McAfee-Web-Gateway-And-Squid-Proxy-3.

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.
目录
相关文章
|
2天前
|
应用服务中间件 Apache nginx
Python Web 开发: 什么是 WSGI(Web Server Gateway Interface)?
Python Web 开发: 什么是 WSGI(Web Server Gateway Interface)?
|
2天前
|
应用服务中间件 nginx
【报错】Failed to start A high performance web server and a reverse proxy server.
【报错】Failed to start A high performance web server and a reverse proxy server.
230 2
|
2天前
|
前端开发 API Docker
web前端开发项目走proxy代理后端接口,构建发布到生产等环境后,如何修改api接口
web前端开发项目走proxy代理后端接口,构建发布到生产等环境后,如何修改api接口
45 0
|
8月前
|
测试技术
SAP Gateway Foundation Client Proxy 的使用方法
SAP Gateway Foundation Client Proxy 的使用方法
33 0
|
11月前
|
前端开发 JavaScript API
web前端面试高频考点——Vue3.x响应式(Composition API的逻辑复用、Proxy实现响应式)
web前端面试高频考点——Vue3.x响应式(Composition API的逻辑复用、Proxy实现响应式)
117 0
|
Web App开发 测试技术 网络架构
Mule ESB 学习笔记(11)Web Service Proxy(这里是一个可以正常运行的例子)
一、WebSevice Proxy 简介      WebService Proxy 是ESB中最常见的使用场景之一,即通过 ESB 直接转发 WebService Client 的 SOAP 请求,并将 WebServcie Provider 的 SOAP 响应转发给 WebService Client ,此时的ESB就是一个WebService Proxy
2169 0