IRIX midikeys Root Vulnerability

BID:262

Info

IRIX midikeys Root Vulnerability

Bugtraq ID: 262
Class: Access Validation Error
CVE: CVE-1999-0765
Remote: No
Local: Yes
Published: May 19 1999 12:00AM
Updated: May 19 1999 12:00AM
Credit: This vulnerability was published in the BUGTRAQ mailing list by Larry W. Cashdollar <[email protected]> Ma 19, 1999.
Vulnerable: SGI IRIX 6.5.4
SGI IRIX 6.5.3 m
SGI IRIX 6.5.3 f
SGI IRIX 6.5.3
SGI IRIX 6.5.2 m
SGI IRIX 6.5
SGI IRIX 6.3
SGI IRIX 6.2
Not Vulnerable:

Discussion

IRIX midikeys Root Vulnerability

The setuid root "midikeys" executable can be used to edit arbitrary files via its graphical user interface. This grants malicious users root access to the system.

Running the midikeys application, clicking in sounds, and then songs will bring up a file dialog. By entering a filename of a known file it will be opened for editing with root privileges.

The packge that midikeys is part of is dmedia_eoe.sw.synth.

People have reported trouble reproducting the vulnerability when the editor is vi. Please try again using some other editor such as gvim or emacs. Alternatively you can change the WINEDITOR environment variable to be any command you want executed as root(e.g. "/bin/chmod 4755 /tmp/sh").

You can change it under Irix 6.2 by going to Toolchest -> Desktop -> Customize -> Desktop -> Default Editor: Other, or under Irix 6.5 in Toolchest -> Desktop -> Customize -> Utilities -> Test Editor: Other.

Exploit / POC

IRIX midikeys Root Vulnerability

devel 26% ./midikeys -display remotehost:0

devel 27% Xlib: extension "GLX" missing on display remotehost:0.0". Xlib: extension "GLX" missing on display "remotehost:0.0".

under the midikeys window click sounds and then midi songs. This will open a file manager type interface.

You can enter the path and filename of files you which to read, including root owned with group/world read/write permissions unset.

If you select a file like "/usr/share/data/music/README" it will appear in a text editor. Use the text editor to open /etc/passwd and make modifications at will. Save and enjoy.

Solution / Fix

IRIX midikeys Root Vulnerability

Solution:
Remove the suid bit from the midikeys program.

References

IRIX midikeys Root Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report