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

  1.  
  2. -----BEGIN PGP SIGNED MESSAGE-----
  3.  
  4. =============================================================================
  5. CA-93:17                         CERT Advisory
  6.                                November 11, 1993
  7.                           xterm Logging Vulnerability
  8. - -----------------------------------------------------------------------------
  9.  
  10. The CERT Coordination Center is working on eliminating a vulnerability in
  11. xterm.  This vulnerability potentially affects all systems running xterm
  12. with the setuid or setgid bit set.  This vulnerability has been found in
  13. X Version 11, Release 5 (X11R5) and earlier versions of X11.
  14.  
  15. CERT is working with the vendor community to address this vulnerability.
  16.  
  17. - -----------------------------------------------------------------------------
  18.  
  19. I.   Description
  20.  
  21.      A vulnerability in the logging function of xterm exists in many
  22.      versions of xterm that operate as a setuid or setgid process.  The
  23.      vulnerability allows local users to create files or modify any
  24.      existing files.
  25.  
  26.      If the setuid or setgid privilege bit is not set on the xterm program,
  27.      the vulnerability cannot be exploited.
  28.  
  29.      It is possible that the xterm on your system does not allow
  30.      logging.  In this case, the vulnerability cannot be exploited.  To
  31.      determine if logging is enabled, run xterm with the "-l" option.  If
  32.      an "XtermLog.axxxx" file is created in the current directory, xterm
  33.      supports logging.  You can also check the output of "xterm -help"
  34.      to see whether the "-l" option is described as "not supported".
  35.  
  36.      Another way to determine if logging is available is to look for
  37.      the "Log to File" item in the Main Options menu (press Control mouse
  38.      button 1).  If the X Consortium's public patch has been installed
  39.      as distributed,  the option "Log to File" should not appear in the
  40.      menu.
  41.  
  42.  
  43. II.  Impact
  44.  
  45.      This vulnerability allows anyone with access to a user account
  46.      to gain root access.
  47.  
  48.  
  49. III. Solutions
  50.  
  51.      All of the following solutions require that a new version of xterm be
  52.      installed.  When installing the new xterm, it is important either to
  53.      remove the old version of xterm or to clear the setuid and setgid
  54.      bits from the old xterm.
  55.  
  56.      CERT suggests one of the following solutions.
  57.  
  58.      A.  Install vendor supplied patch if available.  CERT is hopeful
  59.          that patches will be forthcoming.  We will be maintaining a
  60.          status file, xterm-patch-status, and we will add patch availability
  61.          information to this file as it becomes known.  The file is
  62.          available via anonymous FTP from info.cert.org.  The name of
  63.          the file is pub/cert_advisories/xterm-patch-status.  A current
  64.          version of this file is appended to this Advisory.
  65.  
  66.          For more up-to-date information, contact the vendor.
  67.  
  68.      B.  If your site is using the X Consortium's X11R5, install the
  69.          public patch #26.  This patch is available via anonymous FTP
  70.          from ftp.x.org as the file /pub/R5/fixes/fix-26.  Install all
  71.          patch files up to and including fix-26.
  72.  
  73.          By default, the patch disables logging. If you choose to enable
  74.          logging, a variation of the vulnerability still exists.
  75.  
  76.          Checksum information:
  77.  
  78.                 BSD Unix Sum:  19609 47
  79.  
  80.                 System V Sum:  51212 94
  81.  
  82.                 MD5 Checksum:  e270560b6e497a0a71881d4ff4db8c05
  83.  
  84.      C.  If your site is using an earlier version of the X Consortium's X11,
  85.          upgrade to X11R5.  Install all patches up to and including fix-26.
  86.  
  87.      D.  If you are unable to upgrade to the X Consortium's X11R5, modify
  88.          the xterm source code to remove the logging feature.  Familiarity
  89.          with X11 and its installation and configuration is recommended
  90.          before implementing these modifications.
  91.  
  92. - ---------------------------------------------------------------------------
  93. The CERT Coordination Center wishes to thank Stephen Gildea of the 
  94. X Consortium for his assistance in responding to this problem.
  95. - ---------------------------------------------------------------------------
  96.  
  97. If you believe that your system has been compromised, contact the CERT
  98. Coordination Center or your representative in Forum of Incident
  99. Response and Security Teams (FIRST).
  100.  
  101. Internet E-mail: cert@cert.org
  102. Telephone: 412-268-7090 (24-hour hotline)
  103.            CERT personnel answer 8:30 a.m.-5:00 p.m. EST(GMT-5)/EDT(GMT-4),
  104.            and are on call for emergencies during other hours.
  105.  
  106. CERT Coordination Center
  107. Software Engineering Institute
  108. Carnegie Mellon University
  109. Pittsburgh, PA 15213-3890
  110.  
  111. Past advisories, information about FIRST representatives, and other
  112. information related to computer security are available for anonymous
  113. FTP from info.cert.org.
  114.  
  115. ^L
  116.  
  117.  
  118.                             CERT Coordination Center
  119.                               xterm Vendor Status
  120.                                November 11, 1993
  121.  
  122.  
  123. This file is a supplement to the CERT Advisory CA-93:17 of November 11, 1993,
  124. and will be updated as additional information becomes available.
  125.  
  126. The following is vendor-supplied information.  The CERT Coordination Center
  127. will not formally review, evaluate, or endorse this information. For more
  128. up-to-date information, contact your vendor. 
  129.  
  130. It is important to note that the vendor of your xterm may not be the same
  131. as the vendor of your platform.  You should take care to correctly identify
  132. the vendor whose xterm you are using, so you can take the appropriate action.  
  133.  
  134.  
  135.  
  136.     Convex       Fixed in CXwindows V3.1.  Fixed in CXwindows V3.0
  137.            with TAC patch V3.0.131 applied.  The Convex Technical 
  138.                    Assistance Center is available for additional information
  139.                    at 800-952-0379.
  140.  
  141.     Cray       Fixed. Contact Cray for version/patch numbers.
  142.  
  143.         DEC/OSF    Attached is the information on the remedial images to
  144.                    address the xterm issue for ULTRIX V4.3 (VAX & RISC) 
  145.            and OSF/1 V1.2.   The solutions have been included in
  146.            ULTRIX V4.4 (VAX & RISC) and OSF/1 V1.3. 
  147.  
  148.                    Customers may call their normal Digital Multivendor 
  149.                    Customer Services Support Channel to obtain this kit.
  150.  
  151.                    ----------------------------------------------------------
  152.                    *ULTRIX,OSF/1] CSCPAT_4034 xterm Security Fix ECO Summary
  153.  
  154.  
  155.                    COPYRIGHT (c) 1988, 1993 by Digital Equipment Corporation.
  156.                    ALL RIGHTS RESERVED.
  157.  
  158.                    COMPONENT:  xterm
  159.  
  160.                    OP/SYS:     ULTRIX VAX and RISC, OSF/1
  161.  
  162.                    SOURCE:     Digital Customer Support Center
  163.  
  164.                    ECO INFORMATION:
  165.  
  166.                    CSCPAT Kit:                  CSCPAT_4034 V1.1
  167.                    CSCPAT Kit Size:             2152 blocks
  168.                    Engineering Cross Reference: SSRT93-E-0230, SSRT93-E-0231,
  169.                                                 SSRT93-E-232
  170.                    Kit Applies To:              ULTRIX V4.3, OSF/1 V1.2
  171.                    System Reboot Required:      NO
  172.                    ----------------------------------------------------------
  173.  
  174.         SCO        The current releases listed below are not vulnerable to
  175.                    this problem.  No xterm logging or scoterm logging is
  176.                    provided:
  177.  
  178.                    SCO Open Desktop Lite, Release 3.0
  179.                    SCO Open Desktop, Release 3.0
  180.                    SCO Open Server Network System, Release 3.0
  181.                    SCO Open Server Enterprise System, Release 3.0
  182.  
  183.                    Contact SCO for any further information.
  184.  
  185.     Sequent    Fixed. Contact Sequent for version/patch numbers.
  186.  
  187.     Sun        Sun's version of xterm has not been setuid root since at 
  188.                    least as far back as SunOS 4.1.1, and probably further.  
  189.                    An xterm that does not run setuid or setgid is not
  190.                    vulnerable to the xterm logging problem.
  191.  
  192.                    CAUTION: A Sun patch was issued on December 6, 1992 to give 
  193.                    system administrators the option of running xterm setuid 
  194.                    root.  Installing this patch will introduce the xterm
  195.                    logging vulnerability.  So check your xterm.  If either
  196.                    the setuid or setgid privilege bit is set on the xterm
  197.                    program, the vulnerability can be exploited.  Contact
  198.                    Sun for further information.
  199.  
  200.     X.org      (Publicly distributed version of X.)  You can patch X11R5
  201.            by applying all patches up to and including fix-26.  See
  202.            the associated CERT Advisory (CA-93:17) for further 
  203.                    information.
  204.  
  205.  
  206. -----BEGIN PGP SIGNATURE-----
  207. Version: 2.6.2
  208.  
  209. iQCVAwUBMaMxV3VP+x0t4w7BAQFawwP+JvcrKCW/OJhBHWGwWEq7ynUS3+OHezfO
  210. O8OGIk0ceZNUEFozrZ9f/RvXdS25mBOOziITDsAvmPxTxk2hW827UpKe1wtwzI4E
  211. FLlTnjPZplY2CRkMepba7pegVXn4Ggy8FBjdBy/lb5WhtupdzabEBZdE8y/ecXPU
  212. DGm2YNiETIQ=
  213. =l7eG
  214. -----END PGP SIGNATURE-----
  215.  
  216.