Skip to content

This repository contains a colorful, interactive Flask-based web application that simulates an Event Creation platform. It includes a toggle switch to enable or disable Server-Side Template Injection (SSTI) vulnerability. Ideal for security researchers, ethical hackers, students for Study.

Notifications You must be signed in to change notification settings

HackersParadisee/SSTI_Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” SSTI Vulnerability Demo – Flask Web App

This project demonstrates Server-Side Template Injection (SSTI) using a Flask-based event creation web application. The app includes a toggle switch to enable or disable SSTI, allowing developers, students, and security enthusiasts to study how SSTI vulnerabilities work β€” and how to defend against them.


πŸ“š What is SSTI?

Server-Side Template Injection (SSTI) occurs when user input is insecurely embedded in a server-side template, allowing attackers to inject malicious expressions or code.

Popular server-side templating engines (like Jinja2 in Python, Twig in PHP, and Velocity in Java) evaluate expressions in templates. If user input is directly rendered without sanitization, it can lead to code execution, data exposure, or server takeover.


🧠 What Are Templates?

Templates are pre-designed HTML files embedded with dynamic placeholders (e.g., {{ variable }}, {% if %}, etc.) that get rendered on the server before being sent to the browser. Frameworks like Flask use Jinja2, a Python-based templating engine.

Example (Jinja2 Template):

Hello {{ username }}!

If the input username = "Yash" β†’ the browser receives:

Hello Yash!

If an attacker inputs {{7*7}} and it gets rendered as code, the result will be 49.


image

πŸ§‘β€πŸ’» Author Created by Yash Pawar Project for educational and ethical hacking purposes only.


About

This repository contains a colorful, interactive Flask-based web application that simulates an Event Creation platform. It includes a toggle switch to enable or disable Server-Side Template Injection (SSTI) vulnerability. Ideal for security researchers, ethical hackers, students for Study.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published