Skip to content

[Security Risk] Home Assistant Container LXC installs unsecured portainer instance on network w/no warning(s)Β #3311

@numericOverflow

Description

@numericOverflow

βœ… Have you read and understood the above guidelines?

Yes

πŸ“œ What is the name of the script you are using?

Home Assistant (LXC)

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/homeassistant.sh)"

πŸ“ Provide a clear and concise description of the issue.

Installing Home Assistant LXC also installs a Portainer instance in that LXC which has no default user/pass configured. The first person to access the instance Portainer webgui can pwn that install as they get to set the admin credentials.

IMO, this seems like a big security risk to leave an open portatiner install on the network . There's no warning(s) to user that portainer now exists and needs to be secured by finishing the portainer setup.

I only happened to find it b/c I copied the wrong URL while trying to open HomeAssistant for the first time.

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ”„ Steps to reproduce the issue.

Run the HA (LXC) install command.
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/homeassistant.sh)"

everything from there is automatic.

Visit the HA url shown after install script completes.

Set admin user/pass on that portainer instance.

❌ Paste the full error output (if available).

Not an error, script installed successfully. This is a security risk

To mitigate, I'd suggest any of the following

  1. Do not install portainer.
  2. Not allow portainer to be access outside the LXC (if possible)
  3. Finish the portainer setup and secure it with a proper uers/pass either from user prompt or random generated at install time if user never needs to manage/maintain portainer.

πŸ–ΌοΈ Additional context (optional).

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions