0-Day GRUB2 Authentication Bypass Hits Linux (hmarco.org)
prisoninmate writes: A zero-day security flaw was discovered by developers Ismael Ripoll and Hector Marco in the upstream GRUB2 packages. GRUB2 did not correctly handle the backspace key when the bootloader was configured to use password protected authentication, thus allowing a local attacker to bypass GRUB's password protection. Versions from 1.98 (December, 2009) to 2.02 (December, 2015) are affected. At the moment, it looks like only a few distributions received the patched GRUB2 versions, including Ubuntu, Debian (Squeeze LTS only) and Red Hat Enterprise Linux 7.
Well Slackware is immune.
Seriously how can a bug like this hang around as basic input validation is something that should be done.
Time to offend someone
Is this even an issue?
It's a password on the boot loader. It's not encrypting anything. If anyone is in the position to interact with a machine before the OS has loaded, they've probably got enough access to it that they can do whatever the hell they want, including booting the system off alternative media and replacing or reconfiguring said boot loader.
In the majority of cases if you are interacting with the boot process then you have physical access to the machine. So unless GRUB is managing disk encryption you have access regardless of the password in GRUB. This is security theater, not real security and breaking it is not accomplishing anything significant.
Next Story.
-- The morphemes of your disquisition are ascertainable, but they have eschewed an ambit of transpicuous exposition.
They certainly set a blistering development pace.
Are you kidding me? Cue a queue of linux fanbois explaining how this isn't a big issue, is understandable, isn't as bad as some Windows bug etc.
Cannot handle backspace key. In 2015. Much wow.
B-b-but this is open source! How can such an obvious function (grub_username_get()) in a heavily used boot loader (GRUB) have this kind of vulnerability? This vulnerability existed for 6 years. Just imagine how easily NSA could plant something like this and use it to bypass passwords.
This was a deliberate move by the FSF, because computers that need passwords aren't really free, are they?
2009 to 2015, was it? "Many eyes make all bugs shallow", ha, yeah, right. Anybody still repeating that hollow OSS canard in 2015 deserves to laughed at
The new systemd-grub leverages a pre-boot, machine-level dbus interface to policy-kit and systemd-logind, which will handle this for you. Why are people still in the dark ages with bootloader passwords?
If someone has local access, they OWN the machine already. This is a minor inconvenience as zero security is given with a grub password anyways.
Do not look at laser with remaining good eye.
That's so silly - physical access to the machine doesn't mean anything per se!
What if you can't take the machine apart inconspicuously because the case is sealed. What if you have only 3 minutes before someone else comes by? Security is not black and zero at all.
One can easily even use an AVR that'll replay the keypress sequence over USB (posing as a keyboard) on a button press. This is something completely different than taking the machine apart to clear CMOS or whatever.
BTW, can you have UEFI trusted boot with GRUB, or do you need coreboot? (Yes, there are people other than Microsoft using it, e.g. when selling appliances - think vote machines or gambling terminals.)
It's not the fall that kills you. It's the sudden stop at the end. -Douglas Adams
This is a ridiculous fuck up that is quite laughable. Especially for such a widely used and presumed reviewed/audited package.
On the other hand, a password protected boot loader is exactly as effective as a password protected boot loader that can be bypassed by pressing backspace. Both will keep completely clueless out and neither will prevent anyone with the vaguest clue of how to boot a computer from booting/accessing the system.
For those that don't understand, Google boot disk or startup disk.
I'm glad my Windows environments aren't dependent on these buggy open source projects with their ludicrous names.
Seems like Backspace is almost never handled well for password entry in Linux...
How does 0-Day GRUB2 Authentication Bypass affects Women?
press backspace 28 times [enter]
write_word 0x7eb514e 0x90909090[enter]
normal[enter]
Enter 'edit mode'
append init=/bin/bash to the linux entry
F10
45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
There are enough REAL security issues floating around without getting our panties all in a wad over an issue that requires PHYSICAL access to the Console and Keyboard on a machine that has already been rebooted ...
Along the same lines, even after this 'Zero-Day' is repaired, if I can access the Console and Keyboard, I can access the Boot Menu, and boot from a Thumb-Drive and then do everything I could do via the Grub2 Bug.
Sheesh !
-- kjh
Everyone is thinking "Boot loader, got to be at physical console." No.
ILOs of all manner allow you to be any distance away.
Very cool, but that pesky physical access issue...
No surprise here. GRUB2 has always been a POS. I knew this would happen when all major Linux distros started forcing their users to use GRUB2 (not unlike the systemd fiasco). Yet, my Linux machines all use GRUB Legacy and are immune.
Seriously though, some of my old motherboards don't work with Grub, and I have no need for features beyond LILO.
Escher was the first MC and Giger invented the HR department.
keep honest people honest. A bootloader password is not without value. Not
everyone is willing to take a screwdriver to the machine (especially a laptop)
just to see what's on it.
Great for university students who want to install a modern distro on one of their ancient computer lab boxes that hasn't had any updates since the initial deployment.
Move the boot to a USB stick and encrypt all the rest on disk.
Stops the Evil Maid attack
But really, MANY EYES, OPEN SOURCE, and they did NOT SEE this GLARING HOLE?
Open source is a bling bling sham with their rubbish "many eyes more secure" bs.
An attacker with physical access and some minimal skill has won anyways.
Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
Seems slackware.org is /.......
Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
If you hit backspace often enough fast enough you can travel back in time!
News flash! If someone has access to your boot loader they can bone you.
The fix for Ubuntu was out earlier today, I already applied the latest patch to Grub to fix that bug! Kinda weird having grub patches two days in a row