Lucene search

K
githubGitHub Advisory DatabaseGHSA-9JG9-6WM2-X7P5
HistoryFeb 10, 2022 - 11:04 p.m.

Server-Side Request Forgery in Karaf

2022-02-1023:04:32
CWE-918
GitHub Advisory Database
github.com
15

6.3 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

6.5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.001 Low

EPSS

Percentile

29.7%

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. The vulnerability is low as it’s possible to add a ACL to limit access. Users should update to Apache Karaf 4.2.9 or newer.

6.3 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

6.5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.001 Low

EPSS

Percentile

29.7%

Related for GHSA-9JG9-6WM2-X7P5