Software:Slowloris (computer security)

From HandWiki
Short description: Software for executing a denial-of-service attack
Slowloris
Slowloris running on Command Prompt
Slowloris running on Command Prompt
Initial release17 June 2009
Stable release
0.7
Written inPerl
PlatformCross-platform
Size36 kb
TypeHacking tool
Websiteha.ckers.org/slowloris/

Slowloris is a type of denial of service attack tool which allows a single machine to take down another machine's web server with minimal bandwidth and side effects on unrelated services and ports.

Slowloris tries to keep many connections to the target web server open and hold them open as long as possible. It accomplishes this by opening connections to the target web server and sending a partial request. Periodically, it will send subsequent HTTP headers, adding to, but never completing, the request. Affected servers will keep these connections open, filling their maximum concurrent connection pool, eventually denying additional connection attempts from clients.[1]

The program was named after slow lorises, a group of primates which are known for their slow movement.

Affected web servers

This includes but is not necessarily limited to the following, per the attack's author:[1]

  • Apache 1.x and 2.x
  • dhttpd
  • Websense "block pages" (unconfirmed)
  • Trapeze Wireless Web Portal (unconfirmed)
  • Verizon's MI424-WR FIOS Cable modem (unconfirmed)
  • Verizon's Motorola Set-top box (port 8082 and requires auth - unconfirmed)
  • BeeWare WAF (unconfirmed)
  • Deny All WAF (patched)[2]
  • Flask (development server)
  • Internet Information Services (IIS) 6.0 and earlier [3]
  • Nginx 1.5.9 and earlier [4]

Vulnerable to Slowloris attack on the TLS handshake process:

  • Apache HTTP Server 2.2.15 and earlier [5]
  • Internet Information Services (IIS) 7.0 and earlier [6]

Because Slowloris exploits problems handling thousands of connections, the attack has less of an effect on servers that handle large numbers of connections well. Proxying servers and caching accelerators such as Varnish, nginx, and Squid have been recommended[7] to mitigate this particular kind of attack. In addition, certain servers are more resilient to the attack by way of their design, including Hiawatha,[8] IIS, lighttpd, Cherokee, and Cisco CSS.

Mitigating the Slowloris attack

While there are no reliable configurations of the affected web servers that will prevent the Slowloris attack, there are ways to mitigate or reduce the impact of such an attack. In general, these involve increasing the maximum number of clients the server will allow, limiting the number of connections a single IP address is allowed to make, imposing restrictions on the minimum transfer speed a connection is allowed to have, and restricting the length of time a client is allowed to stay connected.

In the Apache web server, a number of modules can be used to limit the damage caused by the Slowloris attack; the Apache modules mod_limitipconn, mod qos, mod_evasive, mod security, mod_noloris, and mod_antiloris have all been suggested as means of reducing the likelihood of a successful Slowloris attack.[1][9] Since Apache 2.2.15, Apache ships the module mod_reqtimeout as the official solution supported by the developers.[10]

Other mitigating techniques involve setting up reverse proxies, firewalls, load balancers or content switches.[11] Administrators could also change the affected web server to software that is unaffected by this form of attack. For example, lighttpd and nginx do not succumb to this specific attack.[1]

Notable usage

During the protests that erupted in the wake of the 2009 Iranian presidential election, Slowloris arose as a prominent tool used to leverage DoS attacks against sites run by the Iranian government.[12] The belief was that flooding DDoS attacks would affect internet access for the government and protesters equally, due to the significant bandwidth they can consume. The Slowloris attack was chosen instead, because of its high impact and relatively low bandwidth.[13] A number of government-run sites were targeted during these attacks, including gerdab.ir, leader.ir, and president.ir.[14]

A variant of this attack was used by spam network River City Media to force Gmail servers to send thousands of messages in bulk, by opening thousands of connections to the Gmail API with message sending requests, then completing them all at once.[15]

Similar software

Since its release, a number of programs have appeared that mimic the function of Slowloris while providing additional functionality, or running in different environments:[16]

  • PyLoris – A protocol-agnostic Python implementation supporting Tor and SOCKS proxies.[17]
  • Slowloris – A Python 3 implementation of Slowloris with SOCKS proxy support.[18]
  • Goloris – Slowloris for nginx, written in Go.[19]
  • slowloris - Distributed Golang implementation[20]
  • QSlowloris – An executable form of Slowloris designed to run on Windows, featuring a Qt front end.[21]
  • An unnamed PHP version which can be run from a HTTP server.[22]
  • SlowHTTPTest – A highly configurable slow attacks simulator, written in C++.[23][24]
  • SlowlorisChecker – A Slowloris and Slow POST POC (Proof of concept). Written in Ruby.[25]
  • Cyphon - Slowloris for Mac OS X, written in Objective-C.[26]
  • sloww - Slowloris implementation written in Node.js.[27]
  • dotloris - Slowloris written in .NET Core[28]
  • SlowDroid - An enhanced version of Slowloris written in Java, reducing at minimum the attack bandwidth[29]

See also

