{"id":7834,"date":"2023-08-18T15:06:44","date_gmt":"2023-08-18T13:06:44","guid":{"rendered":"https:\/\/www.iprog.it\/blog\/?p=7834"},"modified":"2023-08-18T15:06:48","modified_gmt":"2023-08-18T13:06:48","slug":"understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security","status":"publish","type":"post","link":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/","title":{"rendered":"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg\" rel=\"lightbox[7834]\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa-940x529.jpg\" alt=\"\" class=\"wp-image-7835\" style=\"width:469px;height:264px\" width=\"469\" height=\"264\" srcset=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa-940x529.jpg 940w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa-620x349.jpg 620w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa-300x169.jpg 300w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa-768x432.jpg 768w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa-624x351.jpg 624w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg 1280w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the realm of web application security, Server-Side Template Injection (SSTI) stands as a formidable threat that can expose vulnerabilities in even the most well-constructed applications. This blog post delves into the mechanics of SSTI, its potential risks, and how developers can safeguard their applications against this security menace.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Server-Side Template Injection (SSTI)?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Server-Side Template Injection occurs when an attacker manages to inject malicious code into a server-side template that is used to dynamically generate content for web pages. Template engines, like Jinja2, play a pivotal role in web applications by rendering dynamic content, but if not used carefully, they can become a vector for attacks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mechanism of SSTI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The mechanism behind SSTI is deceptively simple yet dangerous. By improperly validating or sanitizing user input, attackers can insert their own template expressions, leading to code execution on the server. This allows them to manipulate data, access sensitive information, or even execute arbitrary system commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Consequences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The potential consequences of SSTI attacks are alarming. Attackers can exploit SSTI to gain unauthorized access, exfiltrate confidential data, and potentially compromise the entire server infrastructure. The risks extend beyond data breaches; an unmitigated SSTI vulnerability can tarnish an organization&#8217;s reputation and lead to financial losses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The provided code simulates a situation where a web application is susceptible to Server-Side Template Injection (SSTI) vulnerabilities.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from flask import Flask, render_template_string, request\n\napp = Flask(__name__)\n\n@app.route('\/')\ndef index():\n    user_input = request.args.get('name')\n    template = f'Hello, {user_input}!'\n    return render_template_string(template)\n\nif __name__ == '__main__':\n    app.run()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, the application takes user input from the URL query parameter name and directly injects it into the template without any validation or sanitation. This can potentially lead to an SSTI vulnerability.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.38.47.png\" rel=\"lightbox[7834]\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"107\" src=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.38.47.png\" alt=\"\" class=\"wp-image-7836\" srcset=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.38.47.png 390w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.38.47-300x82.png 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exploit<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If an attacker sends a request like http:\/\/localhost:5000\/?name={{7<em>*7}}, the template engine would evaluate the expression {{7*<\/em>7}} and render the output Hello, 49!. While this might seem harmless, more malicious payloads could be injected to execute arbitrary code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.41.27.png\" rel=\"lightbox[7834]\"><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"109\" src=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.41.27.png\" alt=\"\" class=\"wp-image-7837\" srcset=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.41.27.png 369w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-13.41.27-300x89.png 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Obtain a shell<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Jinja2 templates do not allow direct access to the Python import statement. This means you cannot use it to import external Python modules or libraries into your templates. Attempting to use an import statement within a Jinja2 template will typically result in an error or simply not produce the desired effect. How can we circumvent this limitation? One approach could involve leveraging the import statement from a class utilizing Jinja&#8217;s url_for. This class might have incorporated the os library through its own imports. This method allows us to achieve code execution within the target system.<br>http:\/\/127.0.0.1:5000\/?name={{url_for.<strong>globals<\/strong>.os.popen(%22ls%22).read()}}<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.01.29.png\" rel=\"lightbox[7834]\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"109\" src=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.01.29.png\" alt=\"\" class=\"wp-image-7838\" srcset=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.01.29.png 637w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.01.29-620x106.png 620w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.01.29-300x51.png 300w, https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.01.29-624x107.png 624w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">An alternative is to use <a href=\"https:\/\/github.com\/epinna\/tplmap\">tplmap<\/a> .<br>Tplmap assists the exploitation of Code Injection and Server-Side Template Injection vulnerabilities with a number of sandbox escape techniques to get access to the underlying operating system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">python2 tplmap.py -u &#8220;http:\/\/127.0.0.1:5000?name=diego*&#8221; &#8211;os-shell<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.03.54.png\" rel=\"lightbox[7834]\"><img loading=\"lazy\" decoding=\"async\" width=\"238\" height=\"95\" src=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-18-at-14.03.54.png\" alt=\"\" class=\"wp-image-7839\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preventing SSTI Attacks<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Input Validation and Sanitization<br>The cornerstone of preventing SSTI attacks is robust input validation and sanitization. All user inputs should be thoroughly validated before being incorporated into templates. Sanitization processes should remove or escape any characters that could trigger template execution.<\/li>\n\n\n\n<li>Contextual Escaping<br>Contextual escaping is another critical defense mechanism. It involves escaping user inputs based on their context within the template. This ensures that user-provided data is treated as data, not code.<\/li>\n\n\n\n<li>Whitelisting<br>Limiting the set of allowed template expressions through whitelisting can significantly mitigate the risks of SSTI. By only permitting a predefined list of safe expressions, developers can prevent attackers from injecting arbitrary code.<\/li>\n\n\n\n<li>Security Libraries and Frameworks<br>Leveraging security libraries and frameworks designed to counter SSTI can save development time while enhancing application security. These tools provide built-in mechanisms to prevent template injection vulnerabilities.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Server-Side Template Injection is a potent reminder that even seemingly innocuous components of web applications can turn into security liabilities if not managed meticulously. Developers must remain vigilant, applying best practices, and embracing a security-first mindset. By understanding the mechanics of SSTI and implementing preventive measures, we can thwart potential attacks and contribute to a safer digital landscape.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In the realm of web application security, Server-Side Template Injection (SSTI) stands as a formidable threat that can expose vulnerabilities in even the most well-constructed applications. This blog post delves into the mechanics of SSTI, its potential risks, and how developers can safeguard their applications against this security menace&#8230;. <a href=\"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":7835,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2259],"tags":[2371,2553,2468,2488,2367,2550],"class_list":["post-7834","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sicurezza-informatica","tag-ethical-hacking","tag-injection","tag-oscp","tag-penetrationtesting","tag-pentest","tag-webhack"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security - iProg<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security - iProg\" \/>\n<meta name=\"twitter:description\" content=\"Introduction In the realm of web application security, Server-Side Template Injection (SSTI) stands as a formidable threat that can expose vulnerabilities in even the most well-constructed applications. This blog post delves into the mechanics of SSTI, its potential risks, and how developers can safeguard their applications against this security menace.... Read more &raquo;\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@flexkid1\" \/>\n<meta name=\"twitter:site\" content=\"@iprogblog\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Diego\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/\"},\"author\":{\"name\":\"Diego\",\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/#\\\/schema\\\/person\\\/048c8acb70f8a33f1498675ab9db41a3\"},\"headline\":\"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security\",\"datePublished\":\"2023-08-18T13:06:44+00:00\",\"dateModified\":\"2023-08-18T13:06:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/\"},\"wordCount\":655,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/E0JCuVfWUAYc-Oa.jpg\",\"keywords\":[\"Ethical hacking\",\"injection\",\"oscp\",\"penetrationtesting\",\"pentest\",\"webhack\"],\"articleSection\":[\"Sicurezza Informatica\"],\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/\",\"url\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/\",\"name\":\"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security - iProg\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/E0JCuVfWUAYc-Oa.jpg\",\"datePublished\":\"2023-08-18T13:06:44+00:00\",\"dateModified\":\"2023-08-18T13:06:48+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/#\\\/schema\\\/person\\\/048c8acb70f8a33f1498675ab9db41a3\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/sicurezza-informatica\\\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/E0JCuVfWUAYc-Oa.jpg\",\"contentUrl\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/E0JCuVfWUAYc-Oa.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/\",\"name\":\"iProg\",\"description\":\"perch\u00e9 reinventare la ruota?\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/#\\\/schema\\\/person\\\/048c8acb70f8a33f1498675ab9db41a3\",\"name\":\"Diego\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf8084effa4627f8e50af0d50d06b0677e4a9de5e895e347c0590ad5696fdfc9?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf8084effa4627f8e50af0d50d06b0677e4a9de5e895e347c0590ad5696fdfc9?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf8084effa4627f8e50af0d50d06b0677e4a9de5e895e347c0590ad5696fdfc9?s=96&r=g\",\"caption\":\"Diego\"},\"description\":\"Google+\",\"sameAs\":[\"http:\\\/\\\/it.linkedin.com\\\/in\\\/diegocaridei\\\/\",\"https:\\\/\\\/x.com\\\/flexkid1\",\"http:\\\/\\\/www.youtube.com\\\/channel\\\/UCjQ2z1ygV9tv55QAc2q3JHA\"],\"url\":\"https:\\\/\\\/www.iprog.it\\\/blog\\\/author\\\/flexkid\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security - iProg","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/","twitter_card":"summary_large_image","twitter_title":"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security - iProg","twitter_description":"Introduction In the realm of web application security, Server-Side Template Injection (SSTI) stands as a formidable threat that can expose vulnerabilities in even the most well-constructed applications. This blog post delves into the mechanics of SSTI, its potential risks, and how developers can safeguard their applications against this security menace.... Read more &raquo;","twitter_image":"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg","twitter_creator":"@flexkid1","twitter_site":"@iprogblog","twitter_misc":{"Scritto da":"Diego","Tempo di lettura stimato":"5 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/#article","isPartOf":{"@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/"},"author":{"name":"Diego","@id":"https:\/\/www.iprog.it\/blog\/#\/schema\/person\/048c8acb70f8a33f1498675ab9db41a3"},"headline":"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security","datePublished":"2023-08-18T13:06:44+00:00","dateModified":"2023-08-18T13:06:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/"},"wordCount":655,"commentCount":0,"image":{"@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/#primaryimage"},"thumbnailUrl":"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg","keywords":["Ethical hacking","injection","oscp","penetrationtesting","pentest","webhack"],"articleSection":["Sicurezza Informatica"],"inLanguage":"it-IT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/","url":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/","name":"Understanding Server-Side Template Injection (SSTI) and Its Role in Web Application Security - iProg","isPartOf":{"@id":"https:\/\/www.iprog.it\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/#primaryimage"},"image":{"@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/#primaryimage"},"thumbnailUrl":"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg","datePublished":"2023-08-18T13:06:44+00:00","dateModified":"2023-08-18T13:06:48+00:00","author":{"@id":"https:\/\/www.iprog.it\/blog\/#\/schema\/person\/048c8acb70f8a33f1498675ab9db41a3"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.iprog.it\/blog\/sicurezza-informatica\/understanding-server-side-template-injection-ssti-and-its-role-in-web-application-security\/#primaryimage","url":"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg","contentUrl":"https:\/\/www.iprog.it\/blog\/wp-content\/uploads\/2023\/08\/E0JCuVfWUAYc-Oa.jpg","width":1280,"height":720},{"@type":"WebSite","@id":"https:\/\/www.iprog.it\/blog\/#website","url":"https:\/\/www.iprog.it\/blog\/","name":"iProg","description":"perch\u00e9 reinventare la ruota?","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.iprog.it\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Person","@id":"https:\/\/www.iprog.it\/blog\/#\/schema\/person\/048c8acb70f8a33f1498675ab9db41a3","name":"Diego","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/secure.gravatar.com\/avatar\/bf8084effa4627f8e50af0d50d06b0677e4a9de5e895e347c0590ad5696fdfc9?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bf8084effa4627f8e50af0d50d06b0677e4a9de5e895e347c0590ad5696fdfc9?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bf8084effa4627f8e50af0d50d06b0677e4a9de5e895e347c0590ad5696fdfc9?s=96&r=g","caption":"Diego"},"description":"Google+","sameAs":["http:\/\/it.linkedin.com\/in\/diegocaridei\/","https:\/\/x.com\/flexkid1","http:\/\/www.youtube.com\/channel\/UCjQ2z1ygV9tv55QAc2q3JHA"],"url":"https:\/\/www.iprog.it\/blog\/author\/flexkid\/"}]}},"views":988,"_links":{"self":[{"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/posts\/7834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/comments?post=7834"}],"version-history":[{"count":1,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/posts\/7834\/revisions"}],"predecessor-version":[{"id":7840,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/posts\/7834\/revisions\/7840"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/media\/7835"}],"wp:attachment":[{"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/media?parent=7834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/categories?post=7834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iprog.it\/blog\/wp-json\/wp\/v2\/tags?post=7834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}