Bug 1560614 (CVE-2017-15715) - CVE-2017-15715 httpd: <FilesMatch> bypass with a trailing newline in the file name
Summary: CVE-2017-15715 httpd: <FilesMatch> bypass with a trailing newline in the file...
Status: CLOSED ERRATA
Alias: CVE-2017-15715
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20180324,reported=2...
Keywords: Security
Depends On: 1560615 1560618 1565491 1565492 1565493
Blocks: 1560402
TreeView+ depends on / blocked
 
Reported: 2018-03-26 15:02 UTC by Adam Mariš
Modified: 2019-06-10 10:18 UTC (History)
34 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2019-06-10 10:18:33 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3558 None None None 2018-11-13 08:36 UTC
Red Hat Product Errata RHSA-2019:0366 None None None 2019-02-18 16:55 UTC
Red Hat Product Errata RHSA-2019:0367 None None None 2019-02-18 16:58 UTC

Description Adam Mariš 2018-03-26 15:02:01 UTC
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 15:04:38 UTC
Created httpd tracking bugs for this issue:

Affects: fedora-all [bug 1560618]

Comment 4 Huzaifa S. Sidhpurwala 2018-04-10 06:43:03 UTC
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 04:32:30 UTC
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.

Comment 12 errata-xmlrpc 2018-11-13 08:36:04 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2018:3558 https://access.redhat.com/errata/RHSA-2018:3558

Comment 13 errata-xmlrpc 2019-02-18 16:55:43 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2019:0366 https://access.redhat.com/errata/RHSA-2019:0366

Comment 14 errata-xmlrpc 2019-02-18 16:58:23 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 6
  JBoss Core Services on RHEL 7

Via RHSA-2019:0367 https://access.redhat.com/errata/RHSA-2019:0367


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