Pure PHP Upload 2 Support Product Page

Solved

Keep getting error 403 when uploading an image.

Reported 03 Jun 2012 17:19:40
2
have this problem
03 Jun 2012 17:19:40 Christian Wilson posted:
Keep getting error 403 when uploading an image. File upload is enabled in php and doesn't matter what directory I use. I've set the directory to 777, but still no go. For some reason the script does not have access to any directory. I have also try playing the with path but got nowhere.

Help!!


       jQuery("#text").dmxEditor(
         {"allowUpload": true, "uploadPath": "images", "focusOnLoad": true, "uploadProcessor": "php", "locale": "en", "formatterSettings": {"linkType": "full"}}
       );



Replies

Replied 03 Jun 2012 19:07:05
03 Jun 2012 19:07:05 Christian Wilson replied:
Here is the actual error"


POST /ScriptLibrary/dmxEditor/dialogs/upload.php?GP_upload=true&upfolder=../../../images&subfolder= HTTP/1.1" 403 


[Sun Jun 03 14:17:52 2012] [error] [client 204.195.40.48] ModSecurity: Access denied with code 403 (phase 2). Match of "rx (/products/index\\\\.php\\\\?gallery=|connector=\\\\.\\\\./\\\\.\\\\./connectors|/admin/structure/views/|phpthumb/phpthumb\\\\.php\\\\?src=\\\\.\\\\./.*(?:uploads|images)|/site-builder/)" against "REQUEST_URI" required. [file "/opt/mod_security/10_asl_rules.conf"] [line "184"] [id "340007"] [rev "28"] [msg "Atomicorp.com WAF Rules: Generic Path Recursion denied"] [data "/../"] [severity "CRITICAL"] [hostname "military-veteran.com"] [uri "/ScriptLibrary/dmxEditor/dialogs/upload.php"] [unique_id "T8u4YK55eIkAADbcZtMAAACU"]


Replied 03 Jun 2012 21:11:52
03 Jun 2012 21:11:52 Christian Wilson replied:
After whitelisting a couple of mod_security rules and fixing a path issue in the upload php file...I got it to work.

Reply to this topic