Bug 1224909 (CVE-2015-3200)

Summary: CVE-2015-3200 lighttpd: log injection via malformed base64 string in Authentication header
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gwync, mike, rhbugs
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:41:24 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: 1224910, 1224911    
Bug Blocks:    

Description Martin Prpič 2015-05-26 07:54:29 UTC
A flaw was found in Lighttpd:

When basic HTTP authentication base64 string does not contain colon character (or contains it after NULL byte - can be inserted inside base64 encoding), then that situation is logged with a string ": is missing in " and the simply decoded base64 string. This means that new lines, NULL byte and everything else can be encoded with base64 and are then inserted to logs as they are after decoding.

For example header "Authorization: Basic dGVzdAAKMjEwMC0wMS0wMSAwMDowMDowMDogKG1hZ2ljLmMuODU5KSBJVCdTIFRIRSBFTkQgT0YgVEhFIFdPUkxEIQ==" results in two log lines:

"
2015-05-14 12:55:54: (http_auth.c.859) : is missing in test
2100-01-01 00:00:00: (magic.c.859) IT'S THE END OF THE WORLD
"

Upstream issue:

http://redmine.lighttpd.net/issues/2646

External References:

http://jaanuskp.blogspot.com/2015/05/cve-2015-3200.html

Comment 1 Martin Prpič 2015-05-26 07:54:58 UTC
Created lighttpd tracking bugs for this issue:

Affects: fedora-all [bug 1224910]
Affects: epel-all [bug 1224911]

Comment 2 Vasyl Kaigorodov 2015-06-01 11:36:29 UTC
Acknowledgements:

Red Hat would like to thank Jaanus Kääp for reporting this issue.

Comment 3 W. Michael Petullo 2015-10-28 01:02:14 UTC
Should someone close this bug?

Comment 4 Product Security DevOps Team 2019-06-08 02:41:24 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.