A flaw was found in insights-core. This vulnerability allows information disclosure when the collection process improperly follows symbolic links in temporary directories. A local attacker with write access to the report upload directory can create a symbolic link pointing to sensitive system files. When a higher-privileged collection routine executes, the contents of the targeted file are copied into the collection archive, exposing restricted data.
Restrict permissions on the runtime upload directory so that untrusted local users cannot create files or symbolic links:
-
Restrict permissions on the upload directory to root or the dedicated service account:
bash
chmod 700 /var/tmp/insights-runtimes/uploads
If a specific application service account produces the reports, grant exclusive ownership to that service user and group:
bash
chown <service_user>:<service_group> /var/tmp/insights-runtimes/uploads
chmod 750 /var/tmp/insights-runtimes/uploads
-
Restrict permissions on Insights client local archive directories to prevent unprivileged users from accessing collected reports:
bash
chmod 700 /var/tmp/insights-client
Caveats:
Restricting permissions on /var/tmp/insights-runtimes/uploads may prevent unprivileged services or non-root applications from publishing runtime reports if they are not granted explicit group access. Applying these filesystem permission changes does not require a service restart or system reboot.