Potential Local File Read Vulnerability In JVM Based Application
Detects potential local file read vulnerability in JVM based apps. If the exceptions are caused due to user input and contain path traversal payloads then it's a red flag.
Detection logic
keywords_local_file_read
"|all":
- FileNotFoundException
- /../../..Condition
keywords_local_file_readRaw YAML
title: Potential Local File Read Vulnerability In JVM Based Application
id: e032f5bc-4563-4096-ae3b-064bab588685
status: test
description: |
Detects potential local file read vulnerability in JVM based apps.
If the exceptions are caused due to user input and contain path traversal payloads then it's a red flag.
references:
- https://www.wix.engineering/post/threat-and-vulnerability-hunting-with-application-server-error-logs
author: Moti Harmats
date: 2023-02-11
tags:
- attack.initial-access
- attack.t1190
logsource:
category: application
product: jvm
definition: 'Requirements: application error logs must be collected (with LOG_LEVEL=ERROR and above)'
detection:
keywords_local_file_read:
'|all':
- 'FileNotFoundException'
- '/../../..'
condition: keywords_local_file_read
falsepositives:
- Application bugs
level: highFalse positives
- Application bugs
References
Similar rules
Potential JNDI Injection Exploitation In JVM Based Application
highjvm · Shares T1190
Potential OGNL Injection Exploitation In JVM Based Application
highjvm · Shares T1190
Potential XXE Exploitation Attempt In JVM Based Application
highjvm · Shares T1190
Process Execution Error In JVM Based Application
highjvm · Shares T1190