SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |    Help    |   

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com

Sign Up!





Category:  Application (Generic)  >  KDE KGhostview Vendors:  KDE.org
(KDE Issues Fix for KGhostview) Re: 'gv' Postscript and PDF File Viewer Buffer Overflow May Execute Remotely Supplied Code in Malicioius Postscript or PDF Files
SecurityTracker Alert ID:  1005409
CVE Reference:  CAN-2002-0838   (Links to External Site)
Date:  Oct 11 2002
Impact:  Execution of arbitrary code via network, User access via network
Fix Available:  Yes   Vendor Confirmed:  Yes  
Version(s): KDE 1.1 through KDE 3.0.3a
Description:  A buffer overflow vulnerability was reported in the 'gv' postscript and PDF file viewer. A remote user can create a malicious file that, when viewed by the target user, will cause arbitrary code to be executed.

iDEFENSE reported that there is a buffer oveflow due to an unsafe sscanf() call.

A demonstration exploit is provided in the Source Message (it is Base64 encoded). A demonstration exploit transcript is also provided:

[root@victim]# ls -al /tmp/itworked
/bin/ls: /tmp/itworked: No such file or directory
[root@victim]# gv gv-exploit.pdf
[root@victim]# ls -al /tmp/itworked
- -rw-r--r-- 1 root root 0 Aug 22 16:50 /tmp/itworked

Impact:  A remote user can create a malicious file that, when viewed by gv, will cause arbitrary code to be executed by the target user's gv viewer. The code will run with the privileges of the target user.
Solution:  KDE has issued a fix for KGhostview. You can apply the patch listed below or update to KDE 3.0.4.

kdegraphics-3.0.4 can be downloaded from

http://download.kde.org/stable/3.0.4 :

6065219c825102c843ba582c4a520cac kdegraphics-3.0.4.tar.bz2

Patch:

A patch for KDE 3.0.3 is available from

ftp://ftp.kde.org/pub/kde/security_patches :
9e33962406ac123e4fbdab20b4123ccf post-3.0.3-kdegraphics-kghostview.diff

A patch for KDE 2.2.2 is available from

ftp://ftp.kde.org/pub/kde/security_patches :
62a1178c6a1730cbab98bbc825adafe9 post-2.2.2-kdegraphics-kghostview.diff

Vendor URL:  www.kde.org/info/security/advisory-20021008-1.txt (Links to External Site)
Cause:  Boundary error
Underlying OS:  Linux (Any), UNIX (Any)
Reported By:  Dirk Mueller <mueller@kde.org>
Message History:   This archive entry is a follow-up to the message listed below.
Sep 26 2002 'gv' Postscript and PDF File Viewer Buffer Overflow May Execute Remotely Supplied Code in Malicioius Postscript or PDF Files



 Source Message Contents

Date:  Wed, 9 Oct 2002 23:50:31 +0200
From:  Dirk Mueller <mueller@kde.org>
Subject:  KDE Security Advisory: KGhostview Arbitary Code Execution

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


KDE Security Advisory: KGhostview Arbitary Code Execution
Original Release Date: 2002-10-08
URL: http://www.kde.org/info/security/advisory-20021008-1.txt

0. References

        cve.mitre.org: CAN-2002-0838
        BUGTRAQ:20020926 iDEFENSE Security Advisory 09.26.2002: 
        Exploitable Buffer Overflow in gv
        http://marc.theaimsgroup.com/?l=bugtraq&m=103305615613319&w=2


1. Systems affected:

        KGhostView of any KDE release between KDE 1.1 and KDE 3.0.3a

2. Overview:
            
        KGhostview includes a DSC 3.0 parser from GSview, which is vulnerable
        to a buffer overflow while parsing a specially crafted .ps input
        file. It also contains code from gv 3.5.x which is vulnerable to another 
        buffer overflow triggered by malformed postscript or Adobe pdf files. 

3. Impact:
        
        Viewing certain Postscript or PDF files can result in the execution of 
        arbitary code placed in the file and as a result opens possibilities for
        any remote manipulation under the local user account.
   
4. Solution:
        
        Apply the patch listed in section 5 to kdegraphics/kghostview, or update
        to KDE 3.0.4. 

        kdegraphics-3.0.4 can be downloaded from

        http://download.kde.org/stable/3.0.4 :

        6065219c825102c843ba582c4a520cac  kdegraphics-3.0.4.tar.bz2

5. Patch:

        A patch for KDE 3.0.3 is available from
        
        ftp://ftp.kde.org/pub/kde/security_patches :
        9e33962406ac123e4fbdab20b4123ccf  post-3.0.3-kdegraphics-kghostview.diff
  
        A patch for KDE 2.2.2 is available from
   
        ftp://ftp.kde.org/pub/kde/security_patches : 
        62a1178c6a1730cbab98bbc825adafe9  post-2.2.2-kdegraphics-kghostview.diff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9pDXDvsXr+iuy1UoRAvfZAKCxyetx90FfIDpTeq028QUEfXM6TwCgjOMl
pLaRHeMmf/kUDz9HwpOW6fk=
=w/u0
-----END PGP SIGNATURE-----

 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2002, SecurityGlobal.net LLC