Improper Access Control Affecting org.graylog2:graylog2-server package, versions [2.0.0,5.1.11)[5.2.0-alpha.1,5.2.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.09% (39th 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 Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGGRAYLOG2-6231775
  • published8 Feb 2024
  • disclosed7 Feb 2024
  • creditFabian Yamaguchi

Introduced: 7 Feb 2024

CVE-2024-24824  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade org.graylog2:graylog2-server to version 5.1.11, 5.2.4 or higher.

Overview

org.graylog2:graylog2-server is a log management platform.

Affected versions of this package are vulnerable to Improper Access Control via the /api/system/cluster_config/ endpoint. An attacker can execute arbitrary code that is run during class instantiation by sending a specially crafted HTTP PUT request.

Note:

This is only exploitable if the attacker possesses the clusterconfigentry:create and clusterconfigentry:edit permissions, which are typically only granted to Admin users.

PoC

curl -u admin:<admin-password> -X PUT http://localhost:9000/api/system/cluster_config/java.io.File \
    -H "Content-Type: application/json" \
    -H "X-Requested-By: poc" \
    -d '"/etc/passwd"'

CVSS Scores

version 3.1