Lucene search

K
hackeroneTeaportH1:697959
HistorySep 19, 2019 - 4:29 p.m.

Nextcloud: Only the file extensions are checked, not the MIME types as configured

2019-09-1916:29:18
teaport
hackerone.com
28

EPSS

0.006

Percentile

78.7%

The tool is not working as hoped. File access control speaks of MIME types that are blocked or not blocked. In fact, only the file extensions are checked. If a user renames an unauthorized file to an allowed file, he can upload and download it. The MIME type of the current file is insignificant, only the file extension is checked.

A company administrator prohibits the upload of exe files using file access control and MIME types. One user
copies his remote access application as a txt file to Nextcloud and downloads it in his professional environment.

A user on github has created a patch that has not yet found its way into the public repository.

Impact

An attacker could upload malicious files that have been blocked by the administrator.