Security Vulnerability Due to Buffer Overflow in The format(1M) Command May Allow Privilege Elevation For Certain RBAC Profiles



Category :Security
Release Phase :Resolved
Product :Solaris 9 Operating System
Solaris 10 Operating System
Solaris 8 Operating System  
Bug Id :6296988  
Date of Resolved Release :21-AUG-2006 


Impact

Due to a security vulnerability in the format(1M) command, it may be possible for a user who has been granted the "File System Management" RBAC profile (or any custom profile which would allow the user to run the format(1M) command with root privileges) to execute arbitrary code with the privileges of the root user.


Contributing Factors

This issue can occur in the following releases:

SPARC Platform

x86 Platform

Note: This issue is only present when at least one non-root user on the system has been granted a profile allowing them to run the format(1M) command with root privileges, for example the "File System Management" profile. The assignment of profiles to users is configured in the user_attr(4) database. If the host is configured to only use a local file for this database, user's with the "File System Management" profile could be identified with a command such as the following:

    $ grep 'File System Management' /etc/user_attr

For hosts which are configured via nsswitch.conf(4) to use a source other than a local file for the user_attr(4) database, please refer to the relevant documentation for that source (for example, ldap(1), ypfiles(4) or nis+(1)).

To determine if an individual user has been granted the profile, the profiles(1) command can be used:

    $ profiles testuser | grep 'File System Management'

The above command will produce no output if the user has not been granted the profile.

If the host is configured to only use a local file for the exec_attr(4) database, a command similar to the following can be run to determine which profiles grant privileged access to the format(1M) utility:

    $ grep format /etc/security/exec_attr
    File System Management:suser:cmd:::/usr/sbin/format:euid=0

For hosts which are configured via nsswitch.conf(4) to use a source other than a local file for the exec_attr(4) database, please refer to the relevant documentation for that source (for example, ypfiles(4) or nis+(1)).


Symptoms

There are no predictable symptoms that would indicate the described issue has been exploited.


Workaround

The issue described in this Sun Alert only affects users who have been granted a profile which gives privileged access to the format(1M) command, such as the "File System Management" profile. To workaround this issue until patches can be applied, remove references to the format command from the exec_attr(4) database. This will result in those users no longer being granted privileged access to the format command.

For example, if the host is configured to only use a local file for the exec_attr(4) database, a "#" symbol can be inserted at the beginning of lines in the "/etc/security/exec_attr" file which reference the "format" command:

    $ grep /usr/sbin/format /etc/security/exec_attr
    #File System Management:suser:cmd:::/usr/sbin/format:euid=0

For hosts which are configured via nsswitch.conf(4) to use a source other than a local file for the exec_attr(4) database, please refer to the relevant documentation for that source (for example, ypfiles(4) or nis+(1)).


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 : 200476
Article Type : Sun Alert
Last reviewed : 2006-11-07
Audience : PUBLIC
Keywords :
Provide feedback  (help)
Page Tools
»  Print This Page
»  Email This Article
»  Bookmark This Article