Lucene search

K
githubGitHub Advisory DatabaseGHSA-2Q4P-F6GF-MQR5
HistoryJul 06, 2023 - 8:53 p.m.

Graylog server has partial path traversal vulnerability in Support Bundle feature

2023-07-0620:53:15
CWE-22
GitHub Advisory Database
github.com
2404
graylog
vulnerability
support bundle
http api
data directory
file deletion
admin role
docker
patch
reverse proxy

3.8 Low

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

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

0.001 Low

EPSS

Percentile

36.4%

A partial path traversal vulnerability exists in Graylog’s Support Bundle feature. The vulnerability is caused by incorrect user input validation in an HTTP API resource.

Thanks to weiweiwei9811 for reporting this vulnerability and providing detailed information.

Impact

Graylog’s Support Bundle feature allows an attacker with valid Admin role credentials to download or delete files in sibling directories of the support bundle directory.

The default data_dir in operating system packages (DEB, RPM) is set to /var/lib/graylog-server. The data directory for the Support Bundle feature is always <data_dir>/support-bundle.

Due to the partial path traversal vulnerability, an attacker with valid Admin role credentials can read or delete files in directories that start with a /var/lib/graylog-server/support-bundle directory name.

The vulnerability would allow the download or deletion of files in the following example directories.

  • /var/lib/graylog-server/support-bundle-test
  • /var/lib/graylog-server/support-bundlesdirectory

For the Graylog and Graylog Enterprise Docker images, the data_dir is set to /usr/share/graylog/data by default.

Patches

The vulnerability is fixed in Graylog version 5.1.3 and later.

Workarounds

Block all HTTP requests to the following HTTP API endpoints by using a reverse proxy server in front of Graylog.

  • GET /api/system/debug/support/bundle/download/{filename}
  • DELETE /api/system/debug/support/bundle/{filename}

Affected configurations

Vulners
Node
org.graylog2\graylog2Matchserver
CPENameOperatorVersion
org.graylog2:graylog2-serverlt5.1.3

3.8 Low

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

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

0.001 Low

EPSS

Percentile

36.4%

Related for GHSA-2Q4P-F6GF-MQR5