home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / general / cert0036.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  4.5 KB  |  123 lines

  1.  
  2. -----BEGIN PGP SIGNED MESSAGE-----
  3.  
  4. ===========================================================================
  5. CA-91:23                       CERT Advisory
  6.                  December 18, 1991
  7.             Hewlett Packard/Apollo Domain/OS crp Vulnerability
  8. - ---------------------------------------------------------------------------
  9.  
  10. The Computer Emergency Response Team/Coordination Center (CERT/CC)
  11. has received information concerning a vulnerability in the crp facility
  12. in Hewlett Packard/Apollo Domain/OS.  This vulnerability is present on all
  13. HP/Apollo Domain/OS SR10 systems up through SR10.3.  Patches that address
  14. this problem will be available in the SR10.3 patch tape (~Feb 92) and in
  15. the SR10.4 software release.  Contact your local sales office for
  16. more information.
  17.  
  18. - ---------------------------------------------------------------------------
  19.  
  20. I.   Description
  21.  
  22.      There is a security problem with the /usr/apollo/bin/crp facility.
  23.      A user who is not running crp is not vulnerable to this problem.
  24.  
  25. II.  Impact
  26.  
  27.      A person at a remote or local site can obtain the privileges of
  28.      the user who is running crp.
  29.  
  30. III. Workaround
  31.  
  32.      The suggested workaround is to disable two system calls that are
  33.      made by /usr/apollo/bin/crp.  The following steps should be
  34.      executed by root or another appropriate userid that has the
  35.      privilege to write in the directories involved.
  36.  
  37.      1.    Create a file "crplib.c" containing the four-line C program:
  38.  
  39.     extern void pad_$dm_cmd(void);
  40.     void pad_$dm_cmd() { }
  41.     extern void pad_$def_pfk(void);
  42.     void pad_$def_pfk() { }
  43.  
  44.      2.    Compile this program using '-pic':
  45.  
  46.     (AEGIS)  /com/cc crplib.c -pic
  47.     (UNIX)   /bin/cc -c crplib.c -W0,-pic
  48.     
  49.      3.    Copy the result to somewhere accessible to all users (/lib/crplib
  50.     is recommended).
  51.     
  52.     (AEGIS)  /com/cpf crplib.bin /lib/crplib
  53.     (AEGIS)  /com/edacl -p root prwx -g wheel rx -w rx /lib/crplib
  54.  
  55.     (UNIX)   /bin/cp crplib.o /lib/crplib
  56.     (UNIX)   /bin/chmod 755 /lib/crplib
  57.     
  58.      4.    a) Ensure that all users do an 'inlib' of that file before running crp.
  59.     One way to ensure this would be to replace the /usr/apollo/bin/crp
  60.     command by a shell script that does the inlib.  Doing this step
  61.     will force crp to use the null functions defined in step 1 above.
  62.     
  63.     (AEGIS)  /com/chn /usr/apollo/bin/crp crp.orig
  64.     (UNIX)   /bin/mv /usr/apollo/bin/crp /usr/apollo/bin/crp.orig
  65.     
  66.     b) Create the file /usr/apollo/bin/crp containing the shell script:
  67.     
  68.     (AEGIS)    #!/com/sh
  69.         /com/sh -c inlib /lib/crplib ';' /usr/apollo/bin/crp.orig ^*
  70.  
  71.     (UNIX)    #!/bin/sh
  72.         inlib /lib/crplib
  73.         exec /usr/apollo/bin/crp.orig "$@"
  74.     
  75.     c) Make this script executable.
  76.  
  77.     (AEGIS)    /com/edacl -p root prwx -g wheel rx -w rx /usr/apollo/bin/crp
  78.     (UNIX)    /bin/chmod 755 /usr/apollo/bin/crp
  79.  
  80.      ---------------
  81.  
  82.      NOTE: This workaround will prevent crp from making use of the two
  83.      system calls; and therefore, it may affect the functionality of various
  84.      software programs since they will be unable to define programmable
  85.      function keys, create new windows on the client node, or execute
  86.      background processes using the Display Manager interface.
  87.  
  88. - ---------------------------------------------------------------------------
  89. The CERT/CC wishes to thank Paul Szabo of the University of Sydney for
  90. bringing this problem to our attention and providing a workaround.
  91. We would also like to thank Jim Richardson of the University of Sydney for
  92. his assistance and Hewlett Packard/Apollo for their timely response to the
  93. report of this vulnerability.
  94. - ---------------------------------------------------------------------------
  95.  
  96. If you believe that your system has been compromised, contact CERT/CC via
  97. telephone or e-mail.
  98.  
  99. Internet E-mail: cert@cert.org
  100. Telephone: 412-268-7090 (24-hour hotline)
  101.            CERT/CC personnel answer 7:30a.m.-6:00p.m. EST(GMT-5)/EDT(GMT-4),
  102.            on call for emergencies during other hours.
  103.  
  104. Computer Emergency Response Team/Coordination Center (CERT/CC)
  105. Software Engineering Institute
  106. Carnegie Mellon University
  107. Pittsburgh, PA 15213-3890
  108.  
  109. Past advisories and other information related to computer security are
  110. available for anonymous ftp from the cert.org (192.88.209.5) system.
  111.  
  112.  
  113. -----BEGIN PGP SIGNATURE-----
  114. Version: 2.6.2
  115.  
  116. iQCVAwUBMaMw2nVP+x0t4w7BAQHaOwQAkQip875GWqZPEkS65wBKhMn0D6kcepcp
  117. fhcngpYaKLHoqIeLE7OzKxIxLrUzyS4CjBx6VIfVotVynaUYTKmV5y4AmAOUDeKv
  118. Nzi+bwXQeHb716cIqzwA0Xw+dafos5RmqN8q7ufQoxWBdRJ4yBK98oR0XHHGPp11
  119. 9qOe7Hg9P7A=
  120. =ZwwX
  121. -----END PGP SIGNATURE-----
  122.  
  123.