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-6356 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2021-23901 Vulnerability in maven package org.apache.nutch:nutch
CVE-2019-10744 Vulnerability in maven package org.webjars.bowergithub.lodash:lodash
CVE-2017-1000209 Vulnerability in maven package com.neovisionaries:nv-websocket-client
CVE-2019-16776 Vulnerability in maven package org.webjars.npm:bin-links