You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Insights fetchFile: directory whitelist is a naive prefix match — allows ../ traversal #6057
InsightsEndpoint.fetchFile authorizes via PathUtil.isFileWhitelisted. For a whitelisted directory (the trailing-slash form the docs support) the check is:
e.endsWith('/') && path.startsWith(e)
That is a raw string prefix with no canonicalization, so a path like /var/log/app/../../etc/passwd passes the check and is then read verbatim via relativePathToPlatformPath.
Preconditions, as noted when this was triaged privately: reaching it requires the Insights service secret (the operator's own management credential) plus a whitelist entry that the default configuration does not include. So this is not remotely exploitable out of the box; it is a defense-in-depth gap in the file-access layer, worth closing because a leaked or rotated-insufficient service credential then turns into arbitrary file reads instead of directory-scoped reads.
Activity