<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>210754</bug_id>
          <alias>CVE-2008-0932</alias>
          <creation_ts>2008-02-19 20:46 0000</creation_ts>
          <short_desc>app-text/sword &lt;1.5.8-r2 shell command injection (CVE-2008-0932)</short_desc>
          <delta_ts>2008-03-03 21:33:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://secunia.com/advisories/29012/</bug_file_loc>
          <status_whiteboard>B1 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>py@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>theology@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2008-02-19 20:46:45 0000</bug_when>
            <thetext>A vulnerability has been discovered in SWORD, which can be exploited by malicious people to compromise a vulnerable system.

The vulnerability is caused due to an input sanitation error in diatheke.pl and can be exploited to inject and execute arbitrary shell commands via a specially crafted &quot;range&quot; parameter.

This is related to:
SA13897

The vulnerability is confirmed in version 1.5.10 and reported in version 1.5.9. Other versions may also be affected.

Solution:
Filter malicious characters and character sequences in a web proxy.

Provided and/or discovered by:
Reported via a Debian bug report by Dan Dennison.

Original Advisory:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466449</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2008-02-19 21:23:04 0000</bug_when>
            <thetext>Created an attachment (id=144014)
shell_escape for the range parameter

here&apos;s the patch, courtesy of Debian.theology herd, please bump.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2008-02-19 21:25:16 0000</bug_when>
            <thetext>bah, forgot to set status, sorry fot the bugspam.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2008-02-20 04:04:42 0000</bug_when>
            <thetext>Fixed versions in CVS: 1.5.8-r2, 1.5.9-r2, 1.5.10-r2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2008-02-20 08:16:57 0000</bug_when>
            <thetext>Thx Steve for the quick fix.

Arches please test and mark stable. Target keywords are:

sword-1.5.8-r2.ebuild:KEYWORDS=&quot;amd64 ppc x86&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2008-02-20 08:53:31 0000</bug_when>
            <thetext>You shall not make wrongful use of the functions of your program....sorry, could not resist. x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>welp@gentoo.org</who>
            <bug_when>2008-02-21 18:51:24 0000</bug_when>
            <thetext>amd64 done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2008-02-22 14:23:24 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-02-24 20:38:02 0000</bug_when>
            <thetext>Fixed in release snapshot.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-02-26 22:44:41 0000</bug_when>
            <thetext>CVE-2008-0932 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-0932):
  diatheke.pl in The SWORD Project Diatheke 1.5.9 and earlier allows remote
  attackers to execute arbitrary commands via shell metacharacters in an
  unspecified parameter.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2008-03-03 21:33:40 0000</bug_when>
            <thetext>GLSA 200803-06</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144014</attachid>
            <date>2008-02-19 21:23 0000</date>
            <desc>shell_escape for the range parameter</desc>
            <filename>sword_escape_range.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">Ky0tLSBzd29yZC0xLjUuOS5vcmlnL3V0aWxpdGllcy9kaWF0aGVrZS9jZ2kvZGlhdGhla2UucGwg
ICAgICAgIDIwMDgtMDItMTggMjI6MTA6MDkuMDAwMDAwMDAwICswMDAwCisrKysgc3dvcmQtMS41
LjkvdXRpbGl0aWVzL2RpYXRoZWtlL2NnaS9kaWF0aGVrZS5wbCAgICAgMjAwOC0wMi0xOCAyMjoz
MDoyNS4wMDAwMDAwMDAgKzAwMDAKK0BAIC0xMTAsOCArMTEwLDcgQEAKKyAgICAgICAgICAgJHJh
bmdlID0gJG15ZGF0YTsKKyAgICAgICAgICAgJHJhbmdlID1+IHRyLysvIC87CisgICAgICAgICAg
ICRyYW5nZSA9fiBzLyUoW2EtZkEtRjAtOV1bYS1mQS1GMC05XSkvcGFjaygiQyIsIGhleCgkMSkp
L2VnOworLSAgICAgICAgICAkcmFuZ2UgPSAiLXIgXCIkcmFuZ2VcIiI7CistICAgICAgICAgICAg
JHJhbmdlID0gc2hlbGxfZXNjYXBlKCRyYW5nZSk7CisrICAgICAgICAgICRyYW5nZSA9ICItciAn
IiAuIHNoZWxsX2VzY2FwZSgkcmFuZ2UpIC4gIiciOworICAgICAgIH0KKworICAgICAgIGVsc2lm
ICgkdmFybmFtZSBlcSAic3Ryb25ncyIpIHsK
</data>        

          </attachment>
    </bug>

</bugzilla>