logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: PCI Compliance woes with Etags
Author
fmaznicki



Joined: 12 Apr 2011
Posts: 6

PostPosted: Tue 30 Oct '12 17:23    Post subject: PCI Compliance woes with Etags Reply with quote

- Apache version: 2.2.23
- operating system: windows server2k3r2

My issue is that i'm trying to get PCI compliant but I keep failing due to "Apache Web Server ETag Header Information Disclosure Weakness"

According to Qualys they say

In order to fix this vulnerability globally, for the Web server, use the option "FileETag None". Use the option "FileETag MTime Size" if you just want to remove the Inode information.

I've added "FileETag None" to my httpd.conf but it still keeps failing due to this vulnerability i'm at a loss here, has anyone else on the forums had experience with etags, any input would be greatly appreciated Confused
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Tue 30 Oct '12 18:11    Post subject: Reply with quote

Since ETag can be set in server config, virtual host, directory and .htaccess you should search the whole config with all includes and .htaccess files.
Don't forget to restart apache (happens sometimes Wink ).
Back to top
fmaznicki



Joined: 12 Apr 2011
Posts: 6

PostPosted: Tue 30 Oct '12 20:06    Post subject: Reply with quote

I've looked everywhere can't seem to find anything that would override this setting. Of course I did restart Apache Laughing i'm using the firefly plugin to view the headers and it's still showing an etag.

This is so simple it's stupid i'm banging my head on the wall.



thanks James Blond for your input, let me know if you think of anything else Smile
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3091
Location: Hilversum, NL, EU

PostPosted: Tue 30 Oct '12 21:05    Post subject: Reply with quote

What shows when you hit your site with: http://web-sniffer.net/
Back to top
fmaznicki



Joined: 12 Apr 2011
Posts: 6

PostPosted: Tue 30 Oct '12 21:17    Post subject: Reply with quote

Here is my output: http://i.imgur.com/Ztent.png

I've tried applying the config to another one of my apache servers running 2.2.22 and Etags were successfully disabled as you can see from the image below on the right (www10). I'm starting to think it's a bug with apache 2.2.23 which is on the left(www9).

I'm adding this config to httpd.conf

Header unset ETag
FileETag None


http://i.imgur.com/0al4s.jpg
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3091
Location: Hilversum, NL, EU

PostPosted: Tue 30 Oct '12 22:02    Post subject: Reply with quote

In your png from sniffer I see no Etag, so looks ok.
Back to top
fmaznicki



Joined: 12 Apr 2011
Posts: 6

PostPosted: Tue 30 Oct '12 22:05    Post subject: Reply with quote

If you were to view the header for an image you would see the Etag.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3091
Location: Hilversum, NL, EU

PostPosted: Tue 30 Oct '12 22:13    Post subject: Reply with quote

For me it looks fine when sniffer shows no etag when hitting your site. Can that the image is already cached somewhere.

Try to show your headers localhost (127.0.0.1) and clear the browsers cache first, or use curl
Back to top
fmaznicki



Joined: 12 Apr 2011
Posts: 6

PostPosted: Fri 02 Nov '12 17:41    Post subject: Reply with quote

I'M PCI COMPLIANT NOW! I ended up having to downgrade apache from 2.2.23 to 2.2.22 and the FileETag None configuration works, it's almost as if 2.2.23 ignores that command. Maybe it's a bug... maybe not... but i'm good for now. thank you all for your input Very Happy
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 02 Nov '12 22:16    Post subject: Reply with quote

I think it was a cached response as Steffen does since websniffer did not see it nor is 2.2.23 broken. See an ETag here?

http://www.apachehaus.net:85/
Back to top


Reply to topic   Topic: PCI Compliance woes with Etags View previous topic :: View next topic
Post new topic   Forum Index -> Apache