### [CVE-2012-10053](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-10053) ![](https://img.shields.io/static/v1?label=Product&message=Simple%20Web%20Server&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=2.2%20rc2%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-121%20Stack-based%20Buffer%20Overflow&color=brightgreen) ### 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. ### POC #### Reference - http://ghostinthelab.wordpress.com/2012/07/19/simplewebserver-2-2-rc2-remote-buffer-overflow-exploit/ - https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/windows/http/sws_connection_bof.rb - https://www.exploit-db.com/exploits/19937 - https://www.exploit-db.com/exploits/20028 - https://www.vulncheck.com/advisories/simple-web-server-connection-header-buffer-overflow #### Github - https://github.com/fkie-cad/nvd-json-data-feeds