CVE-2021-21234
published 2021-01-05CVE-2021-21234: spring-boot-actuator-logview in a library that adds a simple logfile viewer as spring boot actuator endpoint. It is maven package…
PriorityP178high7.7CVSS 3.1
AVNACLPRLUINSCCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
21.17%
97.3th percentile
spring-boot-actuator-logview in a library that adds a simple logfile viewer as spring boot actuator endpoint. It is maven package "eu.hinsch:spring-boot-actuator-logview". In spring-boot-actuator-logview before version 0.2.13 there is a directory traversal vulnerability. The nature of this library is to expose a log file directory via admin (spring boot actuator) HTTP endpoints. Both the filename to view and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was checked to prevent directory traversal exploits (so that `filename=../somefile` would not work), the base folder parameter was not sufficiently checked, so that `filename=somefile&base=../` could access a file outside the logging base directory). The vulnerability has been patched in release 0.2.13. Any users of 0.2.12 should be able to update without any issues as there are no other changes in that release. There is no workaround to fix the vulnerability other than updating or removing the dependency. However, removing read access of the user the application is run with to any directory not required for running the application can limit the impact. Additionally, access to the logview endpoint can be limited by deploying the application behind a reverse proxy.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| lukashinsch | spring-boot-actuator-logview | < 0.2.13 | 0.2.13 |
| spring-boot-actuator-logview_project | spring-boot-actuator-logview | <= 0.2.12 | — |
Detection & IOCsextracted from sources · hover to see the quote
sigma
HTTP GET requests to /manage/log/view or /log/view with 'base' parameter containing '../' sequences and status_code 200 with text/plain content-type
- →Exploit requests target the 'base' parameter (not 'filename') with directory traversal sequences (e.g., '../../../../../../../../../../') on the Spring Boot Actuator logview endpoints /manage/log/view or /log/view. ↗
- →Successful exploitation returns HTTP 200 with Content-Type 'text/plain' and file contents such as /etc/passwd (matching regex 'root:.*:0:0:') or Windows win.ini (containing 'bit app support', 'fonts', 'extensions').
- →Monitor HTTP GET requests to actuator logview endpoints where the 'base' query parameter contains sequences of '../' (path traversal), especially combined with absolute filenames like '/etc/passwd' or '/windows/win.ini'. ↗
- →The vulnerable maven package is 'eu.hinsch:spring-boot-actuator-logview' versions before 0.2.13. Identify deployments exposing /log/view or /manage/log/view actuator endpoints. ↗
- ·The logview endpoint may be mounted under a custom actuator base path (e.g., /manage/log/view vs /log/view). Both paths should be monitored as the Nuclei template probes both variants.
- ·Access to the logview endpoint can be restricted by deploying behind a reverse proxy, which may suppress or alter the HTTP response indicators used for detection. ↗
- ·The 'filename' parameter alone is insufficient for exploitation (it was patched earlier); the attack vector specifically requires the 'base' parameter to carry the traversal payload. ↗
CVSS provenance
nvdv3.17.7HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:P/I:N/A:N
vulncheck7.7HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Directory Traversal in spring-boot-actuator-logview
ghsa·2021-01-05
CVE-2021-21234 [HIGH] CWE-22 Directory Traversal in spring-boot-actuator-logview
Directory Traversal in spring-boot-actuator-logview
### Impact
The nature of this library is to expose a log file directory via admin (spring boot actuator) HTTP endpoints. Both the filename to view and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was checked to prevent directory traversal exploits (so that `filename=../somefile` would not work), the base folder parameter was not sufficiently checked, so that `filename=somefile&base=../` could access a file outside the logging base directory).
### Patches
The vulnerability has been patched in release 0.2.13. Any users of 0.2.12 should be able to update without any issues as there are no other changes in that release.
### Workarounds
There is no workaround to fi
OSV
Directory Traversal in spring-boot-actuator-logview
osv·2021-01-05
CVE-2021-21234 [HIGH] Directory Traversal in spring-boot-actuator-logview
Directory Traversal in spring-boot-actuator-logview
### Impact
The nature of this library is to expose a log file directory via admin (spring boot actuator) HTTP endpoints. Both the filename to view and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was checked to prevent directory traversal exploits (so that `filename=../somefile` would not work), the base folder parameter was not sufficiently checked, so that `filename=somefile&base=../` could access a file outside the logging base directory).
### Patches
The vulnerability has been patched in release 0.2.13. Any users of 0.2.12 should be able to update without any issues as there are no other changes in that release.
### Workarounds
There is no workaround to fi
VulnCheck
spring-boot-actuator-logview_project spring-boot-actuator-logview Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
vulncheck·2021·CVSS 7.7
CVE-2021-21234 [HIGH] spring-boot-actuator-logview_project spring-boot-actuator-logview Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
spring-boot-actuator-logview_project spring-boot-actuator-logview Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
spring-boot-actuator-logview in a library that adds a simple logfile viewer as spring boot actuator endpoint. It is maven package "eu.hinsch:spring-boot-actuator-logview". In spring-boot-actuator-logview before version 0.2.13 there is a directory traversal vulnerability. The nature of this library is to expose a log file directory via admin (spring boot actuator) HTTP endpoints. Both the filename to view and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was checked to prevent directory traversal exploits (so that `filename=../somefile` would not work), the base folder par
No detection rules found.
Nuclei
Spring Boot Actuator Logview Directory Traversal
nuclei·CVSS 7.7
CVE-2021-21234 [HIGH] Spring Boot Actuator Logview Directory Traversal
Spring Boot Actuator Logview Directory Traversal
spring-boot-actuator-logview before version 0.2.13 contains a directory traversal vulnerability in libraries that adds a simple logfile viewer as a spring boot actuator endpoint (maven package "eu.hinsch:spring-boot-actuator-logview".
Template:
id: CVE-2021-21234
info:
name: Spring Boot Actuator Logview Directory Traversal
author: gy741,pikpikcu
severity: high
description: |
spring-boot-actuator-logview before version 0.2.13 contains a directory traversal vulnerability in libraries that adds a simple logfile viewer as a spring boot actuator endpoint (maven package "eu.hinsch:spring-boot-actuator-logview".
impact: |
This vulnerability can lead to unauthorized access to sensitive information stored on the server.
remediation: |
Apply the l
https://github.com/lukashinsch/spring-boot-actuator-logview/commit/1c76e1ec3588c9f39e1a94bf27b5ff56eb8b17d6https://github.com/lukashinsch/spring-boot-actuator-logview/commit/760acbb939a8d1f7d1a7dfcd51ca848eea04e772https://github.com/lukashinsch/spring-boot-actuator-logview/security/advisories/GHSA-p4q6-qxjx-8jgphttps://search.maven.org/artifact/eu.hinsch/spring-boot-actuator-logviewhttps://github.com/lukashinsch/spring-boot-actuator-logview/commit/1c76e1ec3588c9f39e1a94bf27b5ff56eb8b17d6https://github.com/lukashinsch/spring-boot-actuator-logview/commit/760acbb939a8d1f7d1a7dfcd51ca848eea04e772https://github.com/lukashinsch/spring-boot-actuator-logview/security/advisories/GHSA-p4q6-qxjx-8jgphttps://search.maven.org/artifact/eu.hinsch/spring-boot-actuator-logview
2021-01-05
Published
Exploited in the wild