Jump to content

mod_security and php uploadprogress


jake2891

Recommended Posts

Hey, has anyone found an alternative to getting uploadprogress working with apache and mod_security without disabling or changing security settings in mod_security that will compromise the server ? I dont see the point in using this feature if we have to disable security settings on the server ?

 

http://pecl.php.net/bugs/bug.php?id=16954

Bug

 

Description:

------------

No temp file is created when mod_security2 is enabled.

 

Possible cause that I have found is that PHP writes to a different file

name in the user's temp directory when mod_security is enabled compared

to when it is not.

 

Sample temp files created when mod_security is disabled:

phpENU1wg

upt_805677.1259779397.txt

 

where "805677.1259779397" is the UPLOAD_IDENTIFIER.

 

Sample temp files created when mod_security is enabled:

20091202-144325-SxbDWkU8c54AACEoQmIAAAAF-request_body-TgkMtk

 

[2009-12-02 20:06 UTC] blepore at igniteworldwide dot com

 

If this cannot be accomplished, it is worth adding to the documentation

that setting SecRequestBodyAccess to Off will work around the issue

(though leave the site more vulnerable).

 

 

Link to comment
https://forums.phpfreaks.com/topic/187682-mod_security-and-php-uploadprogress/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.