Description
Butor Portal before 1.0.27 is affected by a Path Traversal vulnerability leading to a pre-authentication arbitrary file download. Effectively, a remote anonymous user can download any file on servers running Butor Portal. WhiteLabelingServlet is responsible for this vulnerability. It does not properly sanitize user input on the theme t parameter before reusing it in a path. This path is then used without validation to fetch a file and return its raw content to the user via the /wl?t=../../...&h= substring followed by a filename.
Remediation
References
https://bitbucket.org/butor-team/portal/commits/all
https://bitbucket.org/account/user/butor-team/projects/PROJ
https://bitbucket.org/butor-team/portal/commits/cd7055d33e194fcf530100ee1d8d13aa9cde230b
https://bitbucket.org/butor-team/portal/src/cd7055d33e194fcf530100ee1d8d13aa9cde230b/src/main/java/com/butor/portal/web/servlet/WhiteLabelingServlet.java?at=master
https://www.gosecure.net/blog/2019/09/30/butor-portal-arbitrary-file-download-vulnerability-cve-2019-13343
Related Vulnerabilities
CVE-2018-8012 Vulnerability in maven package org.apache.zookeeper:zookeeper
CVE-2020-1936 Vulnerability in maven package org.apache.ambari:ambari-web
CVE-2020-25711 Vulnerability in maven package org.infinispan:infinispan-server-runtime
CVE-2021-33041 Vulnerability in npm package vmd
CVE-2022-23505 Vulnerability in npm package passport-wsfed-saml2