cbcvebase.
CVE-2021-21234
published 2021-01-05

CVE-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
VendorProductVersion rangeFixed in
lukashinschspring-boot-actuator-logview< 0.2.130.2.13
spring-boot-actuator-logview_projectspring-boot-actuator-logview<= 0.2.12

Detection & IOCsextracted from sources · hover to see the quote

url/manage/log/view?filename=/windows/win.ini&base=../../../../../../../../../../
url/log/view?filename=/windows/win.ini&base=../../../../../../../../../../
url/manage/log/view?filename=/etc/passwd&base=../../../../../../../../../../
url/log/view?filename=/etc/passwd&base=../../../../../../../../../../
path/manage/log/view
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.