security - Is any of this PHP code vulnerable to arbitrary file upload? -
i have 2 files. 1 uploading image via file, , uploading image via url. there way of bypassing checks able perform arbitrary file upload?
here code uploading locally: http://pastebin.com/8lfia6k9
here code uploading via url: http://pastebin.com/mtvxmkyz
i invalid url error non-image files, assume safe. , assume regex check in first file safe too.
your second script vulnerable arbitrary file upload 1 can upload file file name extension, including .php
, long content recognized valid image. should validate file name extension similar how in first script.
furthermore, second script vulnerable sql injection via $_request["subject"]
, $_post["pmcat_id"]
.
Comments
Post a Comment