Calamares will let you set up a user account with no password

Bug #2016436 reported by Aaron Rainbolt
266
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calamares-settings-ubuntu (Ubuntu)
Fix Released
Critical
Aaron Rainbolt
Jammy
Fix Released
High
Erich Eickmeyer
Lunar
Fix Released
Critical
Aaron Rainbolt

Bug Description

Steps to reproduce:

1. Boot the Lubuntu Lunar Final ISO.
2. Install Lubuntu, but when you are asked to provide initial user account details, leave the password blank.
3. Finish the installation.

Expected result: You should be unable to proceed past the user account creation screen until you provide a password.

Actual result: You can proceed through the installation process without providing a password. The resulting user account's password will be entirely blank, allowing you to log in by simply pressing "Enter" at the SDDM screen. sudo will also work if you simply press "Enter" when asked for your password.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Not sure if this is a bug or a feature as Linux in general will allow you to make an account with a blank password. Granted, for security reasons, it'd be really silly to so as the first user, but "stupid is as stupid does."

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

@eeickmeyer I mean, it's not that you're wrong, but the `passwd` tool refuses to let you assign a user account a blank password even if you execute it as root. I get the feeling this isn't exactly something that is normally expected. It's also unclear how XScreenSaver will behave with this - I should test it.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

OK, this is actually pretty bad. XScreenSaver locks you out of the system if it locks the screen and your password is blank.

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Turns out there's an option in Calamares that lets you choose whether to allow a blank password or not.

affects: calamares (Ubuntu) → calamares-settings-ubuntu (Ubuntu)
Chris Guiver (guiverc)
tags: added: lunar
tags: added: lubuntu ubuntustudio
Changed in calamares-settings-ubuntu (Ubuntu):
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Aaron Rainbolt (arraybolt3)
tags: added: community-security
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/2016436

tags: added: iso-testing
Revision history for this message
Jeremy Bícha (jbicha) wrote :

passwd -d lets you delete a user's password. Ubuntu will still let that user log in, passwordless.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

The bug mentioned in comment 3 may be https://bugs.debian.org/478260

I am surprised that Calamares is not setting the password to blank the same way that passwd -d or usermod -p "" does. It looks to me like Calamares is hashing a blank password since there is content in /etc/shadow

The Calamares installer log shows that is running this when it creates my user "jeremy"
"usermod" "-p" <password> "jeremy"

If I blank the password myself after install, then xscreensaver unlocks the screensaver without even asking for a password.

Jeremy Bícha (jbicha)
information type: Public → Public Security
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package calamares-settings-ubuntu - 1:23.04.12

---------------
calamares-settings-ubuntu (1:23.04.12) lunar; urgency=medium

  * Don't allow the first user to be created with a blank password in either
    Lubuntu or Ubuntu Studio. (LP: #2016436)

 -- Aaron Rainbolt <email address hidden> Sun, 16 Apr 2023 17:34:56 -0500

Changed in calamares-settings-ubuntu (Ubuntu):
status: In Progress → Fix Released
Changed in calamares-settings-ubuntu (Ubuntu Jammy):
status: New → Confirmed
importance: Undecided → Critical
Changed in calamares-settings-ubuntu (Ubuntu Jammy):
assignee: nobody → Erich Eickmeyer (eeickmeyer)
status: Confirmed → In Progress
importance: Critical → High
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Attached is the debdiff for the security team to sponsor for upload to Jammy.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

ACK on the debdiff, thanks!

I've uploaded the package for building into the security team PPA here:

https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+packages

Please test it, and comment here. Once it has been tested, I will release it as a security update.

I guess Kinetic isn't needed because the ISO will never get a respin, is that accurate?

Thanks!

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

>I guess Kinetic isn't needed because the ISO will never get a respin, is that accurate?

That's absolutely correct.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Hi Marc, sorry about the delay.

Tested on latest Jammy daily images, added PPA and installed updated package. Works as expected in both Lubuntu and Ubuntu Studio.

I didn't put too much priority on this since it will only affect the next daily images for Jammy and hit end users once 22.04.3 is released.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package calamares-settings-ubuntu - 1:22.04.4.3

---------------
calamares-settings-ubuntu (1:22.04.4.3) jammy-security; urgency=medium

  * Don't allow the first user to be created with a blank password in either
    Lubuntu or Ubuntu Studio. (LP: #2016436)

 -- Erich Eickmeyer <email address hidden> Mon, 17 Apr 2023 13:56:57 -0700

Changed in calamares-settings-ubuntu (Ubuntu Jammy):
status: In Progress → Fix Released
Revision history for this message
Chris Guiver (guiverc) wrote :

Of no real value, but I just tested for this on mantic.
I could not re-create with today's Lubuntu daily.

http://iso.qa.ubuntu.com/qatracker/milestones/446/builds/287003/testcases/1701/results

To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.