Description
Simple Web Server 2.2 rc2 contains a stack-based buffer overflow vulnerability in its handling of the Connection HTTP header. When a remote attacker sends an overly long string in this header, the server uses vsprintf() without proper bounds checking, leading to a buffer overflow on the stack. This flaw allows remote attackers to execute arbitrary code with the privileges of the web server process. The vulnerability is triggered before authentication.
Problem types
CWE-121 Stack-based Buffer Overflow
Product status
2.2 rc2
Credits
mr.pr0n
References
raw.githubusercontent.com/...dows/http/sws_connection_bof.rb
www.exploit-db.com/exploits/19937
www.exploit-db.com/exploits/20028
raw.githubusercontent.com/...dows/http/sws_connection_bof.rb
www.exploit-db.com/exploits/19937
www.exploit-db.com/exploits/20028
ghostinthelab.wordpress.com/...mote-buffer-overflow-exploit/
www.pmx.it/software/sws.asp
www.vulncheck.com/...erver-connection-header-buffer-overflow