Varnish 2.0.6 - 'Terminal Escape Sequence in Logs' Command Injection

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1118898 漏洞类型 Input Validation Error
发布时间 2010-01-11 更新时间 2010-01-11
CVE编号 CVE-2009-4488 CNNVD-ID N/A
漏洞平台 Multiple CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/33498
https://www.securityfocus.com/bid/37713
|漏洞详情
** DISPUTED ** Varnish 2.0.6 writes data to a log file without sanitizing non-printable characters, which might allow remote attackers to modify a window's title, or possibly execute arbitrary commands or overwrite files, via an HTTP request containing an escape sequence for a terminal emulator. NOTE: the vendor disputes the significance of this report, stating that "This is not a security problem in Varnish or any other piece of software which writes a logfile. The real problem is the mistaken belief that you can cat(1) a random logfile to your terminal safely."
|漏洞EXP
source: http://www.securityfocus.com/bid/37713/info

Varnish is prone to a command-injection vulnerability because it fails to adequately sanitize user-supplied input in logfiles.

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

Varnish 2.0.6 is vulnerable; other versions may also be affected. 

The following example is available:

echo -en "GET /\x1b]2;owned?\x07\x0a\x0d\x0a\x0d" > payload
nc localhost 80 < payload
|受影响的产品
Varnish Varnish 2.0.6
|参考资料
resource:Exploit
hyperlink:http://www.securityfocus.com/archive/1/archive/1/508830/100/0/threaded
resource:Exploit
hyperlink:http://www.securityfocus.com/bid/37713
resource:Exploit
hyperlink:http://www.ush.it/team/ush/hack_httpd_escape/adv.txt