<?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>200285</bug_id>
          
          <creation_ts>2007-11-25 15:14 0000</creation_ts>
          <short_desc>www-misc/htdig &lt;=3.2.0_beta6-r2 Cross-Site-Scripting (CVE-2007-6110)</short_desc>
          <delta_ts>2008-03-06 09:51:25 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://sourceforge.net/mailarchive/forum.php?thread_name=200709251310.55835.mskibbe%40suse.de&amp;forum_name=htdig-dev</bug_file_loc>
          <status_whiteboard>B4 [noglsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rbu@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-11-25 15:14:06 0000</bug_when>
            <thetext>CVE-2007-6110 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-6110):
  Cross-site scripting (XSS) vulnerability in htsearch in htdig 3.2.0b6 allows
  remote attackers to inject arbitrary web script or HTML via the sort
  parameter.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-11-25 15:17:50 0000</bug_when>
            <thetext>Web-apps, please advise.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2007-12-02 15:44:12 0000</bug_when>
            <thetext>Hrm, looks like no upstream activity since 2004. The bug has been reported by SuSE but what I assume is their latest package (htdig-3.2.0b6-123) does not seem to provide a fix for the issue. 

The application is currently marked stable on these architectures:

alpha amd64 hppa ia64 ppc ppc64 sparc x86

We&apos;ll probably have to mask it if there is no way to get a fix for this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-03 00:59:09 0000</bug_when>
            <thetext>Created an attachment (id=137588)
htdig-quoting.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-03 01:00:58 0000</bug_when>
            <thetext>Suse provides an updated package in their 10.2 testing repository, I attached the patch above.

It actually removes the output rather than quoting it, but in the end, that error message would not come from links inside the application anyway.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2007-12-03 08:15:12 0000</bug_when>
            <thetext>Sorry, I obviously didn&apos;t know where I had to check. Thanks for the hint. No I found it too and applied the patch. 

htdig-3.2.0_beta6-r3 is in the tree and needs to be marked stable by

 alpha amd64 hppa ia64 ppc ppc64 sparc x86</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2007-12-03 08:18:46 0000</bug_when>
            <thetext>added arches</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2007-12-03 12:20:43 0000</bug_when>
            <thetext>x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-12-04 10:59:45 0000</bug_when>
            <thetext>alpha/ia64/sparc stable and beandog did amd64</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-12-04 16:05:40 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-12-04 17:58:46 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-12-04 19:46:20 0000</bug_when>
            <thetext>ppc stable, ready for glsa voting</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2007-12-04 23:17:28 0000</bug_when>
            <thetext>non-persistent xss, voting NO.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2007-12-05 05:21:57 0000</bug_when>
            <thetext>Removed insecure ebuild. weapps done here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-12-05 08:45:07 0000</bug_when>
            <thetext>no too, closing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-03-06 09:51:25 0000</bug_when>
            <thetext>Does not affect current (2008.0) release. Removing release.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>137588</attachid>
            <date>2007-12-03 00:59 0000</date>
            <desc>htdig-quoting.patch</desc>
            <filename>htdig-quoting.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGh0ZGlnLTMuMi4wYjYvaHRzZWFyY2gvRGlzcGxheS5jYwo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBo
dGRpZy0zLjIuMGI2Lm9yaWcvaHRzZWFyY2gvRGlzcGxheS5jYworKysgaHRkaWctMy4yLjBiNi9o
dHNlYXJjaC9EaXNwbGF5LmNjCkBAIC0xMzcsNyArMTM3LDcgQEAgRGlzcGxheTo6ZGlzcGxheShp
bnQgcGFnZU51bWJlcikKICAgICAgIC8vIE11c3QgdGVtcG9yYXJpbHkgc3Rhc2ggdGhlIG1lc3Nh
Z2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ocyk7CiAgICAgICAgIC8vcmV0dXJuOwo=
</data>        

          </attachment>
    </bug>

</bugzilla>