GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Running Apache w/o nginx? Beware! (https://gfy.com/showthread.php?t=1035541)

just a punk 08-25-2011 05:14 AM

Running Apache w/o nginx? Beware!
 
The killapache.pl launches in a few threads the following simple request:

Quote:

GET / HTTP/1.1
Host: example.com
Range: bytes=0-,5-0,5-1,5-2,5-3,5-4,<...>,5-1299,5-1300
Accept-Encoding: gzip
Connection: close
And if there is no nginx installed your Apache server will be easily laid down.

http://habrastorage.org/storage1/431...5/03bcfdce.png

Here is a simple command to check if your server is vulnerable:

Quote:

curl -I -H "Range: bytes=0-1,0-2" -s yourserver.com/robots.txt | grep Partial
If you received 206 Partial Content, you are in big trouble.

just a punk 08-25-2011 05:18 AM

http://www.gossamer-threads.com/lists/apache/dev/401638

Babaganoosh 08-25-2011 06:02 AM

Looks like many of mine are vulnerable. On my dev server I get the message "Host does not seem vulnerable" after disabling mod_deflate.


Edit: nevermind...looks like a fluke. Still vulnerable.

Klen 08-25-2011 06:18 AM

What is this "apache" you speaking of :1orglaugh

just a punk 08-25-2011 06:25 AM

Quote:

Originally Posted by KlenTelaris (Post 18379257)
What is this "apache" you speaking of :1orglaugh

http://www.sonofthesouth.net/america...renegade-2.jpg

Babaganoosh 08-25-2011 06:37 AM

Haha just crashed my dev server with the tool.

http://i282.photobucket.com/albums/k...ection_002.png

Klen 08-25-2011 06:42 AM

Quote:

Originally Posted by Babaganoosh (Post 18379284)
Haha just crashed my dev server with the tool.

http://i282.photobucket.com/albums/k...ection_002.png

Huh,some of largest tube sites still running on apache....Makes me wonder....

Babaganoosh 08-25-2011 06:44 AM

Quote:

Originally Posted by KlenTelaris (Post 18379290)
Huh,some of largest tube sites still running on apache....Makes me wonder....

After checking a few of them I am 100% confident that I could drop them all within a couple of minutes.

Klen 08-25-2011 06:46 AM

Quote:

Originally Posted by Babaganoosh (Post 18379291)
After checking a few of them I am 100% confident that I could drop them all within a couple of minutes.

Can you do it just for fun :1orglaugh

Babaganoosh 08-25-2011 06:47 AM

Quote:

Originally Posted by KlenTelaris (Post 18379296)
Can you do it just for fun :1orglaugh

haha no way, I never mess with someone else's stuff. :1orglaugh

If they had ever stolen content from me and if I couldn't be prosecuted where I live...maybe.

fuzebox 08-25-2011 07:28 AM

Workaround:

Code:

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET) [NC]
RewriteCond %{HTTP:Range} ([0-9]*-[0-9]*)(\s*,\s*[0-9]*-[0-9]*)+
RewriteRule .* - [F]


Babaganoosh 08-25-2011 07:32 AM

Quote:

Originally Posted by fuzebox (Post 18379376)
Workaround:

Code:

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET) [NC]
RewriteCond %{HTTP:Range} ([0-9]*-[0-9]*)(\s*,\s*[0-9]*-[0-9]*)+
RewriteRule .* - [F]



That will break streaming, won't it?

fuzebox 08-25-2011 07:48 AM

Quote:

Originally Posted by Babaganoosh (Post 18379391)
That will break streaming, won't it?

Yes I suppose it could. My streaming is done via lighttpd, so it doesn't bother me.

Babaganoosh 08-25-2011 08:16 AM

Quote:

Originally Posted by fuzebox (Post 18379417)
Yes I suppose it could. My streaming is done via lighttpd, so it doesn't bother me.

It works on the domains I don't stream on and that's what really matters to me. My low-traffic, high income sites aren't vulnerable anymore. I have some blogs that stream from media.domain.com but as long as nobody targets the server those subdomains are on I guess I am ok. :1orglaugh

This hack freaks me out. This is the first one I have been vulnerable to EVER.:(

Klen 08-25-2011 08:22 AM

Quote:

Originally Posted by Babaganoosh (Post 18379482)
It works on the domains I don't stream on and that's what really matters to me. My low-traffic, high income sites aren't vulnerable anymore. I have some blogs that stream from media.domain.com but as long as nobody targets the server those subdomains are on I guess I am ok. :1orglaugh

This hack freaks me out. This is the first one I have been vulnerable to EVER.:(

Feel free to send me your domains if you want me to test are they vulnerable or not :1orglaugh

raymor 08-25-2011 09:22 AM

A working patch is already available, though it will be improved in the next few days.

raymor 08-25-2011 09:37 AM

I gotta chuckle at the nginx fanboy who's never heard of noatime using this to pitch nginx.
It's a little like suggesting that people avoid the latest Vista bug by running Windows 95, isn't it.

just a punk 08-25-2011 09:41 AM

Not at all. The wise ppl. using Apache as a main server. nginx should be used for static content only.

Klen 08-25-2011 12:53 PM

Quote:

Originally Posted by cyberxxx (Post 18379705)
Not at all. The wise ppl. using Apache as a main server. nginx should be used for static content only.

It is common recommendation,but there is simply no need for it since nginx can do almost anything what apache do,including CGI.Plus it do even some non-optimization related things better then apache.

Klen 08-25-2011 12:55 PM

Quote:

Originally Posted by raymor (Post 18379700)
I gotta chuckle at the nginx fanboy who's never heard of noatime using this to pitch nginx.
It's a little like suggesting that people avoid the latest Vista bug by running Windows 95, isn't it.

Just for the record,i using noatime along with nginx plus many other optimization methods for which you clueless noob probably never heard.

Babaganoosh 08-25-2011 01:11 PM

Quote:

Originally Posted by KlenTelaris (Post 18380171)
Just for the record,i using noatime along with nginx plus many other optimization methods for which you clueless noob probably never heard.

Why do you think you need nginx?

Klen 08-25-2011 01:30 PM

Quote:

Originally Posted by Babaganoosh (Post 18380199)
Why do you think you need nginx?

It's simply my personal choice,and also way way easier to manage then apache.While you can by stripping apache modules and it's configuration reduce load,on nginx it's enough to install it and it already work better then optimized apache,not the mention you can optimize it further then too.I mean seriously,why i would bother with apache if on nginx i have everything what i need,everything works there and never having any problem unlike on apache which was constant issue till i went to nginx before 4 years.Also,currently nginx is not champion when it comes to load optimization there is one even better solution but for my traffic levels nginx do the job.

fris 08-25-2011 05:53 PM

if gzip is disabled it doesnt effect it

raymor 08-25-2011 06:37 PM

Digging through the nginx code and testing, I found the apparent advantage for nginx was simply that it basically forces noatime as one of it's bugs.
iIn our testing, Apache beats nginx + Apache as long as you use noatime. Just as you'd expect from profiling either, the time is spent on io, so Apache by itself is just as fast as nginx by itself. Neither can magically make the disks faster. Alternatively, if you don't want noatime, nginx is a non-starter because it skips atime updates whether you like it or not.


All times are GMT -7. The time now is 08:03 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123