Page MenuHomeVyOS Platform

VyOS user/pass remains in config
Needs reporter action, HighPublicBUG

Description

Using cloud-init to deploy using vyos-vm-images, using both the default of keep_user=false and explicitly passed with -e keep_user=false, the vyos user/pass remains in the config as well as /etc/passwd, etc/shadow. Note

From documentation, expected results would be that user vyos is removed. Manual intervention is needed in the config as well as OS to remove after deploy.

The password from config is the hased value below.

login {
    user vyos {
        authentication {

{% if cloud_init == "true" and not ( keep_user is defined and keep_user == "true" ) %}

encrypted-password "*"

{% else %}

encrypted-password "$6$MjV2YvKQ56q$QbL562qhRoyUu8OaqrXagicvcsNpF1HssCY06ZxxghDJkBCfSfTE/4FlFB41xZcd/HqYyVBuRt8Zyq3ozJ0dc."

{% endif %}

    plaintext-password ""
}

The /etc/shadow entry is:
vyos:$6$rounds=656000$IFCOpc5cBNZzivPL$8/xzecSEWPfhyg4AJSihvFaK5ZYlDZY0IFWXI4QjV4/ohWCSNOaS9gdKEssovwUkohsy.S9/vRz3DOfGR28vg.:19552:0:99999:7:::

Details

Difficulty level
Easy (less than an hour)
Version
multiple versions up to and including 202307141223 build
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation
Issue type
Security vulnerability

Related Objects

StatusSubtypeAssignedTask
OpenBUGzsdc
Needs reporter actionBUGNone