Bug 532675 (CVE-2009-4611)

Summary: CVE-2009-4611 jetty: escape sequence injection to stack traces
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bressers, jjohnstn, kreilly, overholt, vdanen
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: 2010-11-05 17:20:49 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: 532733, 556593    
Bug Blocks:    
Attachments:
Description Flags
Local copy of the advisory none

Description Tomas Hoger 2009-11-03 13:03:03 UTC
ush.it reported multiple flaws affecting jetty 6.x and 7.x:

  http://www.ush.it/2009/10/25/jetty-6x-and-7x-multiple-vulnerabilities/

Issues reported include:

 E) "Cookie Dump Servlet" escape sequence injection
    (Affected versions: Any)

 F) Http Content-Length header escape sequence injection
    (Affected versions: Any)

An attacker-supplied input containing special characters may be copied to stack traces printed to jetty log when exception is raised due to some problem with parsing user input (non-numeric Max-Age value in case of demo Cookie servlet (E) or non-numeric Content-Length HTTP header value (F)).  When log file is later viewed in a terminal that understands special escape sequences (most graphical terminal emulators), those escape sequences may cause terminal to run an arbitrary command.

Upstream bug:
  http://jira.codehaus.org/browse/JETTY-1129 (no useful info)

Upstream commits referencing JETTY-1129:
  http://fisheye.codehaus.org/changelog/jetty/?cs=5628
  http://fisheye.codehaus.org/changelog/jetty/?cs=5631

Comment 1 Tomas Hoger 2009-11-03 13:04:28 UTC
Created attachment 367294 [details]
Local copy of the advisory

Downloaded on 2009-11-03 from:
  http://www.ush.it/team/ush/hack-jetty6x7x/jetty-adv.txt

Comment 2 Tomas Hoger 2009-11-03 13:14:35 UTC
It's not clear if 5.x versions may be affected by some variant of this problem.

Comment 3 Jeff Johnston 2009-11-03 20:19:22 UTC
Upstream patches listed above applied to Fedora 12 and rawhide.

Comment 5 Vincent Danen 2010-11-05 17:20:49 UTC
This is fixed in upstream 6.1.22 and patched in Fedora 13:

* Tue Nov 03 2009 Jeff Johnston 6.1.21-3
- Security issues - Resolves #532675, #5326565 

and 6.1.20-5 on Fedora 12.