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

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

    <bug>
          <bug_id>30714</bug_id>
          
          <creation_ts>2015-02-09 13:35:17 +0300</creation_ts>
          <short_desc>CVE-2014-6271, CVE-2014-7169: удалённое выполнение кода в Bash</short_desc>
          <delta_ts>2015-03-22 23:24:36 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>ALT Linux Server</product>
          <component>security</component>
          <version>4.0.0</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://habrahabr.ru/company/mailru/blog/238475/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>security</keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitry Kabakov">balabasone</reporter>
          <assigned_to name="Anton V. Boyarshinov">boyarsh</assigned_to>
          <cc>zenin_o</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>150090</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry Kabakov">balabasone</who>
    <bug_when>2015-02-09 13:35:17 +0300</bug_when>
    <thetext>Основная опасность заключается в возможности произвольно задать переменные среды внутри интерпретатора Bash, которая задаёт определение функций. Проблемы начинаются в тот момент, когда Bash продолжает обрабатывать команды интерпретатора после определения функции, что позволяет осуществить атаку с внедрением кода. пример:

http-header = Cookie:() { :; }; ping -c 3 209.126.230.74</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150093</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2015-02-09 16:38:46 +0300</bug_when>
    <thetext>4.0 не поддерживается уже очень давно. Используйте более новые дистрибутивы и репозитории.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150784</commentid>
    <comment_count>2</comment_count>
    <who name="Oleg Zenin">zenin_o</who>
    <bug_when>2015-03-21 20:56:00 +0300</bug_when>
    <thetext>Это исправлено в bash-3.2.54:
http://packages.altlinux.org/en/Sisyphus/srpms/bash/get

Пакет пересобирается под branch/4.0 с закомментаренным макросом &apos;%check&apos;:
http://hermes.ihep.su:8001/.rpm/4.0/

Проверка на CVE-2014-6271, CVE-2014-6277, CVE-2014-6278, CVE-2014-7169, CVE-2014-7186, CVE-2014-7187 дыр не показывает:

 https://shellshocker.net/shellshock_test.sh

~% bash --version
GNU bash, version 3.2.54(1)-release (i586-alt-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
~% ./shellshock_test.sh 
CVE-2014-6271 (original shellshock): not vulnerable
CVE-2014-6277 (segfault): not vulnerable
CVE-2014-6278 (Florian&apos;s patch): not vulnerable
CVE-2014-7169 (taviso bug): not vulnerable
CVE-2014-7186 (redir_stack bug): not vulnerable
CVE-2014-7187 (nested loops off by one): not vulnerable
CVE-2014-//// (exploit 3 on http://shellshocker.net/): not vulnerable

Это можно положить в branch/4.0?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150788</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2015-03-22 23:24:36 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Это можно положить в branch/4.0?
Увы, нет, только собрать локально. Сборочная очередь для 4.0 отключена с год назад.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>