J-Security Center

Title: Multiple Vendor UNIX adduser/useradd Vulnerability

Severity: LOW

Description:

In some UNIX environments, there may exist a problem which could allow a user to gain elevated priviledges. This problem manifests in UNIX systems with userless groups.

The problem exists in UNIX User Management Utilities driven by a secondary interface that operates with priviledge sufficient to add users. In UNIX implementations that add users with groups of their own, it is possible for a poorly designed secondary interface to use a program, such as useradd or adduser, and place the user in a elevated priviledge group that doesn't have a user in the passwd file.

Such a scenario could include a web management interface that allows users to add their own accounts, and provide the user intentional access via shell or unintentional access by another means such as web or ftp. The user would then have to select a username for which a corresponding group exists (but no user), such as 'kmem'. When useradd or adduser adds the user, they will be assigned the groupid for the corresponding group if it exists (such as kmem for example). This is only possible if user 'k mem' does not exist beforehand and the adduser/useradd tools set groupid to that of the group with the same name of the new user.

This problem could lead to an elevation of priviledges by a malicious user.

Affected Products:

  • OpenBSD OpenBSD 2.6.0
  • OpenBSD OpenBSD 2.7.0
  • OpenBSD OpenBSD 2.8.0
  • RedHat Linux 5.2.0 alpha
  • RedHat Linux 5.2.0 i386
  • RedHat Linux 5.2.0 sparc
  • RedHat Linux 6.0.0
  • RedHat Linux 6.0.0 alpha
  • RedHat Linux 6.0.0 sparc
  • RedHat Linux 6.1.0 alpha
  • RedHat Linux 6.1.0 i386
  • RedHat Linux 6.1.0 sparc

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.