An issue was discovered in Icinga2 before v2.12.0-rc1. The prepare-dirs script (run as part of the icinga2 systemd service) executes chmod 2750 /run/icinga2/cmd. /run/icinga2 is under control of an unprivileged user by default. If /run/icinga2/cmd is a symlink, then it will by followed and arbitrary files can be changed to mode 2750 by the unprivileged icinga2 user.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Icinga | Icinga | 2.0.0 (including) | 2.11.3 (including) |
Icinga | Icinga | 2.12.0-rc1 (including) | 2.12.0-rc1 (including) |
Icinga2 | Ubuntu | bionic | * |
Icinga2 | Ubuntu | eoan | * |
Icinga2 | Ubuntu | groovy | * |
Icinga2 | Ubuntu | hirsute | * |
Icinga2 | Ubuntu | impish | * |
Icinga2 | Ubuntu | kinetic | * |
Icinga2 | Ubuntu | lunar | * |
Icinga2 | Ubuntu | mantic | * |
Icinga2 | Ubuntu | trusty | * |
Icinga2 | Ubuntu | xenial | * |