J-Security Center

Title: CHUID Upload Directory Escaping File Owner Changing Vulnerability

Severity: HIGH

Description:

chuid is a freely available, open source user id changing utility. It was written and is maintained by Scott Parish. It is designed for use on the Linux operating system.

A problem with chuid could make it possible for a remote user to change the ownership of arbitrary files. The problem is in the handling of the dot-dot-slash directive.

The chuid utility is used to change the ownership of files uploaded to a server. Files uploaded to a predesignated directory can be changed to a specified user or group membership.

Due to insufficient sanitization of user input, it is possible for a remote user to pass the name of a file outside of the predesignated ownership changing directory. This could allow a remote user to change the ownership or group membership of a restricted or privileged file.

This problem makes it possible for a remote user to change the ownership and/or group membership of an arbitrary file, and could lead to elevated privileges.

Affected Products:

  • chuid chuid 1.0.0
  • chuid chuid 1.1.0
  • chuid chuid 1.2.0

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.