News for hackers. Stuff that matters.
Re:Finding an arbitrary file upload vulnerability in a files... by gruez on Saturday May 13, 2017 @08:56PM (#14333724)
>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.

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.