Hi, I’m new to HA and am trying to make my own app, and I notices something odd. I think this might be a bug/security flaw in HA but I wanted to check with others before filing a bug report. As the title says, I’m able to access an apps ingress page as a normal user despite panel_admin being set to true in config.yaml.
It’s pretty easy to test for yourself;
- Get a fresh HA install
- (I used Ras Pi Imager and selected the HA os)
- Setup “admin” person & account in Administrators group during initial setup
- Go to apps and install Terminal & SSH, start the app and enable “Show in sidebar”
- (Terminal & SSH does not have
panel_adminin itsconfig.yaml, which according to the docs means it defaults totrue)
- Click “Open Web UI” and copy the url
- Add a new “user” person & account in Users group
- Logout of the “admin” account & login to the “user” account
- Past the copied url into your browser
And then you’re a normal user with root access in the Terminal & SSH app… so yea, was not expecting that. The sidebar url http://homeassistant.local/core_ssh redirects to your default dashboard correctly, but the “Open Web UI” url http://homeassistant.local/app/core_ssh still works after manually typing/pasting it in.
Is this a bug? Security issue? Intended behavior? Is this already known or did I discover something new? Just wanted to get other perspectives from more experienced users before opening an issue on GitHub. Is there already an existing issue open?