Potential XXE Exploitation Attempt In JVM Based Application

 Original Source: [Sigma source]
Title: Potential XXE Exploitation Attempt In JVM Based Application
Status: test
Description:Detects XML parsing issues, if the application expects to work with XML make sure that the parser is initialized safely.
References:
  -https://rules.sonarsource.com/java/RSPEC-2755
  -https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing
  -https://www.wix.engineering/post/threat-and-vulnerability-hunting-with-application-server-error-logs
Author: Moti Harmats
Date: 2023-02-11
modified:None
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:
    - 'SAXParseException'
    - 'DOMException'
  condition:keywords
Falsepositives:
  -If the application expects to work with XML there may be parsing issues that don't necessarily mean XXE.
Level: high