🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #43140

Re: slrn FAQ

#43140
From: Sylvain Robitaille
Date: Wed, 09 Sep 1998 00:00
110 lines
5690 bytes
On 8 Sep 1998 21:43:28 GMT, Frank Hahn <fhahn@zdnetmail.com> wrote:

> For informational purposes, here are the permissions on the directories
> to my spool directory.  Don't laugh if they are not correct.  This is on
> a Linux box at home and I am the only using it.

Considering it's a single-user system, I wouldn't really worry about it,
but you really should make a habit of setting permissions more
restrictively on your system, for a variety of reasons, (I'll only list
those I can come up with quickly):

- It's often likely that you may at some point decide to allow a friend
  or relative access to your system. In such a case, you will likely
  want to give them their own account. All of a sudden, you have to
  worry about these things...

- Sometimes it isn't a human user that's the problem, but software
  running as an otherwise unprivileged user. Anything that's writable to
  the unprivileged user could get corrupted if the software decides to
  misbehave, (think trojan horse, for example).

- You yourself can make mistakes. If you limit the privilege you
  normally have, you can limit the amount of damage such a mistake could
  cause.
 
- Habit. If you make a habit of setting wide open permissions on stuff,
  you're more likely to do the same at work, with files and directories
  that might contain sensitive data. On the other hand, if you get used
  to a system of "least privilege", you'll take that to work with you,
  and not leave anything at risk there.

That said, let's say for the sake of discussion, that you give me an
account on your machine. You don't know it, but I happen to be bored and
just looking to cause you a bit of a headache, "just for laughs". Here's
what I might do:

> Permissions on /var/spool:
> drwxrwxr-x  18 dfh      users        1024 Jun 29 21:34 spool

Bye-bye /var/spool/mail!  If you happen to have your system send you any
sort of automatic reports, (such as COPS runs or others), you could
suddenly find that those are no longer being sent.

> Permissions on /var/spool/slrnpull:
> drwxrwxr-x   5 dfh      users        1024 Sep  6 00:00 slrnpull

Ok, so now anything in that directory is fair game...

> Permissions on /var/spool/slrnpulli/miscellaneous files:
> drwxrwxr-x   2 dfh      users        1024 Sep  8 05:17 data

Well, I wouldn't likely have too much fun with your active file, really,
but let's say you gave me a quota on /home:

% mkdir "/var/spool/data/. "
% chmod 700 "/var/spool/data/. "
% mv some_big_file "/var/spool/data/. "

Usage growth on /var is normal, so you wouldn't likely suspect any such
thing. Also, you're not likely to look in /var/spool/data all that
frequently, either.

> -rw-rw-rw-   1 dfh      users       22014 Sep  8 05:17 log
> -rw-rw-rw-   1 dfh      users        6832 Sep  5 05:21 log.1.gz
> -rw-rw-rw-   1 dfh      users        6491 Aug 29 18:16 log.2.gz
> -rw-rw-rw-   1 dfh      users        6831 Aug 22 21:48 log.3.gz

Hrmmm... :-(  Your log files should really only be writable by the user
that needs to write to them. There probably isn't *much* I could do
here as a malicious user, but loss of data could mean extra time spent
by you troubleshooting problems that don't exist, or working harder to
find why problems that *do* exist aren't appearing in the logs.

> drwxrwxr-x   5 dfh      users        1024 Aug  9 16:07 news

Think "forged posts" (that don't really exist).

> drwxrwxr-x   3 dfh      users        1024 Sep  7 17:21 out.going

Think "posts mysteriously disappearing".

> -rw-rw-r--   1 dfh      users        2885 Aug 24 19:50 score

Spammers suddenly get their messages into your news spool.

> -rw-rw-r--   1 dfh      users        2071 Aug 17 17:59 slrnpull.conf

You suddenly start carrying a few of the alt.binaries groups. (lookout
disk usage!)

Again, as you said, you're the only person using the system. However, I
stress that this may the case *now*, but could very well change at some
point. If I was lucky enough to be given access to your system, I might
find cause to look around and see what *else* is configured with such
open permissions...

It's your system, but I hope I've given you reasons to think carefully
about how you set it up. Now, I don't really have it in me to be
malicious that way, but as they say, "to catch a mouse, you have to
*think* like a mouse."

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------

Technical Details
Message-ID: <6t4qrn$tgn$1@newsflash.concordia.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn6u4a5q.ff.davis@space.mit.edu> <6s66io$hc1$1@aurwww.aur.alcatel.com> <slrn6uobj5.91.davis@mygir.davis.net> <38739E79D43936AE.AEB34D87961BC690.9E8BE0152D9F0ECF@library-proxy.airnews.net> <slrn6v5fg6.ull.syl@elvira.rodents.montreal.qc.ca> <529FBA9D40C7536F.C9CBB45E7283CDA5.3B28530692C5E43B@library-proxy.airnews.net> <6t48e0$gkr$2@supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <6t4qrn$tgn$1@newsflash.concordia.ca>
Subject: Re: slrn FAQ
Date: Wed, 09 Sep 1998 00:00:00 +0000
From: syl@alcor.concordia.ca (Sylvain Robitaille)
References: <slrn6u4a5q.ff.davis@space.mit.edu> <6s66io$hc1$1@aurwww.aur.alcatel.com> <slrn6uobj5.91.davis@mygir.davis.net> <38739E79D43936AE.AEB34D87961BC690.9E8BE0152D9F0ECF@library-proxy.airnews.net> <slrn6v5fg6.ull.syl@elvira.rodents.montreal.qc.ca> <529FBA9D40C7536F.C9CBB45E7283CDA5.3B28530692C5E43B@library-proxy.airnews.net> <6t48e0$gkr$2@supernews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 389257131
Organization: Concordia University, Montreal, Canada
Newsgroups: news.software.readers
NNTP-Posting-User: syl