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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PMSoftware | Simple Web Server | 2.2 rc2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 2 modules
-
Simple Web Server Connection Header Buffer Overflow
exploit/windows/http/sws_connection_bof
-
S.O.M.P.L 1.0 Player Buffer Overflow
exploit/windows/fileformat/somplplayer_m3u
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/windows/http/sws_connection_bof.rb exploit
- https://www.exploit-db.com/exploits/19937 exploit
- https://www.exploit-db.com/exploits/20028 exploit
- http://ghostinthelab.wordpress.com/2012/07/19/simplewebserver-2-2-rc2-remote-buffer-overflow-exploit/ technical-description exploit
- http://www.pmx.it/software/sws.asp product
- https://www.vulncheck.com/advisories/simple-web-server-connection-header-buffer-overflow third-party-advisory