News for hackers. Stuff that matters.
Re:Apache vulnerable to easy DOS attack - workaround available by ck2 on Thursday August 25, 2011 @04:04AM (#2924165)
Of all the workarounds, this is probably the best option because it will still allow ranges to function.

  Option 1: (Apache 2.0 and 2.2)

          # Drop the Range header when more than 5 ranges.
          # CVE-2011-3192
          SetEnvIf Range (,.*?){5,} bad-range=1
          RequestHeader unset Range env=bad-range

          # optional logging.
          CustomLog logs/range-CVE-2011-3192.log common env=bad-range

  Option 2: (Also for Apache 1.3)

          # Reject request when more than 5 ranges in the Range: header.
          # CVE-2011-3192
          #
          RewriteEngine on
          RewriteCond %{HTTP:range} !(^bytes=[^,]+(,[^,]+){0,4}$|^$)
          RewriteRule .* - [F]
Re:Apache vulnerable to easy DOS attack - workaround available by nickthedart on Thursday August 25, 2011 @09:03AM (#2924723)
Additional info : Changing this slightly to drop range header when more than 10 ranges (i:e the 5 on the third line becomes a 10 instead ), can avoid problems where serving of large pdfs get broken by this fix.
Re:Apache vulnerable to easy DOS attack - workaround available by jarin on Thursday August 25, 2011 @04:57AM (#2924247)
Making sure ranges work is especially important if you're serving up streaming video.
Re:Apache vulnerable to easy DOS attack - workaround available by ck2 on Thursday August 25, 2011 @07:53AM (#2924548)
Also for download resuming if I remember correctly.
Re:Apache vulnerable to easy DOS attack - workaround available by ZoFreX on Thursday August 25, 2011 @03:13PM (#2926047)
Yes, but very few people are using browsers / download clients that will actually resume downloads, and in many cases sites don't support it for files anyway. However with video it's absolutely expected behaviour.
Re:Apache vulnerable to easy DOS attack - workaround available by shoota on Thursday August 25, 2011 @03:22PM (#2926073)
Both firefox and chrome will resume downloads if they're paused.
Re:Apache vulnerable to easy DOS attack - workaround available by whyleyc on Thursday August 25, 2011 @11:24AM (#2925182)
I've been testing this fix today on Apache 2.0.53 and observed that when running the attack script against a server patched with option 1 (minus the optional logging) there was still a significant hike in CPU usage, perhaps because there is a cost in processing the header analysis.

Option 2 produced no such hike, and protected the server from attack.