Vulnerabilities > CVE-2011-4608 - Permissions, Privileges, and Access Controls vulnerability in Redhat Jboss Enterprise Application Platform 5.1.2

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN

Summary

mod_cluster in JBoss Enterprise Application Platform 5.1.2 for Red Hat Linux allows worker nodes to register with arbitrary virtual hosts, which allows remote attackers to bypass intended access restrictions and provide malicious content, hijack sessions, and steal credentials by registering from an external vhost that does not enforce security constraints.

Vulnerable Configurations

Part Description Count
Application
Redhat
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.

Nessus

NASL familyRed Hat Local Security Checks
NASL idREDHAT-RHSA-2012-0037.NASL
descriptionAn updated mod_cluster-native package that fixes one security issue is now available for JBoss Enterprise Application Platform 5.1.2 for Red Hat Enterprise Linux 4, 5, and 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. mod_cluster-native provides a native build of mod_cluster for the Apache HTTP Server (httpd). mod_cluster is an httpd-based load balancer. Like mod_jk, it uses a communication channel to forward requests from httpd to an application server node. It was found that mod_cluster allowed worker nodes to register on any virtual host (vhost), regardless of the security constraints applied to other vhosts. In a typical environment, there will be one vhost configured internally for worker nodes, and another configured externally for serving content. A remote attacker could use this flaw to register an attacker-controlled worker node via an external vhost that is not configured to apply security constraints, then use that worker node to serve malicious content, intercept credentials, and hijack user sessions. (CVE-2011-4608) Users of mod_cluster-native should upgrade to this updated package, which contains a backported patch to resolve this issue. Refer to the Solution section for installation instructions.
last seen2020-04-16
modified2013-01-24
plugin id64019
published2013-01-24
reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/64019
titleRHEL 5 / 6 : mod_cluster-native (RHSA-2012:0037)
code
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Red Hat Security Advisory RHSA-2012:0037. The text 
# itself is copyright (C) Red Hat, Inc.
#

include("compat.inc");

if (description)
{
  script_id(64019);
  script_version("1.26");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/15");

  script_cve_id("CVE-2011-4608");
  script_bugtraq_id(51554);
  script_xref(name:"RHSA", value:"2012:0037");
  script_xref(name:"IAVB", value:"2012-B-0011");

  script_name(english:"RHEL 5 / 6 : mod_cluster-native (RHSA-2012:0037)");
  script_summary(english:"Checks the rpm output for the updated package");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Red Hat host is missing a security update."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"An updated mod_cluster-native package that fixes one security issue is
now available for JBoss Enterprise Application Platform 5.1.2 for Red
Hat Enterprise Linux 4, 5, and 6.

The Red Hat Security Response Team has rated this update as having
important security impact. A Common Vulnerability Scoring System
(CVSS) base score, which gives a detailed severity rating, is
available from the CVE link in the References section.

mod_cluster-native provides a native build of mod_cluster for the
Apache HTTP Server (httpd). mod_cluster is an httpd-based load
balancer. Like mod_jk, it uses a communication channel to forward
requests from httpd to an application server node.

It was found that mod_cluster allowed worker nodes to register on any
virtual host (vhost), regardless of the security constraints applied
to other vhosts. In a typical environment, there will be one vhost
configured internally for worker nodes, and another configured
externally for serving content. A remote attacker could use this flaw
to register an attacker-controlled worker node via an external vhost
that is not configured to apply security constraints, then use that
worker node to serve malicious content, intercept credentials, and
hijack user sessions. (CVE-2011-4608)

Users of mod_cluster-native should upgrade to this updated package,
which contains a backported patch to resolve this issue. Refer to the
Solution section for installation instructions."
  );
  # http://docs.redhat.com/docs/en-US/index.html
  script_set_attribute(
    attribute:"see_also",
    value:"https://access.redhat.com/documentation/en-us/"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://access.redhat.com/errata/RHSA-2012:0037"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://access.redhat.com/security/cve/cve-2011-4608"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"Update the affected mod_cluster-native package."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:mod_cluster-native");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:5");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:6");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/01/27");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/01/18");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/01/24");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"Red Hat Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");

  exit(0);
}


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

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
os_ver = os_ver[1];
if (! preg(pattern:"^(5|6)([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 5.x / 6.x", "Red Hat " + os_ver);

if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);

cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);

yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
if (!empty_or_null(yum_updateinfo)) 
{
  rhsa = "RHSA-2012:0037";
  yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
  if (!empty_or_null(yum_report))
  {
    security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : yum_report 
    );
    exit(0);
  }
  else
  {
    audit_message = "affected by Red Hat security advisory " + rhsa;
    audit(AUDIT_OS_NOT, audit_message);
  }
}
else
{
  flag = 0;
  if (rpm_check(release:"RHEL5", cpu:"i386", reference:"mod_cluster-native-1.0.10-4.1.GA_CP02.ep5.el5")) flag++;
  if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"mod_cluster-native-1.0.10-4.1.GA_CP02.ep5.el5")) flag++;

  if (rpm_check(release:"RHEL6", cpu:"i386", reference:"mod_cluster-native-1.0.10-4.1.1.GA_CP02.ep5.el6")) flag++;
  if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"mod_cluster-native-1.0.10-4.1.1.GA_CP02.ep5.el6")) flag++;

  if (flag)
  {
    security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : rpm_report_get() + redhat_report_package_caveat()
    );
    exit(0);
  }
  else
  {
    tested = pkg_tests_get();
    if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
    else audit(AUDIT_PACKAGE_NOT_INSTALLED, "mod_cluster-native");
  }
}

