Access Restriction Bypass Affecting org.apache.karaf.management:org.apache.karaf.management.server package, versions [,4.2.8)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.51% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEKARAFMANAGEMENT-572298
  • published14 Jun 2020
  • disclosed14 Jun 2020
  • creditColm O hEigeartaigh

Introduced: 14 Jun 2020

CVE-2020-11980  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade org.apache.karaf.management:org.apache.karaf.management.server to version 4.2.8 or higher.

Overview

org.apache.karaf.management:org.apache.karaf.management.server is a package that bundles starts the Karaf embedded MBean server and RMI registry allowing users to use JMX to manage Karaf.

Affected versions of this package are vulnerable to Access Restriction Bypass. In Karaf, JMX authentication takes place using JAAS and authorization takes place using ACL files. By default, only an "admin" can actually invoke on an MBean. However there is a vulnerability there for someone who is not an admin, but has a "viewer" role. In the 'etc/jmx.acl.cfg', such as role can call get*. It's possible to authenticate as a viewer role + invokes on the MLet getMBeansFromURL method, which goes off to a remote server to fetch the desired MBean, which is then registered in Karaf. At this point the attack fails as "viewer" doesn't have the permission to invoke on the MBean. Still, it could act as a SSRF style attack and also it essentially allows a "viewer" role to pollute the MBean registry, which is a kind of privilege escalation.

CVSS Base Scores

version 3.1