CVE-2009-4492
WEBrick 1.3.1 - Terminal Emulator Escape Sequence Injection via HTTP Request
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2009-4492. PoCs published by evilaliv3.
AI-analyzed exploit summary This exploit leverages a command injection vulnerability in Ruby WEBrick's logging mechanism by sending a crafted HTTP request containing escape sequences that execute arbitrary commands in the terminal. The example demonstrates launching an xterm with a reverse shell payload.
Description
WEBrick 1.3.1 in Ruby 1.8.6 through patchlevel 383, 1.8.7 through patchlevel 248, 1.8.8dev, 1.9.1 through patchlevel 376, and 1.9.2dev 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.
Exploits (1)
This exploit leverages a command injection vulnerability in Ruby WEBrick's logging mechanism by sending a crafted HTTP request containing escape sequences that execute arbitrary commands in the terminal. The example demonstrates launching an xterm with a reverse shell payload.