4 ms·
>Upload a .py file to the untrusted directory that has the same name of one of the imports used in the Python script. It will be executed the next time Python i
by gruez 10y ago
>Upload a .py file to the untrusted directory that has the same name of one of the imports used in the Python script. It will be executed the next time Python is called by the script, so you don't need to wait for interactivity on the admins part
I have a feeling that only works on python2 because of absolute imports on python3.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- gcr 10y agoUpload a script that replaces the old file source and wait for gunicorn or whatever to reload the app server.
- gehaxelt 10y agoThe script seems to ship with a rundimentary webserver by default, so I don't see a reason to wrap gunicorn et al. around it? However, you're right that overwriting the source is a possible attack vector.