not getting 403 forbidden when WAF is tripped

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

not getting 403 forbidden when WAF is tripped

Unread post by imadsani »

Hey,

I'm experimenting with a vanilla LAMP server (no control panel). Tripping the WAF is throwing the Apache default page instead of the 403 Forbidden.
I can see the event being logged inside ASL and the IP being block just fine.

Any ideas?
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: not getting 403 forbidden when WAF is tripped

Unread post by mikeshinn »

Which rule?
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

Re: not getting 403 forbidden when WAF is tripped

Unread post by imadsani »

Code: Select all

340162	Atomicorp.com WAF Rules: URL detected as argument, possible RFI attempt detected
On older ASL versions the above has generated the 403 Forbidden page

Another thing, I tried uninstalling ASL recently but it didn't go well. I couldn't even reinstall ASL, instead had to format the server
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: not getting 403 forbidden when WAF is tripped

Unread post by mikeshinn »

I'm not able to reproduce this behavior, the rule specifically sends a 403 error, you can see that in the rule itself:

"phase:2,deny,status:403,capture,id:340162,t:none,t:urlDecodeUni,t:replaceNulls,t:compressWhiteSpace,t:lowercase,chain,rev:300,severity:2,msg:'Atomicorp.com WAF Rules: URL detected as argument, possible RFI attempt detected',logdata:'%TX:0,%{matched_var_name}'"

However, if apache is configured to send something differently, then modsecurity will not over-ride that.
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

Re: not getting 403 forbidden when WAF is tripped

Unread post by imadsani »

Could you tell me where this is configured inside the apache configuration?
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: not getting 403 forbidden when WAF is tripped

Unread post by mikeshinn »

It could be almost anywhere, in a .htaccess file and/or in one or more of your apache configuration file, for example setting custom error responses will do this.
Post Reply