Security Vulnerability With The "/usr/ucb/ps" Command



Category :Security
Release Phase :Resolved
Product :Solaris 9 Operating System
Solaris 8 Operating System  
Bug Id :4798073  
Date of Resolved Release :27-MAR-2006 


Impact

A security vulnerability in the "/usr/ucb/ps" (see ps(1B)) command may allow unprivileged local users the ability to see environment variables and their values for processes which belong to other users.


Contributing Factors

This issue can occur in the following releases:

SPARC Platform

x86 Platform

Note 1: Solaris 10 is not affected by this issue.

Note 2: The ps(1m) command is used for reporting process status. The full path for this command is "/usr/bin/ps". In addition, there is "/usr/ucb/ps" which is documented in the ps(1b) manual page. Only the "/usr/ucb/ps" command is affected by the vulnerability described in this Sun Alert.

In general users will use the "/usr/bin/ps" version as most will not have the directory "/usr/ucb" in their command search path (see the appropriate PATH section of relevant shell manual pages).


Symptoms

As an unprivileged user, running the "/usr/ucb/ps axe" command shows all processes, and with the "e" flags, it also includes their environment.

    $ /usr/ucb/ps axe
    PID TT       S  TIME COMMAND
    ...
    53 ?        S  0:00 /usr/lib/devfsadm/devfseventd LD_LIBRARY_PATH= PATH=/sbin:
    /usr/sbin:/usr/bin TZ=GB-Eire _INIT_PREV_LEVEL=0
    ...

In the example above we can see a root owned daemon, along with its environment variables and their values.


Workaround

To work around the described issue, remove the set-id bit from "/usr/ucb/ps".


Resolution

This issue is addressed in the following releases:

SPARC Platform

x86 Platform






Attachments
This solution has no attachment

 
 
Login Required

You must login and have a valid contract to access Sun's Premium content which includes:

  • Sun Alerts
  • Bugs
  • Patches
  • Solutions
  • White Papers
  • Documentation
  • Support Knowledge

Login Required

You must login and have a valid contract to access Sun's contracted features

Access Legend:

(Login to access)   Sun Contracted Content
(Login to access)   Sun Contracted Feature

Please make use of SunSolve Feedback application by selecting the floating [+] to provide feedback about this specific document.

Search

Article Details
Article ID : 200448
Article Type : Sun Alert
Last reviewed : 2006-04-21
Audience : PUBLIC
Keywords :
Provide feedback  (help)
Page Tools
»  Print This Page
»  Email This Article
»  Bookmark This Article