Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_security and modsec-clamscan.pl [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Sat Dec 20, 2008 1:16 am    Post subject: mod_security and modsec-clamscan.pl [solved] Reply with quote

I'm trying to configure a server to scan uploaded files with clamav

I found that mod_security for apache has an example script mentioned in the config file

/etc/apache2/modules.d/mod_security/10_config.conf

after I emerged mod_security

Quote:
If there is a danger of attack through uploaded files then it
# is possible to configure an external script to inspect each file
# before it is seen by the application. An example script is
# included with ModSecurity (/util/modsec-clamscan.pl).
#
# Inspecting uploaded files is especially important in a hosting,
# community or blogging environments where uploading files is permitted.
#
# NOTE the t:none action is required in order not to process the files names
# passed to the script based on previously defined actions in a
# SecDefaultAction directive.
#
SecRule FILES_TMPNAMES "@inspectFile /opt/apache/bin/inspect_script.pl" \
"t:none"


but I can't find either of those files anywhere or anything similar, even searching for all *.pl* files
find / -iname "*.pl" | less
none found looks like either of those files mentioned.
Thinking it might have been stripped for portage I downloaded the source from breach but it wasn't there either.

Can someone please point me to where they might be found? Thanks


Last edited by huuan on Tue Dec 23, 2008 3:02 am; edited 1 time in total
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Tue Dec 23, 2008 3:01 am    Post subject: Reply with quote

the mod_security people now have a bug tracking for this issue and anyone who wants can get a version of the sript from the 1.9.x version on their website.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum