Lucene search

K
osvGoogleOSV:GHSA-J6QJ-J888-VVGQ
HistoryApr 06, 2021 - 5:32 p.m.

Directory exposure in jetty

2021-04-0617:32:00
Google
osv.dev
22

0.001 Low

EPSS

Percentile

25.5%

Impact

If the ${jetty.base} directory or the ${jetty.base}/webapps directory is a symlink (soft link in Linux), the contents of the ${jetty.base}/webapps directory 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}:

demo-base/
ā”œā”€ā”€ etc
ā”œā”€ā”€ lib
ā”œā”€ā”€ resources
ā”œā”€ā”€ start.d
ā”œā”€ā”€ deploy
ā”‚Ā Ā  ā””ā”€ā”€ async-rest.war
ā””ā”€ā”€ webapps -> deploy

Workarounds

Do not use a symlink

References