Symlink Directory Exposes Webapp Directory Contents
Package
org.eclipse.jetty:jetty-deploy
(maven)
Affected versions
9.4.32-9.4.38, 10.0.0.beta2-10.0.1, 11.0.0.beta2-11.0.1
Patched versions
9.4.39, 10.0.2, 11.0.2
Impact
If the
${jetty.base}directory or the${jetty.base}/webappsdirectory is a symlink (soft link in Linux), the contents of the${jetty.base}/webappsdirectory may be deployed as a static web application, exposing the content of the directory for download.For example, the problem manifests in the following
${jetty.base}:Workarounds
Do not use a symlink