Potential Server Side Template Injection In Velocity

 Original Source: [Sigma source]
Title: Potential Server Side Template Injection In Velocity
Status: test
Description:Detects exceptions in velocity template renderer, this most likely happens due to dynamic rendering of user input and may lead to RCE.
References:
  -https://antgarsil.github.io/posts/velocity/
  -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: velocity
  • definition: Requirements: application error logs must be collected (with LOG_LEVEL=ERROR and above)
Detection:
  keywords:
    - 'ParseErrorException'
    - 'VelocityException'
    - 'TemplateInitException'
  condition:keywords
Falsepositives:
  -Application bugs
  -Missing .vm files
Level: high