__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN pkgadd(1M) May Set Incorrect Permissions [Sun Alert ID: 102513] August 28, 2006 16:00 GMT Number Q-301 ______________________________________________________________________________ PROBLEM: If a patch or package is installed which contains a pkgmap(4) with a "?" for the mode field of a file or directory onto a Solaris 10 system, pkgadd(1M) may incorrectly set the permissions of the corresponding file or directory to either 755 or 777. PLATFORM: Solaris 10 Operating System DAMAGE: The permissions of 777 are a security risk since when applied to a file any user is then able to modify that file and when applied to a directory all files within that directory can modified by any user. SOLUTION: Apply current patches. ______________________________________________________________________________ VULNERABILITY The risk is LOW. Any user may be able to modify a file or an ASSESSMENT: entire directory. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/q-301.shtml ORIGINAL BULLETIN: http://www.sunsolve.sun.com/search/document.do?assetkey=1-26-102513-1&searchclause=%22category:security%22%2420%22availability,%2420security%22%2420category:security ______________________________________________________________________________ [***** Start Sun Alert ID: 102513 *****] Document Audience: PUBLIC Document ID: 102513 Title: pkgadd(1M) May Set Incorrect Permissions if The pkgmap(4) File Contains a "?" in The "Mode" Field Copyright Notice: Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved Update Date: Fri Aug 25 00:00:00 MDT 2006 Status Issued Description Top Sun(sm) Alert Notification * Sun Alert ID: 102513 * Synopsis: pkgadd(1M) May Set Incorrect Permissions if The pkgmap(4) File Contains a "?" in The "Mode" Field * Category: Security * Product: Solaris 10 Operating System * BugIDs: 6380672 * Avoidance: Patch * State: Resolved * Date Released: 25-Aug-2006 * Date Closed: 25-Aug-2006 * Date Modified: 1. Impact If a patch or package is installed which contains a pkgmap(4) with a "?" for the mode field of a file or directory onto a Solaris 10 system, pkgadd(1M) may incorrectly set the permissions of the corresponding file or directory to either 755 or 777. The permissions of 777 are a security risk since when applied to a file any user is then able to modify that file and when applied to a directory all files within that directory can modified by any user. The expected behavior is: 1. Default permissions (644 for files, and 755 for directories) when the file is not present in the system. 2. Existing file permissions unchanged, if the file already exists. 2. Contributing Factors This issue can occur in the following releases: SPARC Platform * Solaris 10 without patch 119254-26 x86 Platform * Solaris 10 without patch 119255-26 Note 1: Solaris 8 and Solaris 9 are not impacted by this issue. Note 2: This issue only occurs when the package being installed includes a file or directory that meets the following criterion: 1. The pkgmap(4) entry for the file or directory contains a "?" in the "mode" field. The following two pkgmap(4) entries meet the above criterion: 1 d none /var/tmp/h ? ? ? 6092 63929 894644668 1 f none /var/tmp/xyz root other ? 6092 63929 894644668 3. Symptoms When adding a package whose pkgmap(4) has a "?" entry in the file permissions field, then pkgadd(1M) prompts: Do you want to install these as setuid/setgid files [y,n,?,q] Selecting "yes" will result in the file being installed with permissions set to 755. Otherwise, it will be installed with permissions set to 777. Solution Summary Top 4. Relief/Workaround There is no workaround. Please see the "Resolution" section below. 5. Resolution This issue is addressed in the following releases: SPARC Platform * Solaris 10 with patch 119254-26 or later x86 Platform * Solaris 10 with patch 119255-26 or later [***** End Sun Alert ID: 102513 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Sun for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) Q-291: Buffer Overflow in the format(1M) Command Q-292: XFree86 Security Update Q-293: Kernel Security Update Q-294: Multiple Security Vulnerabilities in Mozilla 1.4 and 1.7 Q-295: ImageMagick Security Update Q-296: HP OpenView Storage Data Protector Q-297: Cisco Unintentional Password Modification Vulnerability in Cisco Firewall Products Q-298: Cisco VPN 3000 Concentrator FTP Management Vulnerabilities Q-299: VMware ESX Server 2.5.3 Upgrade Patch 2 Q-300: Security Vulnerability in the Sun Java System Content Delivery Server