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

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

    <bug>
          <bug_id>24333</bug_id>
          
          <creation_ts>2010-10-16 12:49:07 +0400</creation_ts>
          <short_desc>CVE-2010-3385: insecure library loading</short_desc>
          <delta_ts>2011-10-12 03:17:21 +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>tuxguitar</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://bugs.debian.org/598307</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="Andrey Kovalev">ded</assigned_to>
          <cc>ded</cc>
    
    <cc>evg</cc>
    
    <cc>icesik</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113836</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir Lettiev">crux</who>
    <bug_when>2010-10-16 12:49:07 +0400</bug_when>
    <thetext>The vulnerability is introduced by an insecure change to
LD_LIBRARY_PATH, and environment variable used by ld.so(8) to look for
libraries on a directory other than the standard paths.

Vulnerable code follows:

/usr/bin/tuxguitar line 129:
        export LD_LIBRARY_PATH=&quot;$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME&quot;

When there&apos;s an empty item on the colon-separated list of
LD_LIBRARY_PATH, ld.so treats it as &apos;.&apos; (i.e. CWD/$PWD.)
If the given script is executed from a directory where a potential,
local, attacker can write files to, there&apos;s a chance to exploit this
bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113842</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2010-10-16 13:34:19 +0400</bug_when>
    <thetext>Не понял, мне прислать патч для ld.so, чтобы он пустое поле не считал &apos;.&apos; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113843</commentid>
    <comment_count>2</comment_count>
    <who name="Vladimir Lettiev">crux</who>
    <bug_when>2010-10-16 13:43:18 +0400</bug_when>
    <thetext>:)
Разговоры об этом идут давно, но ещё никто не смог протащить такое в апстрим.

Правильнее обернуть так:
export LD_LIBRARY_PATH=&quot;${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZILLA_FIVE_HOME&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126171</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2011-10-12 02:17:19 +0400</bug_when>
    <thetext>В данном скрипте LD_LIBRARY_PATH не может быть пустой из-за строки выше:
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/lib/tuxguitar/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126173</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-10-12 03:17:21 +0400</bug_when>
    <thetext>tuxguitar-1.2-alt2 -&gt; sisyphus:

* Tue Oct 11 2011 Vitaly Lipatov &lt;lav@altlinux&gt; 1.2-alt2
- fix CVE-2010-3385: insecure library loading (ALT bug #24333)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>