Bug 1181917 (CVE-2015-1164)

Summary: CVE-2015-1164 nodejs-serve-static: Open Redirect
Product: [Other] Security Response Reporter: Kurt Seifried <kseifried>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jrusnack, msrb, tchollingsworth
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-serve-static 1.7.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:37:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1181918, 1181919    
Bug Blocks:    

Description Kurt Seifried 2015-01-14 05:02:05 UTC
Pierre-Élie Fauché reports:

When using serve-static middleware version < 1.7.2 and it's configured to mount at the root it creates an open redirect on the site.

For example: If a user visits http://example.com//www.google.com/%2e%2e they will be redirected to www.google.com

Recommendations
Update to version 1.7.2 or greater. It also appears that you can set 'redirect: false' option to disable this behavior.

References
https://github.com/expressjs/serve-static/issues/26

Comment 1 Kurt Seifried 2015-01-14 05:02:53 UTC
Created nodejs-serve-static tracking bugs for this issue:

Affects: fedora-all [bug 1181918]
Affects: epel-6 [bug 1181919]

Comment 3 Product Security DevOps Team 2019-06-08 02:37:55 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.