GitHub - Hackmanit/template-injection-playground: The Template Injection Playground allows to test a large number of the most relevant template engines for template injection possibilities. (original) (raw)

License

Template Injection Playground

With the Template Injection Playground a large number of the most relevant template engines (as of September 2023) can be tested for template injection possibilities. For this purpose, simple web pages are provided, each of which uses one of the template engines. Furthermore, various optional security measures such as sandboxes, encodings, and denylists can be activated.

The Template Injection Playground was developed by Hackmanit and Maximilian Hildebrand.

Features

Implemented Template Engines

.NET

Elixir

Go

Java

JavaScript

PHP

Python

Ruby

Prerequisites

Usage

  1. Build the servers (only needed at first launch or when changes have been made): docker compose build
  2. Start the servers and the playground: docker compose up
  3. Access the playground at http://127.0.0.1:13370 and start playing around.

Troubleshooting

Background Information

A blog post providing more information about template injection and TInjA – the Template INJection Analyzer can be found here:

Template Injection Vulnerabilities – Understand, Detect, Identify

The Template Injection Playground was developed as a part of a master's thesis by Maximilian Hildebrand. You can find results of the master's thesis publicly available here:

License

The Template Injection Playground was developed by Hackmanit and Maximilian Hildebrand as a part of his master's thesis. The Template Injection Playground is licensed under the Apache License, Version 2.0.