J-Security Center

Title: RedHat screen pty(7) Vulnerability

Severity: MODERATE

Description:

The version of screen which ships with Redhat Linux 6.1 sets incorrect permissions on the pty (pseudo-terminal driver). The pty driver provides support for a pair of devices collectively known as a pseudo-terminal. The two devices comprising a pseudo-terminal are known as a controller and a slave.

Instead of having a hardware interface and associated hardware that supports the terminal functions, the functions are implemented by another process manipulating the controller device of the pseudo-terminal.

These pty's are represented as a regular file on the UNIX filesystem. As a result of poor permission settings, these pty's are world writable thus allowing other users to hijack other users pty's and execute commands as the user whose pty has been stolen. This can result in root privileges if 'root' is running the vulnerable version of screen.

Affected Products:

  • RedHat Linux 6.1.0 i386

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.