summaryrefslogtreecommitdiff
blob: f224ab27dfa83cda2a8ffd107219bb5192d087c8 (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
<?xml version="1.0" encoding="utf-8"?>
<!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>2010-01-14</announced>
  <revised count="01">2010-01-14</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 "&gt;=dev-lang/ruby-1.8.7_p249"</code>
    <p>
    All Ruby 1.8.6 users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-lang/ruby-1.8.6_p388"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4492">CVE-2009-4492</uri>
  </references>
  <metadata tag="requester" timestamp="2010-01-13T19:56:42Z">
    a3li
  </metadata>
  <metadata tag="submitter" timestamp="2010-01-13T20:40:12Z">
    a3li
  </metadata>
  <metadata tag="bugReady" timestamp="2010-01-13T20:40:18Z">
    a3li
  </metadata>
</glsa>