Re:Finding an arbitrary file upload vulnerability in a files...
by gcr on Sunday May 14, 2017 @11:07AM
(#14335897)
Upload a script that replaces the old file source and wait for gunicorn or whatever to reload the app server.
Re:Finding an arbitrary file upload vulnerability in a files...
by gehaxelt on Sunday May 14, 2017 @03:46PM
(#14337229)
The 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.
I have a feeling that only works on python2 because of absolute imports on python3.