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

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

    <bug>
          <bug_id>12545</bug_id>
          
          <creation_ts>2007-08-13 17:33:42 +0400</creation_ts>
          <short_desc>insecure temporary file handling in /usr/lib/cups/filter/pstops-wrapper</short_desc>
          <delta_ts>2008-02-05 12:57:21 +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>cups</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>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14167</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>george</cc>
    
    <cc>ldv</cc>
    
    <cc>rider</cc>
    
    <cc>sr</cc>
    
    <cc>yurix</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53975</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2007-08-13 17:33:42 +0400</bug_when>
    <thetext>/usr/lib/cups/filter/pstops-wrapper contains this:

LOGFILE=/tmp/pstops-wrapper.log
REALFILTER=/usr/lib/cups/filter/pstops
TEMPFILE=/tmp/pstops-wrapper.temp.file

Both of them are used inconditionally and can be suitable for symlink attack!

[ while at it, might be handy to provide a hook for extra PS filter here ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61996</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-26 02:03:40 +0300</bug_when>
    <thetext>Это cups-pstops-wrapper/pstops-wrapper.
Если используется, то надо фиксить, иначе выкинуть.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62009</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2008-01-26 12:16:37 +0300</bug_when>
    <thetext>Я наткнулся, пока что-то трейсил (с cndrvcups-capt).  Зуб не дам, но насколько
помню -- в том случае этот скрипт использовался.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62455</commentid>
    <comment_count>3</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2008-02-01 18:21:52 +0300</bug_when>
    <thetext>этот фильтр не из стандартной поставки cups - проще убрать.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62582</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2008-02-04 21:49:55 +0300</bug_when>
    <thetext>Давай я мож лучше патч сделаю?  Если не ошибаюсь и cndrvcups-capt его использует
(а не сам тогда кувыркался) -- есть шанс нарваться, по ШкП упоминали LBP-2900.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62663</commentid>
    <comment_count>5</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2008-02-05 12:57:21 +0300</bug_when>
    <thetext>Этот фильтр сделал yurix, так что возможно capt стоит забрать этот фильтр себе ;)
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>