Implementations using this library with directory browsing enabled may be susceptible to Cross Site Scripting (XSS) attacks.
Users can upgrade to v4.1.0
Set dir_browser.enable = False
in the configuration. For instance, when using a Python dictionary to configure the library:
config = {
# your normal configuration
"dir_browser": {
"enable": False
},
}
app = WsgiDAVApp(config)
Note that an attacker cannot exploit this vulnerability, by simply uploading a file or folder with a manipulated file name. However if the WsgiDAV library is used in a scenario where untrusted data is displayed in the directory browser's user interface (e.g. 'realm' or user name, ...) XSS may happen.
If you have any questions or comments about this advisory: * Open an issue in mar10/wsgidav * See the security policy