🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #660

Re: Prohibiting Shell escapes from within NN

#660
From: Kim F. Storm
Date: Mon, 19 Feb 1990 08:33
25 lines
1403 bytes
eastick@me.utoronto.ca (Doug Eastick) writes:

>Has anyone hacked NN to disallow shell escapes?  If NN was to be used
>in a BBS environment, it would be nice if you could stop people from
>getting to the shell, vi, etc...

>"#ifdef RESTRICT_SHELL" in the appropriate places would be nice.

With 6.3.9 and later, there is a variable

	shell-restrictions

which can ONLY be set in the init file.  When set, it will prevent
shell escapes, it will prevent modifying certain variables like
mail-script and news-script (which would otherwise be a loop-hole),
and it will prevent saving through pipes.

But you will still have to do something about the EDITOR used when
composing mail and news articles - nn can't help you there if it
allows shell escapes.

-- 
Kim F. Storm        storm@texas.dk        Tel +45 429 174 00
Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark
	  No news is good news, but nn is better!
Technical Details
Message-ID: <470@texas.dk>
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!dkuug!tidk!storm
References: <1990Feb16.115156.29745@me.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!dkuug!tidk!storm
From: storm@texas.dk (Kim F. Storm)
Newsgroups: news.software.nn
Subject: Re: Prohibiting Shell escapes from within NN
Keywords: secure environment
Message-ID: <470@texas.dk>
Date: 19 Feb 90 08:33:04 GMT
References: <1990Feb16.115156.29745@me.toronto.edu>
Distribution: news
Organization: Texas Instruments, Denmark
Lines: 25