References

  1. 1.0 1.1 1.2 1.3 "Slowloris HTTP DoS". Archived from the original on 26 April 2015. https://web.archive.org/web/20150426090206/http://ha.ckers.org/slowloris. Retrieved 2009-06-26. 
  2. "Archived copy". Archived from the original on 1 February 2014. https://web.archive.org/web/20140201201359/http://www.denyall.com/files/090703-Flash-Presse-contre-Slowloris.pdf. Retrieved 2013-05-15. 
  3. "Slowloris". https://www.powerwaf.com/learning/ddos-attacks/slowloris-attack/#known-servers-vulnerable-to-slowloris-attacks. 
  4. "Slowloris". https://www.powerwaf.com/learning/ddos-attacks/slowloris-attack/#known-servers-vulnerable-to-slowloris-attacks. 
  5. "Slowloris". https://www.powerwaf.com/learning/ddos-attacks/slowloris-attack/#known-servers-vulnerable-to-slowloris-attacks. 
  6. "Slowloris". https://www.powerwaf.com/learning/ddos-attacks/slowloris-attack/#known-servers-vulnerable-to-slowloris-attacks. 
  7. "How to best defend against a "slowloris" DOS attack against an Apache web server?". http://serverfault.com/a/32472/129773. 
  8. "Performance testing while under attack". hiawatha-webserver.org. 28 February 2014. https://www.hiawatha-webserver.org/weblog/64. 
  9. "mod_noloris: defending against DoS". niq's soapbox. July 2009. http://bahumbug.wordpress.com/2009/07/01/mod_noloris-defending-against-dos/. Retrieved 7 January 2012. 
  10. "mod_reqtimeout - Apache HTTP Server". Httpd.apache.org. https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html. Retrieved 2013-07-03. 
  11. Breedijk, Frank (22 June 2009). "Slowloris and Nkiller2 vs. the Cisco CSS load balancer". Cupfighter.net. http://www.cupfighter.net/index.php/2009/06/slowloris-css/. Retrieved 7 January 2012. 
  12. Zdrnja, Bojan (23 June 2009). "ISC Diary | Slowloris and Iranian DDoS attacks". Isc.sans.org. https://isc.sans.edu/forums/diary/Slowloris+and+Iranian+DDoS+attacks/6622. Retrieved 7 January 2012. 
  13. [1]
  14. [2]
  15. Vickery, Chris (2017-03-06). "Spammergate: The Fall of an Empire". MacKeeper Security Watch. https://mackeeper.com/blog/post/339-spammergate-the-fall-of-an-empire. 
  16. Robert "RSnake" Hansen. "Slowloris". SecTheory. http://samsclass.info/seminars/slowloris.pdf. Retrieved 7 January 2012. 
  17. "PyLoris". MotomaSTYLE. 19 June 2009. http://motomastyle.com/pyloris/. Retrieved 7 January 2012. 
  18. "Slowloris rewrite in Python". https://github.com/gkbrk/slowloris. Retrieved 10 May 2017. 
  19. valyala. "Slowloris for nginx DoS". https://github.com/valyala/goloris. Retrieved 4 February 2014. 
  20. Tsankov, Ivaylo (2022-04-22), slowloris - Golang distributed Slowloris attack, https://github.com/itsankoff/slowloris, retrieved 2022-04-24 
  21. "How to help take down gerdab.ir in 5 easy steps". cyberwar4iran. 28 June 2009. http://cyberwar4iran.blogspot.com/. Retrieved 7 January 2012. 
  22. "Full Disclosure: apache and squid dos". Seclists.org. 19 June 2009. http://seclists.org/fulldisclosure/2009/Jun/0207.html. Retrieved 7 January 2012. 
  23. "Testing Web Servers for Slow HTTP Attacks". qualys.com. 19 September 2011. https://community.qualys.com/blogs/securitylabs/2011/09/19/testing-web-servers-for-slow-http-attacks. Retrieved 13 January 2012. 
  24. "shekyan/slowhttptest: Application Layer DoS attack simulator". GitHub. https://github.com/shekyan/slowhttptest/. Retrieved 2017-04-19. 
  25. "Simple script to check if some server could be affected by Slowloris attack". github.com/felmoltor. 31 December 2012. https://github.com/felmoltor/SlowlorisChecker. Retrieved 31 December 2012. 
  26. abilash. "Slowloris for OSX". https://github.com/abila5h/Cyphon-DoS. Retrieved 8 April 2017. 
  27. Davis, Ethan (2018-02-17), sloww: Lightweight Slowloris attack CLI in Node, https://github.com/ethanent/sloww, retrieved 2018-02-18 
  28. Bassel Shmali (28 November 2021). "Slowloris written in .Net core". https://github.com/bass3l/dotloris. 
  29. Cambiaso, Enrico; Papaleo, Gianluca; Aiello, Maurizio (2014). "SlowDroid: Turning a Smartphone into a Mobile Attack Vector". 2014 International Conference on Future Internet of Things and Cloud. pp. 405–410. doi:10.1109/FiCloud.2014.72. ISBN 978-1-4799-4357-9. https://zenodo.org/record/896552. 

External links