Harden what a built image leaves in its accounts and in the Webmin authentication path #11
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/common#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A built appliance carries accounts before its first boot has set any
password on them, and two of the things the build leaves behind are more
permissive than they need to be:
conf/turnkey.d/rootpass, when the build is given noROOT_PASS, writesa password field into the root account that a submitted password can
match, rather than one that nothing matches until the first boot sets a
real password over it.
webminpackage installs carriesnullok, which letsan account whose password is not set be authenticated without one.
Nothing in an appliance asks for that option.
And the web interface starts with the rest of the boot, before the first
boot scripts that configure the appliance have run at all.
Wanted, as ordinary hardening of the build:
that the first boot still works:
passwd --unlock root, whichturnkey-sudoadminruns on every first boot, must still succeed over it;nullokout of the webmin PAM stack;the conf scripts have run and before the first boot has completed.
Filed against the private handbook issue Keel-Linux/handbook#14, which
carries the detail.