LinuxSecurity.com
Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Welcome!
Sign up!
EnGarde Community
Login
Polls
What is the most important Linux security technology?
 
Advisories
Community
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
SELinux
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Securitydistro
Latest Newsletters
Linux Security Week: October 20th, 2014
Linux Advisory Watch: October 17th, 2014
Subscribe
LinuxSecurity Newsletters
E-mail:
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

  
FreeBSD-SA-96:11:security compromise from man page utility Print E-mail
User Rating:      How can I rate this item?
Posted by LinuxSecurity.com Team   
FreeBSD The man program is setuid to the "man" user. By executing a particular sequence of commands, an unprivileged local user may gain the access privileges of the "man" user. However, root access could be obtained with further work.
-----BEGIN PGP SIGNED MESSAGE-----

=============================================================================
FreeBSD-SA-96:11                                            Security Advisory
Revised: Wed May 22 00:11:46 PDT 1996                           FreeBSD, Inc.

Topic:          security compromise from man page utility

Category:       core
Module:         man
Announced:      1996-05-21
Affects:        FreeBSD 2.0, 2.0.5, 2.1, 2.1-stable, and 2.2-current
Corrected:      2.1-stable and 2.2-current as of 1996-05-21
FreeBSD only:   yes

Patches:        ftp://freebsd.org/pub/CERT/patches/SA-96:11/

=============================================================================

I.   Background    

     FreeBSD replaced the standard BSD manual page reader with
     code developed by a third party to support compressed manual
     pages.  A bug was found in the manual page reader which can
     allow an unprivileged local user to compromise system security
     in a limited fashion.  This problem is present in all source
     code and binary distributions of FreeBSD version 2.x released
     before 1996-05-21.


II.  Problem Description

     The man program is setuid to the "man" user.  By executing a
     particular sequence of commands, an unprivileged local user
     may gain the access privileges of the "man" user.  However,
     root access could be obtained with further work.


III. Impact

     The "man" user has no particular special privileges, it is
     the owner of the /usr/share/man/cat[0-9] directory hierarchy.
     Unformatted system manual pages are owned by the "bin" user.
     However, further exploits once "man" is obtained could
     possibly allow a local user to obtain unlimited access via
     a trojan horse.

     This vulnerability can only be exploited by users with a valid
     account on the local system.


IV. Workaround

     One may simply disable the setuid bit on the /usr/bin/man file.
     This will disable caching of formatted manual pages, no system
     functionality will be lost.  This workaround will suffice for
     all versions of FreeBSD affected by this problem.
     
     As root, execute the command:

         # chmod u-s /usr/bin/man

     then verify that the setuid permissions of the files have been
     removed.  The permissions array should read "-r-xr-xr-x" as
     shown here:

         # ls -l /usr/bin/man
         -r-xr-xr-x  1 man  bin  28672 May 19 20:38 /usr/bin/man

     We also suggest applying the following patch to the source
     distribution so that the man program will not be installed
     setuid man should you rebuild from sources:

    *** /usr/src/gnu/usr.bin/man/man/Makefile   Sun Feb 25 13:39:52 1996
    --- /usr/src/gnu/usr.bin/man/man/Makefile   Wed May 22 00:13:05 1996
    ***************
    *** 1,7 ****
      PROG=     man
      SRCS=     man.c manpath.c glob.c
    - BINMODE=4555
    - BINOWN=   man
      
      .if exists(${.CURDIR}/../lib/obj)
      LDADD=  -L${.CURDIR}/../lib/obj -lman
    --- 1,5 ----

V. Solution

     The FreeBSD team is in the process of rewriting portions of
     the manual program to avoid this and similar vulnerabilities.
     This security advisory will be updated when a complete solution
     is available.


=============================================================================
FreeBSD, Inc.

Web Site:                       http://www.freebsd.org/
Confidential contacts:          security-officer@freebsd.org
PGP Key:                        ftp://freebsd.org/pub/CERT/public_key.asc
Security notifications:         security-notifications@freebsd.org
Security public discussion:     security@freebsd.org

Notice: Any patches in this document may not apply cleanly due to
        modifications caused by digital signature or mailer software.
        Please reference the URL listed at the top of this document
        for original copies of all patches if necessary.
=============================================================================

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMaLAllUuHi5z0oilAQFblwP/atY+PmOBakOsKhWywcPu5LvjaAAH5m8B
3KGrtM/CBGEeFvk4qth8aeoTxLfhNtwrsvvnAAKFvqWbdHNU8CnlRgPKbzpyq+cs
JB5NAaUYiCI9/87qRajpbjNLxJuDiCOUKcuvU/lgKLvr4oZ86ZVSu5uPieVXaJ8L
RVKCjkRnUw8=
=IMYL
-----END PGP SIGNATURE-----
 
< Prev   Next >
    
Partner

 

Latest Features
Peter Smith Releases Linux Network Security Online
Securing a Linux Web Server
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Weekend Edition
The Hacktivist as Angry Young Man
The Hacker Wars Hits NYC
CAINE Linux Distribution Helps Investigators With Forensic Analysis
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2014 Guardian Digital, Inc. All rights reserved.