appsec.fyi › Server-Side Template Injection (SSTI)

Server-Side Template Injection (SSTI) Resources

Page 2 of 3: resources 51–100 of 145, added Apr 2026 to Nov 2026.

The newest Server-Side Template Injection (SSTI) resources are on the Server-Side Template Injection (SSTI) page. For a reading order instead of a date order, see the Server-Side Template Injection (SSTI) learning path.

Date AddedLinkExcerpt
2026-11-02 2026Wizarr authenticated Jinja2 SSTI to RCE (CVE-2026-108264) news Python RCEA critical severity vulnerability (CVSS 9.1), CVE-2026-108264, has been identified in Wizarr. This authenticated Server-Side Template Injection (SSTI) allows for Remote Code Execution (RCE) when rendering wizard steps. The vulnerability is linked to wizarrrr/wizarr (generic). Users should check affected ranges and update to fixed versions to mitigate this risk.
2026-11-01 2026CSC 2026 Payslip Portal: Go template SSTI to file write advanced 10 min read RCECSC 2026 Payslip Portal features a vulnerability chain beginning with an unauthenticated session cookie decryption oracle, allowing an attacker to forge HR credentials and access `flag1`. This HR access enables server-side template injection via the payslip preview feature, granting the ability to write arbitrary files as the service user. The final stage leverages this file write to overwrite the `rules/current.go` file, which is executed by a Go interpreter, enabling the attacker to read `flag2` from `/etc/payslip/flag2`.
2026-11-01 2026How a Pydantic Object Defeated a Jinja2 Sandbox: SSTI to RCE advanced 9 min read Python RCEJinja2 Sandbox Escape via Pydantic `parse_raw`: This exploit leverages a server-side template injection (SSTI) vulnerability where an API endpoint renders user-supplied JSON as a Jinja2 template. Although a `SandboxedEnvironment` prevented classic injection payloads, the presence of a Pydantic model instance in the template context allowed an authenticated, low-privilege user to execute arbitrary code. The deprecated `parse_raw` method of the Pydantic model, which deserializes pickle data, was permitted by the sandbox due to its public nature and lack of "unsafe" markers, leading to remote code execution in a single request. → synack.com
2026-10-31 2026TryHackMe SSTI: SSTI to RCE beginner 5 min read RCEWalkthrough of Server-Side Template Injection (SSTI) to Remote Code Execution (RCE) challenges on TryHackMe, covering four template engines: Smarty (PHP), Pug (NodeJS), Jinja2 (Python), and Form Tools (PHP/Smarty). The guide details techniques for confirming SSTI with simple probes like `{'Hello'|upper}` or `#{7*7}`, and then exploiting vulnerabilities using engine-specific methods, such as Smarty's `system()` function, Node.js's `child_process.spawnSync`, Python's object graph traversal via `__class__.__mro__`, and Form Tools' `shell_exec` modifier. It emphasizes using stable globals over brittle indices for reliable exploitation. → classroom.anir0y.in
2026-10-31 2026H7CTF 2026 Merged: Jinja2 SSTI filter bypass intermediate PythonJinja2 Server-Side Template Injection (SSTI) filter bypass, demonstrated in H7CTF 2026, utilizes the `cycler` object to achieve Remote Code Execution (RCE). By accessing `cycler.__init__.__globals__.os.popen()`, an attacker can execute arbitrary commands. The bypass involves reconstructing blocked characters like underscores using their ASCII codes to circumvent naive safety filters and ultimately retrieve sensitive files, such as the flag.
2026-10-31 2026Server-Side Template Injection to RCE in a Lab beginner 11 min read Python RCEWalkthrough of Server-Side Template Injection leading to RCE. This guide details how unescaped user input processed by a template engine on the server can lead to vulnerabilities, differing from XSS by executing on the server. It covers detecting template injection by probing with delimiters and math expressions (e.g., `{{7*7}}`), identifying the specific engine (like Jinja2 or Freemarker), and then exploiting the object model to read sensitive configurations (like Flask's `SECRET_KEY`) and ultimately achieve command execution, utilizing tools such as `tplmap` for confirmation.
2026-10-24 2026Imperia CMS SiteActive TEMPLATE Unauthenticated SSTI Remote Code Execution (CVE-2026-110355) news 4 min read RCECVE-2026-110355 in Imperia CMS allows unauthenticated Server-Side Template Injection (SSTI) leading to remote code execution. On CGI-enabled installations running version 11.7.2 or below, a crafted request to `/cgi-bin/site_active.pl` can exploit the `TEMPLATE` parameter. The application's template parser and converter pipeline, specifically the `PHPExec` plugin, can be manipulated to execute arbitrary PHP code via a `<!--postconvert:PHPExec()-->` comment following injected PHP. The vendor released version 11.8.0 to address this vulnerability.
2026-10-21 2026CVE-2026-46633: Proving exploitability of Twig sandbox bypass intermediate 9 min read RCECVE-2026-46633 in Twig allows for sandbox bypasses and code injection across various versions, particularly impacting Twig >=3.3.8 <3.15.0. This vulnerability can be exploited using specially crafted template payloads that leverage traits and class function redefinition to achieve remote code execution, error-based, and time-based blind exploitation. Payloads have been developed for different Twig version ranges, including techniques to avoid rendering errors and utilize Base64 encoding for payloads.
2026-08-25 2026Code Execution via Text Template Files | Playbook & Detection intermediate 6 min readPlaybook detailing code execution via text template files, focusing on the abuse of `TextTransform.exe`, `TextTransformCore.exe`, `t4.exe`, and `MSBuild.exe`. This technique allows threat actors to embed C# or Visual Basic code within `.tt` files, leading to execution in trusted processes or supply chain compromises. The document examines undocumented methods of using `t4.exe` and `MSBuild.exe` for arbitrary code execution, providing detailed examples and detection strategies. → ipurple.team
2026-06-08 2026Don't Panic: The Thymeleaf Template Injection That Only Hurts If You Let It (CVE-2026-40478) intermediate 4 min readCVE-2026-40478 is a critical server-side template injection vulnerability in Thymeleaf, a Java templating engine. While the vulnerability allows for remote code execution by bypassing the sandbox with a tab character, its exploitability is conditional. It only affects applications where user-controlled input is directly passed to Thymeleaf's expression engine, indicating a misuse of the framework, rather than the standard practice of passing user input to the data model. Developers are advised to update to Thymeleaf 3.1.4 and audit their code for dynamic view or template expression generation from user input. → snyk.io
2026-04-22 2026SSTI in Bug Bounty: Playing with Handlebars and Breaking Stuff intermediate 3 min readServer-Side Template Injection (SSTI) vulnerability in a bug bounty program allowed manipulation of Handlebars template engine. By exploiting an `eval` callback parameter on a device capability search form, an attacker could inject arbitrary JavaScript, leading to direct manipulation of page content and interaction with the JavaScript engine. While full Remote Code Execution was not achieved due to sandboxing or security restrictions, the vulnerability demonstrated a significant risk of client-side code execution and DOM exploration.
2026-04-22 2026SSTI: Explanation, Discovery, Exploitation, and Prevention beginner 6 min readServer-Side Template Injection (SSTI) is a critical vulnerability allowing attackers to execute arbitrary code on servers by injecting malicious input into templates. This occurs when user data is directly incorporated into templates without proper sanitization, enabling attackers to access sensitive data, compromise systems, or even execute operating system commands, as demonstrated by exploitation examples like the PageUp data breach.
2026-04-22 2026SSTI: Breaking Out of Templates intermediate 8 min readServer-Side Template Injection (SSTI) allows attackers to execute arbitrary code on the server by injecting malicious template directives into user input processed by template engines like Jinja2, Twig, Freemarker, and ERB. This vulnerability arises when user input is directly embedded into templates, bypassing intended context and enabling RCE. Exploitation involves detecting the specific template engine through syntax variations and error messages, then leveraging engine-specific payloads to access sensitive data or execute commands. Tools like tplmap and SSTImap can automate this detection and exploitation process.
2026-04-22 2026Metasploit Module: Tactical RMM Jinja2 SSTI RCE (CVE-2025-69516) newsModule for Metasploit Framework enabling remote code execution via a Server-Side Template Injection (SSTI) vulnerability in Tactical RMM's Jinja2 templating, identified as CVE-2025-69516. This module facilitates exploitation of the vulnerability to gain control over affected systems.
2026-04-22 2026Grav CMS Twig SSTI Authenticated Sandbox Bypass RCE intermediateModule for exploiting CVE-2025-66294, a Grav CMS Twig SSTI vulnerability that bypasses sandbox restrictions for remote code execution. This exploit utilizes weak regex in `cleanDangerousTwig` to handle nested Twig calls and leverages CVE-2025-66301, a broken access control flaw, allowing authenticated users to modify YAML frontmatter for payload injection. → rapid7.com
2026-04-22 2026A Survey of the Overlooked Dangers of Template Engines (arXiv 2024) advanced 57 min readSurvey of template engines, focusing on Remote Code Execution (RCE) via Server-Side Template Injection (SSTI). This paper analyzes 34 template engines across eight languages, categorizing RCE paths and mitigation strategies. It highlights common vulnerabilities, information disclosure, unauthorized access, and DoS, emphasizing RCE as a critical threat often overlooked in current research. The work also examines real-world SSTI instances and CVEs from platforms like HackerOne. → arxiv.org
2026-04-19 2026Inj3ctlab — SSTI Bug Bounty Labs Writeup intermediate 6 min readServer-Side Template Injection (SSTI) is detailed, with a step-by-step guide to solving the Inj3ctlab laboratory from Bug Bounty Labs. This guide helps practice SSTI across multiple template engines, covering detection, escalation to Remote Code Execution (RCE), and mitigation.
2026-04-19 2026Server-Side Template Injection — Bug Bounty 2k25 beginner 7 min readServer-Side Template Injection (SSTI) is a critical web vulnerability allowing attackers to inject malicious payloads into templates, often leading to Remote Code Execution. This occurs when user input is unsafely embedded into templates, bypassing intended functionality. Detection involves fuzzing for errors and testing mathematical expressions or breaking out of template placeholders to verify exploitation. Identifying the specific template engine, such as Jinja2, Twig, or Razor, is crucial for crafting targeted payloads, with error messages from malformed input frequently revealing the engine's name and version.
2026-04-19 2026PayloadsAllTheThings — SSTI README beginner 4 min read RCELibrary detailing Server-Side Template Injection (SSTI) techniques, including detection and exploitation methods. It covers rendered, error-based, and boolean-based SSTI, as well as polyglot payloads like `${{<%[&#39;"}}%\.` and tools such as Hackmanit/TInjA and epinna/tplmap. The resource also references research on template engine identification and exploitation, like James Kettle's work and Maximilian Hildebrand's polyglot research.
2026-04-19 2026Find and Exploit Server-Side Template Injection — TCM Security beginner 4 min readServer-Side Template Injection (SSTI) attacks allow attackers to inject malicious input into web application templating engines, potentially leading to remote code execution. Exploiting SSTI involves understanding how templating engines process variables and functions, enabling attackers to execute commands, read server files, or uncover application classes. Detection requires identifying input points, fuzzing with template syntax, testing built-in functions, and observing server responses for errors or delays.
2026-04-17 2026Active Exploitation of Confluence CVE-2022-26134 (Rapid7) intermediate 9 min readCVE-2022-26134 in Atlassian Confluence is a critical unauthenticated remote code execution vulnerability, actively exploited in the wild. This OGNL injection allows attackers to place payloads in the URI of HTTP requests, enabling code execution in the context of the Confluence server. Exploitation can be detected in access logs, and vulnerable servers can be identified by forcing command output into HTTP response headers. Patches and workarounds are available, and immediate mitigation is advised for internet-facing instances. → rapid7.com
2026-04-17 2026Atlassian Confluence Widget Connector Macro SSTI (ExploitDB) intermediate 13 min readCVE-2019-3396 in Atlassian Confluence's Widget Connector macro allows for server-side template injection. This exploit can be used for path traversal to disclose files and directory listings without authentication, or for remote code execution by uploading a malicious Velocity template file. Gaining RCE requires an authenticated session and the ability to upload files, leveraging a user's personal space to store the template locally before exploitation. → exploit-db.com
2026-04-17 2026SSTItoXSS: Exploiting SSTI to bypass WAF/XSS Filter intermediateSSTItoXSS: Exploiting SSTI to bypass WAF/XSS Filter
2026-04-17 2026SSTI (The Hacker Recipes) beginner 4 min readServer-Side Template Injection (SSTI) occurs when user input is embedded into templates without proper sanitization, potentially leading to sensitive information disclosure, local file disclosure, or Remote Code Execution (RCE). Testers identify vulnerable input vectors and use payloads like `{{7*7}}` to detect template engines such as Jinja2 and Twig, which often render numerical expressions. Exploitation involves finding variables to access modules like 'os' or using default constructors, with techniques like bracket notation and hexadecimal encoding to bypass Web Application Firewalls (WAFs). Developers can mitigate SSTI by avoiding direct rendering of user input in templates and instead utilizing variable parameters.
2026-04-17 2026Exploiting CVE-2021-25770: SSTI in YouTrack (Synacktiv) intermediate 3 min readCVE-2021-25770 in JetBrains YouTrack involves a critical server-side template injection (SSTI) vulnerability, allowing remote code execution. Researchers identified the vulnerability stemmed from the use of Freemarker 2.3.23 in the notification module. Exploitation requires bypassing Freemarker's security restrictions, which can be achieved by leveraging a sandbox escape technique that utilizes the `DEFAULT_WRAPPER` field from the `freemarker.template.ObjectWrapper` class to execute arbitrary commands.
2026-04-17 2026Ruby ERB Template Injection (TrustedSec) intermediate 5 min readWalkthrough of Ruby ERB template injection detailing techniques to identify template engines, enumerate accessible classes/methods, and exploit them for actions like reading files or command execution. The analysis demonstrates how to use introspection with methods like `.methods` and `.name` to discover program internals, revealing exploitable parameters and objects. It specifically shows how to exploit a Ruby/ERB template engine, even with a safe level setting, to access sensitive data such as the server's private key via the `@ssl_context` instance variable within WEBrick.
2026-04-17 2026PayloadsAllTheThings: SSTI Ruby payloads intermediateCheatsheet detailing Server-Side Template Injection (SSTI) payloads for Ruby applications. It covers common templating engines like ERB and Slim, demonstrating techniques for remote code execution (RCE) through generic injection payloads. Examples include using `%x('id')` for RCE, `File.read("Y:/A:/"+%x('id'))` for error-based RCE, `1/(system("id")&&1||0)` for boolean-based RCE, and `system("id && sleep 5")` for time-based RCE. It also shows how to execute commands with `IO.popen` and `Open3`/`Open4`.
2026-04-17 2026Code Execution via SSTI Ruby ERB (Invicti) intermediateRuby ERB Server-Side Template Injection (SSTI) allows code execution when unintentional expressions are used in template engines instead of string literals. Attackers can exploit this by using incorrect constructions within template engine tags to execute arbitrary code or system commands, requiring knowledge of the programming language and template engine syntax. Developers should avoid directly embedding user-supplied data into templates and instead pass user-controlled parameters as template parameters. → invicti.com
2026-04-17 2026ruby-ssti: example Ruby ERB app vulnerable to SSTI beginner 3 min readLibrary demonstrating Server-Side Template Injection (SSTI) in Ruby ERB applications. This resource allows users to detect and exploit vulnerabilities where user input, not properly validated, is embedded into ERB templates, potentially leading to arbitrary code execution. It showcases how an attacker can inject malicious Ruby code to read sensitive files like `/etc/passwd` by manipulating the `name` parameter in a Sinatra application. The library also highlights the importance of sanitizing user input and understanding ERB's safe level settings to prevent such attacks.
2026-04-17 2026Setting Up a Vulnerable SSTI Lab: A Hands-On Guide beginner 2 min readGuide to setting up a vulnerable Flask SSTI lab using Jinja2, demonstrating exploitation techniques like extracting `config.items()`, achieving RCE via `os.popen` or `__class__.__mro__`, and fixing the vulnerability by using `flask.escape` or `render_template`.
2026-04-17 2026SSTI in Flask/Jinja2 (IndominusByte) intermediate 5 min readServer-Side Template Injection (SSTI) vulnerabilities in Flask/Jinja2 applications allow attackers to execute arbitrary code by injecting malicious template directives into user input. This can lead to denial-of-service attacks via `request.environ['werkzeug.server.shutdown']()` or sensitive information disclosure by accessing `config.items()` to retrieve database credentials and secret keys. More advanced exploitation involves navigating Python's inheritance hierarchy using `__mro__` and `__subclasses__` to access classes like `subprocess.Popen`, enabling full control of the web application.
2026-04-17 2026tplmap-python3: Python3 port (GitHub) intermediate 2 min readTool for exploiting Server-Side Template Injection (SSTI) and code injection vulnerabilities. It assists penetration testers by identifying and exploiting SSTI flaws across various template engines, including Jinja2, and supports sandbox escape techniques to gain OS access, execute commands, and perform file operations. The project leverages research from James Kett and others, and can handle blind injection scenarios and eval()-like code injections in Python, Ruby, PHP, and Java.
2026-04-17 2026Lab: SSTI in an unknown language with documented exploit intermediateLab: SSTI in an unknown language with documented exploit
2026-04-17 2026PayloadsAllTheThings - SSTI JavaScript engines intermediate 1 min readReference for Server-Side Template Injection (SSTI) in JavaScript engines, detailing payloads for Handlebars, EJS, PugJS, UnderscoreJS, Eta, and NunjucksJS. It includes methods for Remote Code Execution (RCE) via generic injection, error-based, boolean-based, and time-based techniques. The reference also covers Handlebars versions affected by GHSA-q42p-pg8m-cqh6 and provides examples of payload construction using Lodash.
2026-04-17 2026HackerOne Report #423541: H1514 Server Side Template Injection news 1 min readServer-side template injection discovered in Return Magic email templates for Shopify allows for code injection. Testing with `{{ this }}` and `{{ this.__proto__.constructor.name }}` indicates a Node.js backend and potential for exploiting template syntax to achieve server takeover. → hackerone.com
2026-04-17 2026A Simple Flask (Jinja2) SSTI Example (Kleiber) beginner 9 min readFlask Jinja2 Server-Side Template Injection (SSTI) allows attackers to achieve remote code execution by injecting malicious payloads into templates rendered by Flask applications. This technique exploits Jinja2's templating syntax to navigate Python's object inheritance, enabling unauthorized file reads or arbitrary code execution. The example details how to leverage `__class__`, `__base__`, and `__subclasses__` to access Python objects, inspired by the TryHackMe "Temple" room and demonstrating fundamental SSTI concepts.
2026-04-17 2026Strapi Security Disclosure: Multi-CVE SSTI chain news 8 min readStrapi security vulnerabilities CVE-2023-22621, CVE-2023-22893, and CVE-2023-22894 expose users to remote code execution and authentication bypass. CVE-2023-22621 allows for server-side template injection leading to RCE, while CVE-2023-22893 bypasses authentication for AWS Cognito logins. CVE-2023-22894 enables the leakage of sensitive user information through filtering on private fields. Immediate updates to patched Strapi versions are recommended.
2026-04-17 2026Bug Bytes #124: SSTI to RCE in Go apps (Intigriti) intermediate 5 min readArticle detailing Server-Side Template Injection (SSTI) to Remote Code Execution (RCE) in Go applications, building upon existing XSS research by demonstrating how template injection can lead to file reads or RCE through imported modules. This research addresses a gap in publicly available SSTI techniques for Go.
2026-04-17 2026Top 25 RCE Bug Bounty Reports (Cristian Cornea) intermediate 4 min readReports detailing 25 high-impact Remote Code Execution (RCE) vulnerabilities discovered during bug bounty programs, including instances in Twitter, Valve's Steam Client and CS:GO, Shopify, GitLab, SEMrush, LocalTapiola, Ubiquiti Inc., Adobe Flash Player, Imgur, Starbucks, Mail.ru, The Internet Bug Bounty Program, MyBB, Lob, Ruby on Rails, RubyGems, and Automattic's WordPress. The reports cover diverse RCE techniques like buffer overflows, struct type confusion, command injection, deserialization issues, and file upload vulnerabilities, differentiating between blind and generic RCE, and direct versus indirect execution methods. → corneacristian.medium.com
2026-04-17 2026What is Server-Side Template Injection? (Indusface) beginner 4 min readServer-Side Template Injection (SSTI) occurs when unvalidated user input is processed by a template engine like Jinja2, Freemarker, or Twig, potentially leading to remote code execution, data exfiltration, or server compromise. Exploitation involves identifying vulnerable input points, crafting malicious payloads to execute unintended code, and achieving goals like data theft. Prevention strategies include input validation, sandboxing, avoiding dynamic template rendering, and employing Web Application Firewalls (WAFs).
2026-04-17 2026Mastering SSTI Exploitation: Executing Commands in Popular Templating Engines intermediate 2 min readServer-Side Template Injection (SSTI) vulnerabilities allow attackers to execute commands by abusing how templating engines render dynamic content. This technique is particularly effective against Jinja2 (Python) using payloads that access `os.popen` via internal objects, Twig (PHP) by hijacking undefined filters with `registerUndefinedFilterCallback` and `getFilter`, Smarty (PHP) through insecure `{php}` blocks, and Velocity (Java) and Freemarker (Java) by leveraging Java reflection and class instantiation to call `exec` or `Execute` respectively.
2026-04-17 2026SSTI: Advanced Exploitation Techniques (BootstrapSecurity) advanced 4 min readServer-Side Template Injection (SSTI) vulnerabilities allow attackers to execute arbitrary code on the server, potentially leading to full system compromise. Advanced exploitation techniques for SSTI in frameworks like Jinja2, Twig, and Velocity are detailed, covering remote code execution, file access, and privilege escalation. Identifying SSTI involves checking for template engines in HTTP headers, URLs, or source code, and then injecting template syntax to observe server responses. Practical examples demonstrate payload injection for command execution and sensitive file retrieval, offering valuable insights for ethical hackers and bug bounty hunters.
2026-04-17 2026Jinja2 template injection filter bypasses (0day.work) intermediate 5 min readJinja2 template injection filter bypasses demonstrate techniques for circumventing common blacklists, such as those blocking "__" or bracket characters. These methods effectively allow remote code execution by smuggling malicious payloads past restrictive filters, utilizing string manipulation and Jinja2 functions like `|attr()`, `|join()`, and `|format()`, alongside accessing request parameters through dictionaries like `request.args` or `request.values`.
2026-04-17 2026Jinja2/Flask SSTI Filter bypass (MRLSECURITY) intermediate 1 min readJinja2/Flask SSTI filter bypass techniques exploit accessible symbols like `%`, `{`, `}`, and `()` when common injection characters are banned. This method involves initializing template variables and delivering payload parts through various request components, such as GET parameters or HTTP headers, to circumvent specific filters. The process often requires accessing the request object and checking for the `attr()` method to craft payloads like `dict.__base__` to reach the class object, enabling a complete SSTI exploit.
2026-04-17 2026SSTI - Server-side template injection with a custom exploit (Scott Murray) intermediate 9 min readServer-side template injection (SSTI) with a custom exploit involves analyzing a target application to identify template engine vulnerabilities, such as Twig in PHP. This process typically includes reconnaissance to uncover the templating language and potential injection points, exploiting Local File Inclusion (LFI) to gain verbose error messages, and crafting specific payloads to manipulate user objects and execute functions like `setAvatar`. By leveraging these techniques, attackers can read arbitrary files, like `/etc/passwd`, and potentially achieve further code execution or file manipulation to reach exploit goals, such as deleting sensitive files.
2026-04-17 2026picoCTF 2025: SSTI2 Exploitation Writeup intermediate 1 min readPicoCTF 2025's SSTI2 challenge involved exploiting a Server-Side Template Injection vulnerability in Jinja2. Initial attempts at direct payload execution were blocked by filters, requiring a breakthrough using hex-encoded underscores (`\x5f`) to bypass double underscore (`__`) restrictions. This allowed for reconstruction of `__globals__` and subsequent access to `__builtins__.__import__('os')`. The successful payload then utilized `os.popen('id')` for command execution, leading to file enumeration and retrieval of the challenge flag by executing `cat flag`.
2026-04-17 2026picoCTF 2025: SSTI Challenge Writeup intermediate 1 min readServer-Side Template Injection (SSTI) in a picoCTF 2025 challenge was exploited by submitting mathematical expressions within `{{ }}` tags, confirming Jinja2 rendering. The vulnerability was further leveraged by accessing Python objects like `cycler.__init__.__globals__.os` to execute arbitrary system commands, such as `ls` and `cat flag`, ultimately retrieving the challenge flag.
2026-04-16 2026SSTI: RCE for the Modern Web App - Black Hat 2015 advancedSSTI: RCE for the Modern Web App - Black Hat 2015
2026-04-16 2026Server Side Template Injection - Payloads All The Things beginner 4 min readReference list detailing Server Side Template Injection (SSTI) techniques, including Rendered, Error-Based, Boolean-Based, and Time-Based exploitation methods. It highlights tools such as Hackmanit/TInjA, epinna/tplmap, and SSTImap for detection and exploitation, and references research papers on polyglot-based scanning and new code injection techniques, such as those by James Kettle and Maximilian Hildebrand.
2026-04-16 2026Practical Exploitation of SSTI in Flask with Jinja2 intermediate 3 min readLab application demonstrating Server-Side Template Injection (SSTI) in Flask with Jinja2, allowing safe local exploration of exploitation from discovery to Remote Code Execution (RCE) and Cross-Site Scripting (XSS). It showcases payloads for reading files, executing commands, and achieving RCE via reverse shell, alongside HTML injection examples. The resource also provides prevention strategies including preferring `render_template()` over `render_template_string()`, input validation, leveraging Jinja2's auto-escaping, and using a restricted sandbox environment.