Bug 681119 - A big security problem in /etc/init/rcS-sulogin.conf
Summary: A big security problem in /etc/init/rcS-sulogin.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-01 07:01 UTC by homerxing
Modified: 2014-03-17 03:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-01 18:07:29 UTC
Type: ---


Attachments (Terms of Use)

Description homerxing 2011-03-01 07:01:14 UTC
Description of problem:
When I enter single user mode from GRUB, I can log in to Fedora 14 without being asked any password. Then I can change the root password. It is a big security problem.

Version-Release number of selected component (if applicable):
Fedora 14. initscripts is of the latest version.

How reproducible:
It is easy to reproduce.

Steps to Reproduce:
1. Power on the computer. 
2. Press Space at the GRUB window. 
3. Press "e" key at the "Fedora 14" item. 
4. Add "single" at the end of line. 
5. Press "b" key to boot the computer. 
6. Then a root shell is got.
  
Actual results:
A root shell is got.

Expected results:
The user should be asked a password.

Additional info:
The security problem is in /etc/init/rcS-sulogin.conf
The line "exec $SINGLE" is not good. It should be "exec /sbin/sulogin". The variable "SINGLE" can be deleted.
Ubuntu has already fixed the security problem. If Fedora does not fix it, some Fedora users may turn to use Ubuntu, since Ubuntu is more secure.

Comment 1 iarly selbir 2011-03-01 11:31:46 UTC
You can set a password to protect your grub against a local attack.

is there anything we can do Bill?

Thanks for your report.


-- 
Fedora Bugzappers Team Member

Comment 2 Bill Nottingham 2011-03-01 18:07:29 UTC
This has always been the case; single-user mode has never asked for a password by default.

If this bothers you, edit /etc/sysconfig/init (see the SINGLE entry), or add a bootloader passwod.

Comment 3 homerxing 2011-03-02 01:56:55 UTC
It is Red Hat company's responsibility to ask for a password for single-user mode, because many Fedora users do not know how to fix this security problem at all.

Comment 4 Bill Nottingham 2011-03-02 18:12:18 UTC
... This has been the documented default since well before Fedora has existed, to the point where it's expected.

Moreover, changing this doesn't help at all without additional steps (bootloader password, securing physical access, and so on.)


Note You need to log in before you can comment on or make changes to this bug.