Redhat

advisories
  • rhsa
    idRHSA-2012:0035
  • rhsa
    idRHSA-2012:0036
  • rhsa
    idRHSA-2012:0037
  • rhsa
    idRHSA-2012:0038
  • rhsa
    idRHSA-2012:0039
  • rhsa
    idRHSA-2012:0040
rpms
  • mod_cluster-demo-0:1.0.10-3.1.GA_CP02.ep5.el5
  • mod_cluster-demo-0:1.0.10-3.2.GA_CP02.ep5.el6
  • mod_cluster-demo-0:1.0.10-3.GA_CP02.ep5.el4
  • mod_cluster-jbossas-0:1.0.10-3.1.GA_CP02.ep5.el5
  • mod_cluster-jbossas-0:1.0.10-3.2.GA_CP02.ep5.el6
  • mod_cluster-jbossas-0:1.0.10-3.GA_CP02.ep5.el4
  • mod_cluster-jbossweb2-0:1.0.10-3.1.GA_CP02.ep5.el5
  • mod_cluster-jbossweb2-0:1.0.10-3.2.GA_CP02.ep5.el6
  • mod_cluster-jbossweb2-0:1.0.10-3.GA_CP02.ep5.el4
  • mod_cluster-native-0:1.0.10-4.1.1.GA_CP02.ep5.el6
  • mod_cluster-native-0:1.0.10-4.1.GA_CP02.ep5.el5
  • mod_cluster-native-0:1.0.10-4.GA_CP02.ep5.el4
  • mod_cluster-native-debuginfo-0:1.0.10-4.1.1.GA_CP02.ep5.el6
  • mod_cluster-native-debuginfo-0:1.0.10-4.1.GA_CP02.ep5.el5
  • mod_cluster-native-debuginfo-0:1.0.10-4.GA_CP02.ep5.el4
  • mod_cluster-tomcat6-0:1.0.10-3.1.GA_CP02.ep5.el5
  • mod_cluster-tomcat6-0:1.0.10-3.2.GA_CP02.ep5.el6
  • mod_cluster-tomcat6-0:1.0.10-3.GA_CP02.ep5.el4
  • mod_cluster-native-0:1.0.10-4.1.1.GA_CP02.ep5.el6
  • mod_cluster-native-0:1.0.10-4.1.GA_CP02.ep5.el5
  • mod_cluster-native-0:1.0.10-4.GA_CP02.ep5.el4
  • mod_cluster-native-debuginfo-0:1.0.10-4.1.1.GA_CP02.ep5.el6
  • mod_cluster-native-debuginfo-0:1.0.10-4.1.GA_CP02.ep5.el5
  • mod_cluster-native-debuginfo-0:1.0.10-4.GA_CP02.ep5.el4
  • mod_cluster-native-0:1.0.10-4.1.1.GA_CP02.ep5.el6
  • mod_cluster-native-0:1.0.10-4.1.GA_CP02.ep5.el5
  • mod_cluster-native-0:1.0.10-4.GA_CP02.ep5.el4
  • mod_cluster-native-debuginfo-0:1.0.10-4.1.1.GA_CP02.ep5.el6
  • mod_cluster-native-debuginfo-0:1.0.10-4.1.GA_CP02.ep5.el5
  • mod_cluster-native-debuginfo-0:1.0.10-4.GA_CP02.ep5.el4

Seebug

bulletinFamilyexploit
descriptionBugtraq ID: 51554 CVE ID:CVE-2011-4608 JBOSS是一个基于J2EE的开放源代码的应用服务器。 mod_cluster允许worker节点在任意虚拟主机(vhost)上注册,而无视应用在其他虚拟主机上的安全性限制。在某些环境下,一个vhost配置为内部worker节点,而另一个配置为服务外部内容。远程攻击者可以利用此缺陷通过没有配置应用安全限制的外部虚拟主机注册为攻击者控制的worker节点,然后使用worker节点服务恶意内容,截获验证凭据,劫持用户会话。 0 Red Hat JBoss Enterprise Web Server for RHEL 6 1.0.2 Red Hat JBoss Enterprise Web Server for RHEL 6 1.0 Red Hat JBoss Enterprise Web Server for RHEL 5 Server 1.0.2 Red Hat JBoss Enterprise Web Server for RHEL 5 Server 1.0 Red Hat JBoss Enterprise Web Server for RHEL 4 ES 1.0.2 Red Hat JBoss Enterprise Web Server for RHEL 4 ES 1.0 Red Hat JBoss Enterprise Web Server for RHEL 4 AS 1.0.2 Red Hat JBoss Enterprise Web Server for RHEL 4 AS 1.0 Red Hat JBoss Enterprise Web Platform for RHEL 6 Server 5 Red Hat JBoss Enterprise Web Platform for RHEL 5 Server 5 Red Hat JBoss Enterprise Web Platform for RHEL 4ES 5 Red Hat JBoss Enterprise Web Platform for RHEL 4AS 5 厂商解决方案 用户可参考如下供应商提供的安全公告获得补丁信息: https://rhn.redhat.com/errata/RHSA-2012-0040.html https://rhn.redhat.com/errata/RHSA-2012-0035.html https://rhn.redhat.com/errata/RHSA-2012-0036.html https://rhn.redhat.com/errata/RHSA-2012-0037.html https://rhn.redhat.com/errata/RHSA-2012-0038.html https://rhn.redhat.com/errata/RHSA-2012-0039.html
idSSV:30038
last seen2017-11-19
modified2012-01-19
published2012-01-19
reporterRoot
titleJBoss 'mod_cluster'安全绕过漏洞