Apache Httpd < 2.4.30: <FilesMatch> bypass with a trailing newline in the file name

2017-11-24T00:00:00
ID HTTPD:94C27BCF50CA81A222019B9F06735AA1
Type httpd
Reporter The issue was discovered by Elar Lang - security.elarlang.eu
Modified 2018-03-21T00:00:00

Description

The expression specified in <FilesMatch> could match '$' to a newline character in a malicious filename, rather than matching only the end of the filename. This could be exploited in environments where uploads of some files are are externally blocked, but only by matching the trailing portion of the filename.