Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 39 guests and 1 member online
Free Business and Tech Magazines and eBooks
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Web Applications
Slowloris HTTP DoS on Apache webservers
EH-Net
May 24, 2013, 09:19:45 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Web Applications
(Moderator:
don
) >
Slowloris HTTP DoS on Apache webservers
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Slowloris HTTP DoS on Apache webservers (Read 9906 times)
0 Members and 1 Guest are viewing this topic.
unsupported
Sr. Member
Offline
Posts: 318
Unofficial Newbie Moderator
Slowloris HTTP DoS on Apache webservers
«
on:
June 18, 2009, 06:27:09 AM »
rsnake's done it again! He developed a DoS which utilized HTTP on a multithreaded webserver, like Apache, not IIS. He says it is possible to DoS a website with just one computer and 1,000 packets because of the way the attack occurs.
More information, including Apache's laize faire response is here,
http://ha.ckers.org/blog/20090617/slowloris-http-dos/
with the details here,
http://ha.ckers.org/slowloris/
.
Talk amongst yourselves...
Logged
-Un
CISSP, GCIH, GCIA, C|EH, Sec+, Net+, MCP
Ketchup
Hero Member
Offline
Posts: 1021
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #1 on:
June 18, 2009, 07:26:43 AM »
This is very interesting. I haven't looked at the code yet, but I am guessing that it would be very possible to write an IDS signature to detect this attack. However, considering how easily you can turn it on and off, blocking it may be more difficult.
Does anyone known if firewall manufacturers out there have a way to limit HTTP connection duration? I've been looking but haven't found anything yet.
Logged
~~~~~~~~~~~~~~
Ketchup
ethicalhack3r
Full Member
Offline
Posts: 139
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #2 on:
June 18, 2009, 07:40:02 AM »
Quote
Does anyone known if firewall manufacturers out there have a way to limit HTTP connection duration? I've been looking but haven't found anything yet.
You can change the default Apache settings to limit the connections. Not sure about firewalls.
EDIT---
RSnake says:
@All, we have now gone through and tested every single recommendation Apache has made on that page - even the scary experimental one that says it may take down your server in the process of it’s use, and none of them stopped Slowloris. I think we can finally move on from that part of the discussion.
«
Last Edit: June 18, 2009, 09:10:06 AM by ethicalhack3r
»
Logged
Andrew Waite
Hero Member
Offline
Posts: 928
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #3 on:
June 18, 2009, 10:20:30 AM »
Playing with this in my lab today, which has managed to create a few worried individuals when I've demo'd it.
Bascially does exactly what it says on the tin, as others have pointed out you can create the same effect with existing (and old) tools, just does it in a different way.
SANS ISC
has just covered tool, so head there if you want more technical info.
Whilst I haven't had opportunity to test myself, I've read reports of this effecting non-apache services as well depending on web-server architecture. IIS isn't vulnerable though. If anyone can confirm additional effected services I'd appreciate the heads up, cheers.
Logged
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
apollo
Full Member
Offline
Posts: 146
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #4 on:
June 18, 2009, 11:19:26 AM »
I'm not sure how easy it would be to write an IDS signature for this, as the time span that you would have to track the session through could make your IDS sad. Basically what the application appears to be doing, is taking advantage of the fact that most people protect their apache (or other web server instances) by limited the number of forks/threads to ensure that the box doesn't run out of memory. When web servers run out of memory, things turn ugly, so this tool takes advantage of that, and if the limit is not imposed, the box will probably just run out of memory anyway, taking down the whole thing anyway.
It appears to be doing this by opening up connections, sending a valid request, without sending the trailing new line that tells the web server "YO, GIMME DATA!". By omitting that final new line, the connection remains open while the webserver waits for you to finish asking the question. Sure, it will eventually timeout, but if you send it another small header like "X-happy: 4" it will start the wait again. As this isn't written to the log file until the request has been made, until something bad happens, there won't be any logs indicating what is going on. A netstat will reveal the problem, and as a complete connection is required, it is easy to block the attacker, but it isn't a flood enough of traffic to make most folks go WOH!
I could be wrong, but that's how I read it.
Logged
CISSP, CSSLP, MCSE+Security, MCTS, CCSP, GPEN, GWAPT, GCWN, NOP, OSCP, Security+
Andrew Waite
Hero Member
Offline
Posts: 928
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #5 on:
June 19, 2009, 03:16:02 AM »
Apollo,
that fits with the testing I've done in a lab.
Only mitigation I've found so far is as you describe, see large number of connections via netstat and block source IP at firewall (perimeter or host-based).
Not sure I like this tool, although I've sure the skiddies will
Hopefully it won't create any major headaches for anyone.
Logged
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
Ketchup
Hero Member
Offline
Posts: 1021
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #6 on:
June 19, 2009, 07:31:27 AM »
Quote from: apollo on June 18, 2009, 11:19:26 AM
It appears to be doing this by opening up connections, sending a valid request, without sending the trailing new line that tells the web server "YO, GIMME DATA!".
I am not great at grep, but it seems that a grep expression could be written to detect input without a new line character. If a grep expression can be written, than a Snort signature can be created. What do you guys think?
It seems to be that this would be something Apache should address. They would just have to time out the connection, even if it is technically incomplete. I am sure there are complications with this approach, especially with long running connections, like file transfer.
Logged
~~~~~~~~~~~~~~
Ketchup
Andrew Waite
Hero Member
Offline
Posts: 928
Re: Slowloris HTTP DoS on Apache webservers
«
Reply #7 on:
June 19, 2009, 10:21:32 AM »
Quote from: Ketchup on June 19, 2009, 07:31:27 AM
Quote from: apollo on June 18, 2009, 11:19:26 AM
It appears to be doing this by opening up connections, sending a valid request, without sending the trailing new line that tells the web server "YO, GIMME DATA!".
I am not great at grep, but it seems that a grep expression could be written to detect input without a new line character. If a grep expression can be written, than a Snort signature can be created. What do you guys think?
It's a possibility, but as others have pointed out elsewhere, the lack of a newline character is just one example of how this attack vector could be implemented. Similar scripts code me coded/modified to implement this in a way that bypasses your grep or IDS rules.
Although I'm hoping someone is going to tell me I'm wrong
Logged
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(8) by
ajohnson
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(29) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
Greetings
: Hi from the UK
(4) by
MrTuxracer
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
Free Business and Tech Magazines and eBooks
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.