Bug 1516414 (CVE-2017-16762)

Summary: CVE-2017-16762 sanic: Directory traversal in def _handler function sanic/sanic/static.py
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ignatenko
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-23 09:30:47 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: 1516416    
Bug Blocks:    

Description Pedro Sampaio 2017-11-22 15:10:23 UTC
Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring. 

Upstream bug:

https://github.com/channelcat/sanic/issues/633

Upstream patch:

https://github.com/channelcat/sanic/releases/tag/0.5.1

Comment 1 Pedro Sampaio 2017-11-22 15:11:13 UTC
Created python-sanic tracking bugs for this issue:

Affects: fedora-all [bug 1516416]