summaryrefslogtreecommitdiff
blob: db1255a62b5b35be48b6e8e92ac13f59d8b16068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/xsl/glsa.xsl" type="text/xsl"?>
<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">

<glsa id="201001-09">
  <title>Ruby: Terminal Control Character Injection</title>
  <synopsis>
    An input sanitation flaw in the WEBrick HTTP server included in Ruby might
    allow remote attackers to inject arbitrary control characters into terminal
    sessions.
  </synopsis>
  <product type="ebuild">ruby</product>
  <announced>January 14, 2010</announced>
  <revised>January 14, 2010: 01</revised>
  <bug>300468</bug>
  <access>remote</access>
  <affected>
    <package name="dev-lang/ruby" auto="yes" arch="*">
      <unaffected range="ge">1.8.7_p249</unaffected>
      <unaffected range="rge">1.8.6_p388</unaffected>
      <vulnerable range="lt">1.8.7_p249</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    Ruby is an interpreted scripting language for quick and easy
    object-oriented programming. It comes bundled with a HTTP server
    ("WEBrick").
    </p>
  </background>
  <description>
    <p>
    Giovanni Pellerano, Alessandro Tanasi and Francesco Ongaro reported
    that WEBrick does not filter terminal control characters, for instance
    when handling HTTP logs.
    </p>
  </description>
  <impact type="normal">
    <p>
    A remote attacker could send a specially crafted HTTP request to a
    WEBrick server to inject arbitrary terminal control characters,
    possibly resulting in the execution of arbitrary commands, data loss,
    or other unspecified impact. This could also be used to facilitate
    other attacks.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All Ruby 1.8.7 users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose &quot;&gt;=dev-lang/ruby-1.8.7_p249&quot;</code>
    <p>
    All Ruby 1.8.6 users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose &quot;&gt;=dev-lang/ruby-1.8.6_p388&quot;</code>
  </resolution>
  <references>
    <uri link="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4492">CVE-2009-4492</uri>
  </references>
  <metadata tag="requester" timestamp="Wed, 13 Jan 2010 19:56:42 +0000">
    a3li
  </metadata>
  <metadata tag="submitter" timestamp="Wed, 13 Jan 2010 20:40:12 +0000">
    a3li
  </metadata>
  <metadata tag="bugReady" timestamp="Wed, 13 Jan 2010 20:40:18 +0000">
    a3li
  </metadata>
</glsa>