[11322] in bugtraq

home help back first fref pref prev next nref lref last post

Re: vlock + magic SysRQ key

daemon@ATHENA.MIT.EDU (Pavel Machek)
Mon Aug 9 23:06:54 1999

Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Message-Id:  <19900101050033.A219@bug.ucw.cz>
Date:         Mon, 1 Jan 1990 05:00:33 +0100
Reply-To: Pavel Machek <pavel@BUG.UCW.CZ>
From: Pavel Machek <pavel@BUG.UCW.CZ>
X-To:         "Luis M. Cruz" <lcruzva@CLIENTES.UNICAJA.ES>,
              BUGTRAQ@SECURITYFOCUS.COM
To: BUGTRAQ@SECURITYFOCUS.COM
In-Reply-To:  <19990804181632.B239@failure.ddns.org>; from Luis M. Cruz on Wed,
              Aug 04, 1999 at 06:16:32PM +0200

Hi!

>   Sorry if somebody has noticed this before or is only a stupid remark, but
> a few days ago I found that you can kill vlock (and similar programs that
> lock all linux consoles) with the alt+sysrq+k key combination on LiNUX 2.2.X
> and 2.3.X (if you enabled magic keys when you compiled the kernel) so
> someone could bypass the console locking and althought he cannot access the
> session where vlock was ejecuted (because it has been killed), he can access
> the other posibly opened sessions on other consoles. So, if you have enabled
> the magic keys, using "vlock -a" is not secure!.

Magic SysRq is in "kernel hacking" section. If you enable it, and you
are not kernel hacker, you loose. (If you are kernel hacker, you
certainly don't want mere mortals access your console, do you?

Read help entry:

CONFIG_MAGIC_SYSRQ
  If you say Y here, you will have some control over the system even
  if the system crashes for example during kernel debugging (e.g., you
  will be able to flush the buffer cache to disk, reboot the system
  immediately or dump some status information). This is accomplished
  by pressing various keys while holding SysRq (Alt+PrintScreen). The
  keys are documented in Documentation/sysrq.txt. Don't say Y unless
                                                  !!!!!!!!!!!!!!!!!!
  you really know what this hack does.
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

If you did not realize it allows people to bypass vlock -a, you did
not know what it does, and you should not have enabled it :-).

There are even more nasty things you can do with magic sysrq:
remounting harddrives readonly causing syslogd to die is probably most
funny, killing Xserver can also be funny...

								Pavel
--
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

home help back first fref pref prev next nref lref last post