LWN: Comments on "An updated Apache DOS advisory" https://lwn.net/Articles/456513/ This is a special feed containing comments posted to the individual LWN article titled "An updated Apache DOS advisory". en-us Fri, 26 Sep 2025 22:16:25 +0000 Fri, 26 Sep 2025 22:16:25 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net An updated Apache DOS advisory https://lwn.net/Articles/456993/ https://lwn.net/Articles/456993/ frumious <div class="FormattedComment"> 2.2.20 is out - <a href="https://www.apache.org/dist/httpd/Announcement2.2.html">https://www.apache.org/dist/httpd/Announcement2.2.html</a><br> <p> The main download page still shows 2.2.19, but you can find 2.2.20 on the mirror sites if you get a directory index.<br> </div> Wed, 31 Aug 2011 03:09:19 +0000 How to check, whether a host is vulnerable? https://lwn.net/Articles/456559/ https://lwn.net/Articles/456559/ tialaramex <div class="FormattedComment"> If you know its possible to issue Range requests against your server, it's vulnerable.<br> <p> If you know for sure it's _not_ possible to issue such requests (e.g. they will definitely always result in an error) then it's not vulnerable.<br> <p> If you're not sure, the former is far more likely than the latter, lots of things might allow Range requests, and it only takes one.<br> <p> The "killapache.pl" script requires that the remote server is willing to compress data with gzip/ deflate. This is completely tangential to the actual problem, and so the script is largely useless as a "test tool".<br> </div> Fri, 26 Aug 2011 23:28:02 +0000 How to check, whether a host is vulnerable? https://lwn.net/Articles/456547/ https://lwn.net/Articles/456547/ debacle <div class="FormattedComment"> I tried pointing the killapache.pl gun against all my Apaches and it always says "Host does not seem vulnerable". I'm not yet tranquilised.<br> </div> Fri, 26 Aug 2011 20:36:21 +0000 An updated Apache DOS advisory https://lwn.net/Articles/456539/ https://lwn.net/Articles/456539/ cesarb <div class="FormattedComment"> As to<br> <p> <font class="QuotedText">&gt; Should the regexp not be (?:,.*?){5,} instead of (?:,.*?){5,5} so that it matches 5 or more ranges and not just exactly 5?</font><br> <p> It depends on whether the regex is anchored or not. If it is not anchored to the start and the end of the string, it will match on any sequence of exactly 5 ranges within the header, even if it has more.[*]<br> <p> From the examples at <a href="https://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif">https://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#s...</a>, it seems the regex is not anchored (some of the examples there anchor it explicitly).<br> <p> [*] Actually, if I am reading it right, it should match whenever there are at least _6_ ranges, since it will ignore the first one because it is not preceded by a comma.<br> </div> Fri, 26 Aug 2011 19:01:49 +0000 An updated Apache DOS advisory https://lwn.net/Articles/456538/ https://lwn.net/Articles/456538/ dskoll <p><i>Should the regexp not be (?:,.*?){5,} instead of (?:,.*?){5,5} so that it matches 5 or more ranges and not just exactly 5?</i> <p>No. The expression is not anchored, so you might as well quit after 5. {5,5} (or better {5}) is faster than {5,} Fri, 26 Aug 2011 18:54:37 +0000 An updated Apache DOS advisory https://lwn.net/Articles/456536/ https://lwn.net/Articles/456536/ cesarb <div class="FormattedComment"> <font class="QuotedText">&gt; I can't believe they would get that wrong</font><br> <p> I can. They are under quite a lot of time pressure, and due to the importance of httpd, they have to get the definitive fix right. And for this bug, it is not a simple one-liner.<br> <p> Take a look at <a href="https://mail-archives.apache.org/mod_mbox/httpd-dev/201108.mbox/thread">https://mail-archives.apache.org/mod_mbox/httpd-dev/20110...</a>, where both the fix and these advisories are being developed, and note the amount of email exchanged over this issue on the last couple of days. From a quick look, the amount of messages about this issue is around double the amount of messages for the rest of the month.<br> <p> <font class="QuotedText">&gt; Isn't there a env=bad-req-range missing at the end of "RequestHeader unset Request-Range" because the second logging rule needs it?</font><br> <p> No, they meant to always remove the obsolete Request-Range header. Instead, what is missing is the SetEnvIf which would set that variable for the logging rule to use.<br> </div> Fri, 26 Aug 2011 18:50:39 +0000 An updated Apache DOS advisory https://lwn.net/Articles/456534/ https://lwn.net/Articles/456534/ nkiesel <div class="FormattedComment"> I can't believe they would get that wrong, so please tell my why the following two issues with option 1 are not problematic:<br> <p> 1) Should the regexp not be (?:,.*?){5,} instead of (?:,.*?){5,5} so that it matches 5 or more ranges and not just exactly 5?<br> <p> 2) Isn't there a env=bad-req-range missing at the end of "RequestHeader unset Request-Range" because the second logging rule needs it?<br> <p> &lt;/nk&gt;<br> </div> Fri, 26 Aug 2011 18:31:39 +0000