Why Web Servers Should Fear Their Clients

Abusing Websockets in Browsers for DoS
  • Juan D. Parra RodriguezEmail author
  • Joachim Posegga
Conference paper
Part of the Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering book series (LNICST, volume 164)


This paper considers exploiting browsers for attacking Web servers. We demonstrate the generation of HTTP traffic to third-party domains without the user’s knowledge, that can be used e.g. for Denial of Service attacks.

Our attack is primarily possible since Cross Origin Resource Sharing does not restrict WebSocket communications. We show an HTTP-based DoS attack with a proof of concept implementation, analyse its impact against Apache and Nginx, and compare the effectiveness of our attack to two common attack tools.

In the course of our work we identified two new vulnerabilities in Chrome and Safari, i.e. two thirds of all browsers in use, that turn these browsers into attack tools comparable to known DoS applications like LOIC.


Denial of Service Browser security Web security HTML5 security 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Introducing the new HTML5 Hard Disk Filler API (2013).
  2. 2.
  3. 3.
    The top 500 sites on the web (2015).
  4. 4.
    Antonatos, S., Akritidis, P., Lam, V.T., Anagnostakis, K.G.: Puppetnets: Misusing Web Browsers As a Distributed Attack Infrastructure. ACM Trans. Inf. Syst. Secur. 12(2) (2008)Google Scholar
  5. 5.
    Using Baidu to steer millions of computers to launch denial of serviceattacks (2015).
  6. 6.
    Web code weakness allows data dump on PCs (2008).
  7. 7.
    Bitcoin Miner for Websites (2011).
  8. 8.
    Cova, M., Kruegel, C., Vigna, G.: Detection and analysis of drive-by-download attacks and malicious javascript code. In: Proceedings of the 19th International Conference on World Wide Web, WWW 2010, pp. 281–290. ACM, New York (2010)Google Scholar
  9. 9.
    Fifield, D., Hardison, N., Ellithorpe, J., Stark, E., Boneh, D., Dingledine, R., Porras, P.: Evading censorship with browser-based proxies. In: Fischer-Hübner, Simone, Wright, Matthew (eds.) PETS 2012. LNCS, vol. 7384, pp. 239–258. Springer, Heidelberg (2012)CrossRefGoogle Scholar
  10. 10.
  11. 11.
    Grossman, J., Johansen, M.: Million Browser Botnet (2013).
  12. 12.
    Hickson, I.: Web workers. Candidate recommendation, W3C, May 2012.
  13. 13.
    Huang, L.S., Chen, E.Y., Barth, A., Rescorla, E., Jackson, C.: Talking to yourself for fun and profit. In: Proceedings of W2SP, pp. 1–11 (2011)Google Scholar
  14. 14.
    Kesteren, A.V.: Cross-Origin Resource Sharing. W3C recommendation, W3C, January 2014.
  15. 15.
    Kulshrestha, A.: An Empirical study of HTML5 Websockets and their Cross Browser behavior for Mixed Content and Untrusted Certificates. International Journal of Computer Applications 82(6), 13–18 (2013)CrossRefGoogle Scholar
  16. 16.
    Kuppan, L., Saindane, M.: JS Recon (2010).
  17. 17.
    Linux Programmer’s Manual (2015).
  18. 18.
    A Network Stress Testing Application (2014).
  19. 19.
    Matthews, N.: jsMiner (2011).
  20. 20.
    Matthews, N.: Ravan: JavaScript Distributed Computing System (BETA) (2012).
  21. 21.
    Melnikov, A.: The websocket protocol. RFC 6455, RFC Editor, December 2011.
  22. 22.
    Rice, A.: Chromium Code Reviews Issue 835623003: Add a delay when unlockingWebSocket endpoints. (Closed) (2015).
  23. 23.
    Rieck, K., Krueger, T., Dewald, A.: Cujo: efficient detection and prevention of drive-by-download attacks. In: Proceedings of the 26th Annual Computer Security Applications Conference, ACSAC 2010, pp. 31–39. ACM, Austin (2010)Google Scholar
  24. 24.
    Schütt, K., Kloft, M., Bikadorov, A., Rieck, K.: Early detection of malicious behavior in JavaScript code. In: Proceedings of the 5th ACM Workshop on Security and Artificial Intelligence, AISec 2012, pp. 15–24. ACM, Raileigh (2012)Google Scholar
  25. 25.
    Web Server Usage Statistics (2015).
  26. 26.
  27. 27.
    Internet activists blame China for cyber-attack that brought down GitHub (2015).
  28. 28.

Copyright information

© Institute for Computer Sciences, Social Informatics and Telecommunications Engineering 2015

Authors and Affiliations

  1. 1.Institute of IT-Security and Security LawUniversity of PassauPassauGermany

Personalised recommendations