Skip to content

Conversation

@dkegel-fastly
Copy link
Contributor

@dkegel-fastly dkegel-fastly commented Jan 1, 2026

Makes template-injection-playground/java vulnerable to more SSTI attacks.

Written using aider (an AI coding tool) as follows:

  1. told aider to create a commandline-only demo of Velocity that took a template on stdin and wrote its expansion to stdout
  2. iterated until that could handle $date and $class
  3. backported the interesting bits to template-injection-playground

Addresses #4

Given that I'm not a Java developer anymore, this deserves a bit more review than a non-vibe-coded change, but it does look nicely minimal.

Makes template-injection-playground/java more vulnerable to more SSTI attacks.

Written using aider (an AI coding tool) as follows:
1. told aider to create a commandline-only demo of Velocity that took a template on stdin and wrote its expansion to stdout
2. iterated until that could handle $date and $class
3. backported the interesting bits to template-injection-playground

Addresses Hackmanit#4

Given that I'm not a Java developer anymore, this deserves a bit more
review than a non-vibe-coded change, but it does look nicely minimal.
@dkegel-fastly dkegel-fastly changed the title java: add class and date tools to enable juicy vulnerabilities [issue 4] java: add class and date tools to enable juicy Velocity vulnerabilities [issue 4] Jan 1, 2026
@m10x m10x merged commit ec4d71d into Hackmanit:main Jan 3, 2026
@m10x
Copy link
Collaborator

m10x commented Jan 3, 2026

Another great PR, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants