<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>56528</bug_id>
          
          <creation_ts>2004-07-09 03:11 0000</creation_ts>
          <short_desc>johntheripper: homepath-bug (serious in 1.6)</short_desc>
          <delta_ts>2004-12-31 22:51:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aholler@gentoo.de</reporter>
          <assigned_to>dragonheart@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>aholler@gentoo.de</who>
            <bug_when>2004-07-09 03:11:51 0000</bug_when>
            <thetext>Calling

/usr/sbin/john -wordfile=/bla/wordlist -rules -stdout=13

results with version 1.6 that /usr/sbin/restore will be overwritten (if root calls john) which imho is a serious bug.


With 1.63 john will try to write to /usr/sbin/john.rec

The reason can be found in path_init (path.c) which is called from main.c and sets the homepath to the directory where the binary is.

I suggest calling path_init with getenv(&quot;HOME&quot;) as parameter.

Regards,

Alexander

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-07-10 15:40:39 0000</bug_when>
            <thetext>will later - overseas at the moment. I&apos;m putting together a big patch set for john and will definately look at this one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-07-22 16:11:31 0000</bug_when>
            <thetext>changed in my compiled patchset. Will release when I get some of that mythical time.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-09-24 06:37:14 0000</bug_when>
            <thetext>sorry for neglecting this bug.

http://dev.gentoo.org/~dragonheart/john.tar.bz2 is a tarball is my little workspace with unpatched and patched version of john. Feel free to submit patches.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2004-12-31 22:51:11 0000</bug_when>
            <thetext>Fixed in johntheripper-1.6.37_p1. Thanks for your patience.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>