Bug 1575634 (CVE-2018-0494)

Summary: CVE-2018-0494 wget: Cookie injection allows malicious website to write arbitrary cookie entries into cookie jar
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: karsten, thozza, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: wget 1.19.5 Doc Type: If docs needed, set a value
Doc Text:
A cookie injection flaw was found in wget. An attacker can create a malicious website which, when accessed, overrides cookies belonging to arbitrary domains.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:21:28 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: 1575635, 1575636, 1576104, 1576105, 1576106    
Bug Blocks: 1575637    

Description Adam Mariš 2018-05-07 13:36:24 UTC
It was found that GNU Wget is susceptible to a malicious web server injecting arbitrary cookies to the cookie jar file.

Normally a website should not be able to set cookies for other domains. Due to insufficient input validation GNU Wget can be tricked into storing arbitrary cookie values to the cookie jar file, bypassing this security restriction.

An external attacker is able to inject arbitrary cookie values into cookie jar file, adding new or replacing existing cookie values.

Upstream patch:

https://git.savannah.gnu.org/cgit/wget.git/commit/?id=1fc9c95ec144499e69dc8ec76dbe07799d7d82cd

References (PoC included):

http://openwall.com/lists/oss-security/2018/05/06/1

Comment 1 Adam Mariš 2018-05-07 13:36:49 UTC
Created wget tracking bugs for this issue:

Affects: fedora-all [bug 1575635]

Comment 6 errata-xmlrpc 2018-10-30 07:25:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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