<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19843</bug_id>
          
          <creation_ts>2009-04-30 09:25:03 +0400</creation_ts>
          <short_desc>Cross-site scripting (XSS) vulnerability in the command-line client</short_desc>
          <delta_ts>2009-06-29 16:12:03 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>MySQL-client</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4456</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>security</keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir Lettiev">crux</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>nickel</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90423</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir Lettiev">crux</who>
    <bug_when>2009-04-30 09:25:03 +0400</bug_when>
    <thetext>При использовании опции --html, существует возможность вставки произвольного веб-скрипта и/или HTML-кода из ячейки таблицы, которую будет обрабатывать клиент, в генерируемый html-документ.

Пример:
mysql --html --execute &quot;select &apos;&lt;a&gt;&apos;&quot;
&lt;TABLE BORDER=1&gt;&lt;TR&gt;&lt;TH&gt;&lt;a&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;a&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;

как видно символы &lt;,&gt; не эскейпятся.

Патч доступен в багзиле mysql: http://bugs.mysql.com/bug.php?id=27884</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93894</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-06-29 00:52:17 +0400</bug_when>
    <thetext>Почему-то не смержен в 5.0.x</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93895</commentid>
    <comment_count>2</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2009-06-29 00:58:43 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Почему-то не смержен в 5.0.x

Патч видел у debian. Добавлю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93926</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2009-06-29 16:12:03 +0400</bug_when>
    <thetext>MySQL-5.0.83-alt2 -&gt; sisyphus:

* Mon Jun 29 2009 L.A. Kostis &lt;lakostis@altlinux&gt; 5.0.83-alt2

- Security fixes:
  + CVE-2008-4456: potential XSS in HTML output (closes #19843).
- Remove obsoleted macros.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>