Vulnerabilities > CVE-2011-5124 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Bluecoat Proxyone and Proxysg

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
bluecoat
CWE-119
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in the BCAAA component before build 60258, as used by Blue Coat ProxySG 4.2.3 through 6.1 and ProxyOne, allows remote attackers to execute arbitrary code via a large packet to the synchronization port (16102/tcp).

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionBlue Coat Authentication and Authorization Agent (BCAAA) 5 Buffer Overflow. CVE-2011-5124. Remote exploit for windows platform
idEDB-ID:17513
last seen2016-02-02
modified2011-07-09
published2011-07-09
reportermetasploit
sourcehttps://www.exploit-db.com/download/17513/
titleBlue Coat Authentication and Authorization Agent BCAAA 5 - Buffer Overflow

Metasploit

descriptionThis module exploits a stack buffer overflow in process bcaaa-130.exe (port 16102), which comes as part of the Blue Coat Authentication proxy. Please note that by default, this exploit will attempt up to three times in order to successfully gain remote code execution (in some cases, it takes as many as five times). This can cause your activity to look even more suspicious. To modify the number of exploit attempts, set the ATTEMPTS option.
idMSF:EXPLOIT/WINDOWS/MISC/BCAAA_BOF
last seen2020-06-14
modified2018-09-15
published2011-07-09
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/misc/bcaaa_bof.rb
titleBlue Coat Authentication and Authorization Agent (BCAAA) 5 Buffer Overflow

Nessus

NASL familyWindows
NASL idBLUECOAT_AUTH_AGENT_SA55.NASL
descriptionThe version of Blue Coat Authentication and Authorization Agent installed on the remote Windows host is earlier than build 60258. It is, therefore, potentially affected by a stack-based buffer overflow vulnerability when handling specially crafted TCP packets on port 16102. By exploiting this flaw, a remote, unauthenticated attacker could execute arbitrary code on the remote host subject to the privileges of the user running the affected application.
last seen2020-06-01
modified2020-06-02
plugin id68928
published2013-07-17
reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/68928
titleBlue Coat Authentication and Authorization Agent Remote Overflow
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(68928);
  script_version("1.7");
  script_cvs_date("Date: 2019/11/27");

  script_cve_id("CVE-2011-5124");
  script_bugtraq_id(47618);

  script_name(english:"Blue Coat Authentication and Authorization Agent Remote Overflow");
  script_summary(english:"Checks version of BCAAA");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has an authentication application installed that is
affected by a code execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Blue Coat Authentication and Authorization Agent
installed on the remote Windows host is earlier than build 60258.  It
is, therefore, potentially affected by a stack-based buffer overflow
vulnerability when handling specially crafted TCP packets on port 16102. 
By exploiting this flaw, a remote, unauthenticated attacker could
execute arbitrary code on the remote host subject to the privileges of
the user running the affected application.");
  script_set_attribute(attribute:"see_also", value:"http://web.archive.org/web/20120509094126/https://kb.bluecoat.com/index?page=content&id=SA55");
  script_set_attribute(attribute:"solution", value:
"Upgrade to build 60258 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2011-5124");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Blue Coat Authentication and Authorization Agent (BCAAA) 5 Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/04/04");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/04/04");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/17");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:bluecoat:proxysg");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("bluecoat_auth_agent_installed.nasl", "smb_enum_services.nasl");
  script_require_keys("SMB/BCAAA/Path", "SMB/BCAAA/Version");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");

app = 'Blue Coat Authentication and Authorization Agent';
version = get_kb_item_or_exit('SMB/BCAAA/Version');
path = get_kb_item_or_exit('SMB/BCAAA/Path');

if (report_paranoia < 2)
{
  status = get_kb_item_or_exit('SMB/svc/BCAAA');
  if (status != SERVICE_ACTIVE)
    exit(0, 'The '+app+' service is installed but not active.');
}

ver = split(version, sep:'.', keep:FALSE);
# Make sure the version has the build number
if (max_index(ver) < 5) exit(1, 'Failed to get the build number of ' + app);

for (i=0; i < max_index(ver); i++)
  ver[i] = int(ver[i]);

if (
  (
    (ver[0] == 4 && ver[1] == 2 && ver[2] == 3) ||
    (ver[0] == 4 && ver[1] == 3) ||
    (ver[0] == 5 &&
      (ver[1] == 2 || ver[1] == 3 || ver[1] == 4 || ver[1] == 5)
    ) ||
    (ver[0] == 6 && ver[1] == 1)
  ) && ver[4] < 60258
)
{
  port = get_kb_item('SMB/transport');
  if (!port) port = 445;

  if (report_verbosity > 0)
  {
    report =
      '\n  Path              : ' + path +
      '\n  Installed version : ' + ver[0] + '.' + ver[1] + '.' + ver[2] + '.' + ver[3] +
      '\n  Installed build   : ' + ver[4] +
      '\n  Fixed build       : 60258\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
else audit(AUDIT_INST_PATH_NOT_VULN, app, version, path);