grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] read --echo=[yes|no|wildcard]


From: Robert Millan
Subject: Re: [PATCH] read --echo=[yes|no|wildcard]
Date: Sun, 10 Feb 2008 18:00:26 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Feb 10, 2008 at 11:41:35AM -0500, Isaac Dupree wrote:
> Robert Millan wrote:
> >On Sun, Feb 10, 2008 at 08:56:18AM -0500, Isaac Dupree wrote:
> >>Robert Millan wrote:
> >>>Adds a parameter to define echoing behaviour in read.  Then one can use
> >>>--echo=no or --echo=wildcard to make it suitable for reading passwords.
> >>I wonder how suitable it is for passwords -- is the memory always erased 
> >>before jumping to e.g. Linux? (and is it important to hide it from the 
> >>prying eyes of the root system? Probably...)
> >
> >Why?  This suggests that the Linux image you just booted is not trusted, 
> >which
> >I find a bit strange.
> 
> well, suppose it runs for a few months, doesn't happen to overwrite that 
> memory, and then someone hacks in and gets root access (unpatched 
> security flaws can happen) and then reads the raw memory.  Then the 
> local boot **and the password itself** might be unknowingly compromised 
> (rather than just probably a hash of the password). (plus you might be 
> booting Windows ^_^, or anything really.)  It's generally good practice, 
> I think... that GnuPG tries to do, for example? (I could be remembering 
> wrong)

I think that it'd be better to just erase all our environment in
grub_machine_fini() or a similar routine, than to give read specific knowledge
that its data needs this kind of special protection.  Besides, it wouldn't be
that simple since the data is controlled by the user via grub.cfg, not directly
by GRUB.

Anyway, untill we support hashing this doesn't provide any additional security,
since you can get the same from grub.cfg ;-)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]