First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 198473
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Axel Reimann <axel.privat@web.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
sarab.conf.patch let dar read encryption options from file sarab.crypt instead of command line patch Axel Reimann 2007-11-10 19:35 0000 757 bytes Details | Diff
sarab.crypt new file /etc/sarab/sarab.crypt containing encryption options text/plain Axel Reimann 2007-11-10 19:37 0000 278 bytes Details
sarab.conf.patch let dar read encryption options from file sarab.crypt instead of command line patch Axel Reimann 2007-11-10 19:46 0000 763 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 198473 depends on: Show dependency tree
Bug 198473 blocks: 212048

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-11-08 18:04 0000
The way the Gentoo scripts configure sarab (which in turn feeds dar) makes 
any user-configured keyphrases visible to everybody with shell access.

Reproducible: Always

Steps to Reproduce:
1. set encryption options including keyphrase in /etc/sarab.conf
2. run a non-trivial backup, so dar is running a few seconds
3. call 'ps --aux' as any user to read confidential keyphrase from shell




It is absolutely trivial to fix this problem by e.g. outsourcing 
the encryption settings to a third file and include this file via
sarab's command line option (and dar's respectively):   '--batch'

A call to 'top' or 'ps' would in that case only show where the
password is stored, instead of unveiling the keyphrase directly.

------- Comment #1 From Robert Buchholz 2007-11-09 09:43:08 0000 -------
App-backup, the application is in your category, but maintainer-needed.
Can you advise on this?

------- Comment #2 From Robin Johnson 2007-11-09 09:52:14 0000 -------
security:
It's an old package that mkennedy maintained before he retired.
No upstream releases for a couple of years, but from what I'm told, it's still
very applicable to the tree. Matsuu maintains DAR, so he might have some
insights.

axel.privat: could you please attach a patch that implements what you describe?

------- Comment #3 From Axel Reimann 2007-11-10 19:35:20 0000 -------
Created an attachment (id=135665) [details]
let dar read encryption options from file sarab.crypt instead of command line

------- Comment #4 From Axel Reimann 2007-11-10 19:37:20 0000 -------
Created an attachment (id=135667) [details]
new file /etc/sarab/sarab.crypt containing encryption options

------- Comment #5 From Axel Reimann 2007-11-10 19:43:54 0000 -------
Outsourcing the encryption options to a file that is to be read by dar
alters the command line in a way that prevents the keyphrase from beeing
exposed. The above patches work for me, hope it helps others, too.
Please let me know if the patch cannot be applied (it's the first time
I tried to create a patch file) -- I'd like to see the sarab package
stay around for a while as it works just as advertised. :)

------- Comment #6 From Axel Reimann 2007-11-10 19:46:19 0000 -------
Created an attachment (id=135668) [details]
let dar read encryption options from file sarab.crypt instead of command line

fixed comment

------- Comment #7 From Axel Reimann 2007-11-10 19:55:52 0000 -------
...forgot to say that, of course, the file sarab.crypt must have the 
same restrictive permissions as the file sarab.conf:

> chmod 600 sarab.crypt

------- Comment #8 From Pierre-Yves Rofes 2007-11-13 19:09:07 0000 -------
app-backup, does the patch seem ok? If yes, please provide an updated ebuild. 

------- Comment #9 From Pierre-Yves Rofes 2007-12-08 23:55:03 0000 -------
(In reply to comment #8)
> app-backup, does the patch seem ok? If yes, please provide an updated ebuild. 
> 

*ping*

------- Comment #10 From Pierre-Yves Rofes 2008-05-11 13:41:29 0000 -------
(In reply to comment #9)
> (In reply to comment #8)
> > app-backup, does the patch seem ok? If yes, please provide an updated ebuild. 
> > 
> 
> *ping*
> 
... timeout :(

could someone please apply the patches so that we can move forward? thanks.

------- Comment #11 From Robert Buchholz 2008-05-12 19:39:11 0000 -------
0.2.3 is released, and it has included a new password mechanism. From my
understanding, it's vulnerable to the same issue. I contacted upstream to work
out a solution, because from what I understand, the solution posted here has
drawbacks in terms of "testing" backups.

I'll report back whenever I have a reply and hopefully bump the package.

------- Comment #12 From Pierre-Yves Rofes 2008-06-01 18:10:36 0000 -------
0.2.4 has been released. rbu, feel like bumping it?

------- Comment #13 From Robert Buchholz 2008-06-01 18:59:34 0000 -------
Right, upstream was very helpful via private mail. I wanted to review the code
changes before bumping it though, hopefully soon.

------- Comment #14 From Robert Buchholz 2008-06-03 22:52:11 0000 -------
*sarab-0.2.4 (03 Jun 2008)

  03 Jun 2008; Robert Buchholz <rbu@gentoo.org>
  -files/0.2.2-fix-rotation-gentoo.patch,
  -files/0.2.2-test-with-encryption-gentoo.patch,
  -files/0.2.2-refname-calculation-gentoo.patch,
  +files/0.2.4-better-defaults-gentoo.patch,
  -files/0.2.2-better-defaults-gentoo.patch, files/README.Gentoo,
  -sarab-0.2.2-r1.ebuild, -sarab-0.2.2-r2.ebuild, +sarab-0.2.4.ebuild:
  Version bump, fixes security bug #198473 (CVE-2008-2517), DAR encryption
  passwords were visible to local users via ps. Also introduces support for
  newer versions of DAR (bug #212048).

First Last Prev Next    No search results available      Search page      Enter new bug