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

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

    <bug>
          <bug_id>2772</bug_id>
          
          <creation_ts>2003-07-18 19:12:50 +0400</creation_ts>
          <short_desc>unescaped shell exec</short_desc>
          <delta_ts>2006-12-17 16:22:26 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>minicom</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>3459</blocked>
    
    <blocked>7079</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Ovsienko">pilot</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>antohami</cc>
    
    <cc>ldv</cc>
    
    <cc>voins</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2533</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2003-07-18 19:12:50 +0400</bug_when>
    <thetext>Закачивал по zmodem музыку себе на ноутбук и понял, что символ ` (shell exec) minicom-2.00.0-alt6 не экранируется. То есть послать файлы такие нельзя --- он вызывает rz и получается битая командная строка.
Вдобавок подумал я: а что, если можно закачать по zmodem файл со специальным именем, который при попытке его принять вызовет arbitrary shell command?
---

---

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5650</commentid>
    <comment_count>1</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2003-07-18 19:14:29 +0400</bug_when>
    <thetext>Хотя нет, в оригинале он вызывал sz всё-таки. Но это роли не играет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9019</commentid>
    <comment_count>2</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2003-07-18 19:14:29 +0400</bug_when>
    <thetext>Хотя нет, в оригинале он вызывал sz всё-таки. Но это роли не играет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5651</commentid>
    <comment_count>3</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-08-12 23:27:25 +0400</bug_when>
    <thetext>Проверил: в minicom Ctrl-A S выбираем zmodem выбираем, например, \&amp;quot;a`z\&amp;quot; -- при посылке происходит не то, что ожидается нормальным пользователем, а то что вы и сказали: команда rz передаётся shell с этим символом, и shell обращается с ним как со специальным.


С sz ничего придумать не получилось: на терминале выполняется \&amp;quot;sz a\\`z\&amp;quot;, при приёме вызывается просто rz, он создаёт файл с таким именем, никаких проблем. А как это произошло у Вас?

edited on: 13-08 00:24</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9020</commentid>
    <comment_count>4</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-08-12 23:27:25 +0400</bug_when>
    <thetext>Проверил: в minicom Ctrl-A S выбираем zmodem выбираем, например, \&amp;quot;a`z\&amp;quot; -- при посылке происходит не то, что ожидается нормальным пользователем, а то что вы и сказали: команда rz передаётся shell с этим символом, и shell обращается с ним как со специальным.


С sz ничего придумать не получилось: на терминале выполняется \&amp;quot;sz a\\`z\&amp;quot;, при приёме вызывается просто rz, он создаёт файл с таким именем, никаких проблем. А как это произошло у Вас?

edited on: 13-08 00:24</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5652</commentid>
    <comment_count>5</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-08-12 23:31:04 +0400</bug_when>
    <thetext>На 2.1-alt1 ошибка с rz повторяется.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9021</commentid>
    <comment_count>6</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-08-12 23:31:04 +0400</bug_when>
    <thetext>На 2.1-alt1 ошибка с rz повторяется.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5653</commentid>
    <comment_count>7</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-08-13 00:17:01 +0400</bug_when>
    <thetext>Reported upstream: &lt;a href=&quot;https://alioth.debian.org/tracker/index.php?func=detail&amp;amp;aid=300083&amp;amp;group_id=31&amp;amp;atid=100031&quot;&gt;https://alioth.debian.org/tracker/index.php?func=detail&amp;amp;aid=300083&amp;amp;group_id=31&amp;amp;atid=100031&lt;/a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9022</commentid>
    <comment_count>8</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-08-13 00:17:01 +0400</bug_when>
    <thetext>Reported upstream: &lt;a href=&quot;https://alioth.debian.org/tracker/index.php?func=detail&amp;amp;aid=300083&amp;amp;group_id=31&amp;amp;atid=100031&quot;&gt;https://alioth.debian.org/tracker/index.php?func=detail&amp;amp;aid=300083&amp;amp;group_id=31&amp;amp;atid=100031&lt;/a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10758</commentid>
    <comment_count>9</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2003-11-28 11:30:04 +0300</bug_when>
    <thetext>any news?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12050</commentid>
    <comment_count>10</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2004-02-28 18:19:53 +0300</bug_when>
    <thetext>В BTS minicom я этого бага уже не нашёл. Какое текущее состояние?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13223</commentid>
    <comment_count>11</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-05-03 00:42:06 +0400</bug_when>
    <thetext>Согласно &quot;cvs -d:pserver:anonymous@cvs.alioth.debian.org:/cvsroot/minicom сo
minicom/ChangeLog&quot;, текущее состояние таково:

2003-09-27  Adam Lackorzynski  &lt;adam@os.inf.tu-dresden.de&gt;

        * src/util.c: fastexec(): disable execution through a shell,
           this is potentially security relevant (e.g. user selects a file
           with embedded shellcode for upload), so disable it for now and
           see if someone complains

Думаю, что надо backportить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16277</commentid>
    <comment_count>12</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2004-07-02 14:34:15 +0400</bug_when>
    <thetext>Согласен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17888</commentid>
    <comment_count>13</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-08-08 20:54:50 +0400</bug_when>
    <thetext>А воз и ныне там?
Может, пакет уже пора передать в хорошие руки?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17890</commentid>
    <comment_count>14</comment_count>
    <who name="Vyacheslav Dikonov">slava</who>
    <bug_when>2004-08-08 22:31:14 +0400</bug_when>
    <thetext>Куда угодно, но чтобы в Мастере был! Он мне бывает нужен, пусть даже и с дыркой. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17900</commentid>
    <comment_count>15</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2004-08-09 12:37:17 +0400</bug_when>
    <thetext>в contrib его
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20681</commentid>
    <comment_count>16</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2004-12-23 18:29:39 +0300</bug_when>
    <thetext>Кх-кх...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20682</commentid>
    <comment_count>17</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-12-23 18:32:17 +0300</bug_when>
    <thetext>Может, пакет уже пора передать в хорошие руки?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25669</commentid>
    <comment_count>18</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2005-06-14 12:40:05 +0400</bug_when>
    <thetext>Похоже что пора !
Ваня, что с пакетом ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25683</commentid>
    <comment_count>19</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-06-14 13:42:17 +0400</bug_when>
    <thetext>pilot: тебя печёт, ты и отбивайся? ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31823</commentid>
    <comment_count>20</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2005-10-13 14:28:07 +0400</bug_when>
    <thetext>fixed in minicom-2.1-alt2 
Приложил патч из Debian. Проверяйте. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>