Welcome! Log In Create A New Profile

Advanced

Simple web socket DDOS

Posted by maxisme 
Simple web socket DDOS
July 29, 2018 08:52AM
When running:

[CODE]
websocket-bench -a 2500 -c 200 wss://s.example.it
[/CODE]
from: https://github.com/M6Web/websocket-bench

On my NGINX server running:

[CODE]
upstream sock {
server 127.0.0.1:1203 fail_timeout=1s;
}

limit_req_zone $binary_remote_addr zone=mylimit:1m rate=1r/s;

server {
listen 443 ssl;

server_name s.example.it;

ssl on;
ssl_certificate /etc/nginx/certs/s.example.it/fullchain.pem;
ssl_certificate_key /etc/nginx/certs/s.example.it/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/nginx/certs/dhparam.pem;


location / {
limit_req zone=mylimit;
proxy_redirect off;
proxy_next_upstream error timeout http_502;
proxy_pass http://sock;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 7d;
}
}
[/CODE]

My server completely crashes and an NGINX process reaches 100% cpu. I have no idea what is going on and this is a really terrifying vulnerability!



Edited 3 time(s). Last edit at 07/29/2018 08:55AM by maxisme.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready