[UNIX] Cray UNICOS NQSD Format String Security Vulnerability

From: support@securiteam.com
Date: 12/03/01


From: support@securiteam.com
To: list@securiteam.com
Date: Mon,  3 Dec 2001 22:22:43 +0100 (CET)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Cray UNICOS NQSD Format String Security Vulnerability
------------------------------------------------------------------------

SUMMARY

A security vulnerability in Cray's UNICOS allows local root compromise of
any computer running the NQS (Network Queuing System) daemon.

DETAILS

Vulnerable systems:
All versions of Cray's UNIX Cray Operating System running NQSD Possibly
NQSD running in IBM and Solaris environments as well. Confirmed on Cray
T3E running UNICOS/mk revision 2.0.5.54

The NQS, or Network Queuing System, is a popular batch software processor
that is used to perform job control and leveraging in supercomputing
environments that require heavy symmetric multi processing. The
controlling daemon, which looks like it appears below

   37152 ? 0:00 nqsdaemon
   57415 ? 0:00 nqsdaemon

That runs as root in order to properly schedule and timeslice batched
process. The Mickey Mouse Hacking Squadron has discovered a format bug
vulnerability by which any unprivileged user on a system running NQS can
gain root access. This involves creating a batch with a name that contains
special formatting characters, which is processed by an unsafe function
taking a variable argument list. In order to exploit this vulnerability,
the user must be able to submit the job with qsub in such a way that it
triggers this vulnerability.

Description:
The qsub command submits a file that contains a shell script as a batch
request to the Network Queuing System (NQS). For an introduction to the
use of NQS, see the Network Queuing System (NQS)User's Guide, publication
SG-2105.

This vulnerability has been exploited successfully by the MMHS in a RISC
environment, using ALPHA processors, in a way similar to bugs exploited
successfully on Digital UNIX by "SeungHyun Seo", also posted to the
Bugtraq mailing list. The exploitation on vectorized processors, such as
the Y-MP series, has proved to be much more difficult, especially due to
large 64 bit addressing and a large number of NULL bytes in the process
address space. This should also prove easy to exploit on PowerPC and SPARC
environments.

ADDITIONAL INFORMATION

Reference:
"Format String Attack on alpha system" Seunghyun Seo (truefinder),
2001/09/24
 <http://www.securiteam.com/unixfocus/6V0070K2UW.html>
http://www.securiteam.com/unixfocus/6V0070K2UW.html or
<http://cert.uni-stuttgart.de/archive/bugtraq/2001/09/msg00264.html>
http://cert.uni-stuttgart.de/archive/bugtraq/2001/09/msg00264.html

The information has been provided by <mailto:mmsquadron@hotmail.com>
Mickey Mouse.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #165
    ... Tenable Security ... distribute, manage, and communicate vulnerability and intrusion detection ... Microsoft Internet Explorer MHTML Forced File Execution Vuln... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #174
    ... This issue sponsored by: Tenable Network Security ... the worlds only 100% passive vulnerability ... MICROSOFT VULNERABILITY SUMMARY ... Novell Netware Enterprise Web Server Multiple Vulnerabilitie... ...
    (Focus-Microsoft)
  • [NT] Cumulative Security Update for Internet Explorer (MS04-038)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Get your security news from a reliable source. ... CSS Heap Memory Corruption Vulnerability, ... Microsoft Windows NT Server 4.0 Terminal Server Edition Service Pack 6 ...
    (Securiteam)
  • SecurityFocus Microsoft Newsletter #171
    ... Better Management for Network Security ... GoodTech Telnet Server Remote Denial Of Service Vulnerabilit... ... ASPApp PortalAPP Remote User Database Access Vulnerability ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #160
    ... MICROSOFT VULNERABILITY SUMMARY ... Geeklog Forgot Password SQL Injection Vulnerability ... Atrium Software Mercur Mailserver IMAP AUTH Remote Buffer Ov... ... Sun Java Virtual Machine Slash Path Security Model Circumven... ...
    (Focus-Microsoft)