Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1560614 - (CVE-2017-15715) CVE-2017-15715 httpd: <FilesMatch> bypass with a trailing newline in the file name
CVE-2017-15715 httpd: <FilesMatch> bypass with a trailing newline in the file...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20180324,reported=2...
: Security
Depends On: 1560615 1565491 1565492 1565493 1560618
Blocks: 1560402
  Show dependency treegraph
 
Reported: 2018-03-26 11:02 EDT by Adam Mariš
Modified: 2018-10-26 10:13 EDT (History)
37 users (show)

See Also:
Fixed In Version: httpd 2.4.30
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2018-03-26 11:02:01 EDT
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 externally blocked, but only by matching the trailing portion of the filename.

Versions Affected:
httpd 2.4.0 to 2.4.29

External References:

https://httpd.apache.org/security/vulnerabilities_24.html
Comment 2 Adam Mariš 2018-03-26 11:04:38 EDT
Created httpd tracking bugs for this issue:

Affects: fedora-all [bug 1560618]
Comment 4 Huzaifa S. Sidhpurwala 2018-04-10 02:43:03 EDT
Upstream patch:

https://svn.apache.org/viewvc?view=revision&revision=1824339

As per the upstream changelog, the following change was made for this flaw:

Configure the regular expression engine to match '$' to the end of
the input string only, excluding matching the end of any embedded 
newline characters. Behavior can be changed with new directive 
'RegexDefaultOptions'.
Comment 8 Huzaifa S. Sidhpurwala 2018-06-22 00:32:30 EDT
Statement:

The "FilesMatch" directive is not enabled in the default httpd configuration as shipped with Red Hat Enterprise Linux, and needs to be explicitly enabled. Therefore this flaw has no impact on the default versions of the httpd package as shipped with Red Hat Enterprise Linux.

Note You need to log in before you can comment on or make changes to this bug.