Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using calibre safely?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin O'Gorman  
View profile  
 More options Nov 29 2011, 1:09 pm
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Tue, 29 Nov 2011 10:09:49 -0800
Local: Tues, Nov 29 2011 1:09 pm
Subject: Using calibre safely?
For a few months now I've been using calibre to access the 100-or-so
ebooks that I have (mostly DRM-free PDFs).
I just became aware of a vulnerability built in to calibre.
I am not enormously worried because this is a one-user system, and the
vulnerability seems to involve privilege
escalation by authorized users.

On the other hand, it appears that my calibre is listening on a TCP
port.  It's on a laptop behind a NAT router at
the moment, so I'm still safe, but because I'd like to migrate to
another system that is exposed to the net, I'd like
it to stop network access because I'm not networking any of these
books.  Not intentionally, anyway.

I'm open to advice and suggestions, including replacing calibre with
something else, but I have to end up with access to
my library and reasonable security.

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rashkae  
View profile  
 More options Nov 29 2011, 2:18 pm
From: Rashkae <ubu...@tigershaunt.com>
Date: Tue, 29 Nov 2011 14:18:06 -0500
Local: Tues, Nov 29 2011 2:18 pm
Subject: Re: Using calibre safely?
On 11/29/2011 01:09 PM, Kevin O'Gorman wrote:

> On the other hand, it appears that my calibre is listening on a TCP
> port.  It's on a laptop behind a NAT router at
> the moment, so I'm still safe, but because I'd like to migrate to
> another system that is exposed to the net, I'd l

If you have a Internet facing system, then turn on the firewall.  This
should *always* be done.  No matter how secure a default install is, it
is way too easy to unknowingly install a package that listens for
incoming network connections.

By default, Ubuntu installs UFW.  Basic firewall protection is as simple
as editing your /etc/ufw.conf file and changing Enabled to yes.

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shaun ONeil  
View profile  
 More options Nov 29 2011, 2:46 pm
From: Shaun ONeil <sh...@oneil.me.uk>
Date: Tue, 29 Nov 2011 19:46:44 +0000
Local: Tues, Nov 29 2011 2:46 pm
Subject: Re: Using calibre safely?
Hi Kevin,

On 29 Nov 2011, at 18:09, Kevin O'Gorman wrote:

> For a few months now I've been using calibre to access the 100-or-so
> ebooks that I have (mostly DRM-free PDFs).
> I just became aware of a vulnerability built in to calibre.
> I am not enormously worried because this is a one-user system, and the
> vulnerability seems to involve privilege
> escalation by authorized users.

The escalation that made the rounds lately does *not* affect Ubuntu (since 10.10), or most other distros.  The 'helper' was replaced by the packager by something which better integrated with the methods Ubuntu uses for mounting disks - see https://bugs.launchpad.net/calibre/+bug/885027/comments/30

> On the other hand, it appears that my calibre is listening on a TCP
> port.  It's on a laptop behind a NAT router at
> the moment, so I'm still safe, but because I'd like to migrate to
> another system that is exposed to the net, I'd like
> it to stop network access because I'm not networking any of these
> books.  Not intentionally, anyway.

That one I wasn't expecting.  Do you have Sharing enabled?  (Preferences -> Sharing -> 'Sharing over the net')  I believe that's the only place mine's listening.

> I'm open to advice and suggestions, including replacing calibre with
> something else, but I have to end up with access to
> my library and reasonable security.

> --
> Kevin O'Gorman, PhD

Regards,
  Shaun ONeil
--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ernest Doub  
View profile  
 More options Nov 29 2011, 6:21 pm
From: Ernest Doub <hideser...@gmail.com>
Date: Tue, 29 Nov 2011 15:21:14 -0800
Local: Tues, Nov 29 2011 6:21 pm
Subject: Re: Using calibre safely?

You might look at FBReader, available through the Ubuntu Software Center.
I have it installed on my tablet as well as my desktop.  Don't use it very
often as I am satisfied with the Aldiko reader for my tablet and usually
are working with Open Office or PDF docs on the desktop.
--

“If I had a dollar for every time that capitalism was blamed for the
problems caused by government, I’d be a fat filmmaker with a baseball
cap.”  - from a Facebook viral video
<http://linuxcounter.net/cert/544489.png>

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Gorman  
View profile  
 More options Nov 30 2011, 2:43 am
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Tue, 29 Nov 2011 23:43:11 -0800
Local: Wed, Nov 30 2011 2:43 am
Subject: Re: Using calibre safely?

On Tue, Nov 29, 2011 at 11:46 AM, Shaun ONeil <sh...@oneil.me.uk> wrote:
> Hi Kevin,

> On 29 Nov 2011, at 18:09, Kevin O'Gorman wrote:

>> For a few months now I've been using calibre to access the 100-or-so
>> ebooks that I have (mostly DRM-free PDFs).
>> I just became aware of a vulnerability built in to calibre.
>> I am not enormously worried because this is a one-user system, and the
>> vulnerability seems to involve privilege
>> escalation by authorized users.

> The escalation that made the rounds lately does *not* affect Ubuntu (since 10.10), or most other distros.  The 'helper' was replaced by the packager by something which better integrated with the methods Ubuntu uses for mounting disks - see https://bugs.launchpad.net/calibre/+bug/885027/comments/30

I'm not using the Ubuntu version, but instead I use the calibre python
installer.  I much prefer the modern version, and 10.04 LTS is just so
out of date.  So I'm going to have to roll my own security.  I'll have
a look at that launchpad bug.

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sktsee  
View profile  
 More options Nov 30 2011, 8:26 am
From: sktsee <skts...@gmail.com>
Date: Wed, 30 Nov 2011 07:26:49 -0600
Local: Wed, Nov 30 2011 8:26 am
Subject: Re: Using calibre safely?
On 11/30/2011 01:43 AM, Kevin O'Gorman wrote:

http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/Changelog...

title: "Remove the suid mount helper used on linux and bsd, as it proved
impossible to make it secure."

This entry was under the version 0.8.25 section of calibre's changelog
and took effect 2011-11-06. The current version is 0.8.28 so that
particular issue has been remedied.

--
sktsee

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Gorman  
View profile  
 More options Nov 30 2011, 12:22 pm
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Wed, 30 Nov 2011 09:22:28 -0800
Local: Wed, Nov 30 2011 12:22 pm
Subject: Re: Using calibre safely?

Not really.  Natty shows version 0.7.44 in the repositories.  The
current version from
the source is 0.8.28, and it still has the offending mount helper at
/opt/calibre/bin/calibre-mount-helper.

I guess I'll just delete it each time I upgrade.

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hakan Koseoglu  
View profile  
 More options Nov 30 2011, 12:30 pm
From: Hakan Koseoglu <ha...@koseoglu.org>
Date: Wed, 30 Nov 2011 17:30:22 +0000
Local: Wed, Nov 30 2011 12:30 pm
Subject: Re: Using calibre safely?
Kevin,
On 30/11/11 17:22, Kevin O'Gorman wrote:

> Not really.  Natty shows version 0.7.44 in the repositories.  The
> current version from
> the source is 0.8.28, and it still has the offending mount helper at
> /opt/calibre/bin/calibre-mount-helper.

> I guess I'll just delete it each time I upgrade.

Stick to the version coming from ubuntu. If you check the contents of
/usr/bin/calibre-mount-helper you will see that author's stupid code has
been replaced with udisks & eject by Debian lot.

--
Hakan (m1fcj) - http://www.hititgunesi.org
"What part of 'ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn'
don't you understand?"

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sktsee  
View profile  
 More options Nov 30 2011, 1:07 pm
From: sktsee <skts...@gmail.com>
Date: Wed, 30 Nov 2011 12:07:29 -0600
Local: Wed, Nov 30 2011 1:07 pm
Subject: Re: Using calibre safely?
On 11/30/2011 11:22 AM, Kevin O'Gorman wrote:

Actually it's been remedied in Ubuntu packages since Maverick.

http://changelogs.ubuntu.com/changelogs/pool/universe/c/calibre/calib...

calibre (0.7.2+dfsg-1) unstable; urgency=low

   * New major upstream version. See
http://calibre-ebook.com/new-in/seven for
     details.
   * Refresh patches to apply cleanly.
   * debian/control: Bump python-cssutils to >= 0.9.7~ to ensure the
existence
     of the CSSRuleList.rulesOfType attribute. This makes epub
conversion work
     again. (Closes: #584756)
   * Add debian/local/calibre-mount-helper: Simple and safe replacement
for upstream's calibre-mount-helper, using udisks --mount and eject.
     (Closes: #584915, LP: #561958)

And with respect to Lucid's version, I don't think it ever was a problem
since, AFAICT, that version didn't have calibre-mount-helper included.
It's certainly not in the package's filelist.

http://packages.ubuntu.com/lucid/all/calibre/filelist

As Hakan mentioned in his reply, what calibre-mount-helper does now is
simply call udisks to mount/unmount devices. This process no longer
requires setuid privileges for calibre-mount-helper, which is what the
entire brouhaha centered around.

--
sktsee

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Gorman  
View profile  
 More options Nov 30 2011, 5:23 pm
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Wed, 30 Nov 2011 14:23:29 -0800
Local: Wed, Nov 30 2011 5:23 pm
Subject: Re: Using calibre safely?

Dunno about Lucid, but it's definitely there (and using udisks) in
Natty's 0.7.44,
as /usr/bin/calibre-mount-helper.

OTOH, the current calibre from its author has a binary mount helper
instead of the
script that was there before, but it's still SUID+SGID which seems an
overreach for a non-administrative package.  I have removed the admin
bits, and will see if the package still works for me.  I have no idea
why the mount helper is even needed -- maybe for remote libraries?

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Gorman  
View profile  
 More options Nov 30 2011, 5:39 pm
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Wed, 30 Nov 2011 14:39:17 -0800
Local: Wed, Nov 30 2011 5:39 pm
Subject: Re: Using calibre safely?

AFAICT I'm not sharing.  I've not activated it either through 'Sharing
over the net' nor the separate 'Connect/share' selections.

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sktsee  
View profile  
 More options Dec 1 2011, 10:47 am
From: sktsee <skts...@gmail.com>
Date: Thu, 1 Dec 2011 15:47:22 +0000 (UTC)
Local: Thurs, Dec 1 2011 10:47 am
Subject: Re: Using calibre safely?

On Wed, 30 Nov 2011 14:23:29 -0800, Kevin O'Gorman wrote:

[snip]

> Dunno about Lucid, but it's definitely there (and using udisks) in
> Natty's 0.7.44,
> as /usr/bin/calibre-mount-helper.

> OTOH, the current calibre from its author has a binary mount helper
> instead of the
> script that was there before, but it's still SUID+SGID which seems an
> overreach for a non-administrative package.  I have removed the admin
> bits, and will see if the package still works for me.  I have no idea
> why the mount helper is even needed -- maybe for remote libraries?

That's a bit odd that it still installs calibre-mount-helper as SUID+SGID,
since it doesn't actually do anything.

$ strace -q -eprocess /opt/calibre/bin/calibre-mount-helper
execve("/opt/calibre/bin/calibre-mount-helper", ["/opt/calibre/bin/
calibre-mount-h"...], [/* 43 vars */]) = 0
exit_group(1)  

If you examine the source code, apparently this is exactly what it is
supposed to do:
http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/
devices/linux_mount_helper.c

I was under the impression that the developer had modified calibre-mount-
helper to simply call udisks to handle removable media, but he actually
has calibre-mount-helper do nothing but exit with an error. Calibre now
calls a separate helper program (called udisks.py appropriately enough)
to invoke udisks.

From what I can tell just perusing some of the changed files in that
particular revision, it doesn't appear that the mount helper is called by
anything. In fact, if you were to install Calibre in your home directory
as non-root, the mount helper doesn't get installed at all. I guess there
could be some 3rd party plugins that depend on the mount helper being
present, but other than that scenario, I'm at loss to explain why it's
still included with the main program.

Removing the suid+sgid bits sounds like a good idea though, even if the
program does nothing more than immediately exit when run.

--
sktsee

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Gorman  
View profile  
 More options Dec 2 2011, 2:57 pm
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Fri, 2 Dec 2011 11:57:32 -0800
Local: Fri, Dec 2 2011 2:57 pm
Subject: Re: Using calibre safely?

On Thu, Dec 1, 2011 at 7:47 AM, sktsee <skts...@gmail.com> wrote:
> On Wed, 30 Nov 2011 14:23:29 -0800, Kevin O'Gorman wrote:

 [snip]

> If you examine the source code, apparently this is exactly what it is
> supposed to do:
> http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/
> devices/linux_mount_helper.c

Surprised, I verified this with the debugger.  On my x86, the entire program is:

(gdb) disass
Dump of assembler code for function main:
   0x080483b4 <+0>:       push   %ebp
   0x080483b5 <+1>:       mov    %esp,%ebp
   0x080483b7 <+3>:       mov    $0x1,%eax
   0x080483bc <+8>:       pop    %ebp
   0x080483bd <+9>:       ret
End of assembler dump.
(gdb)

Pretty much identical to false(1).  Not much danger there.

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin O'Gorman  
View profile  
 More options Dec 3 2011, 12:18 am
From: "Kevin O'Gorman" <kogor...@gmail.com>
Date: Fri, 2 Dec 2011 21:18:58 -0800
Local: Sat, Dec 3 2011 12:18 am
Subject: Re: Using calibre safely?

On Tue, Nov 29, 2011 at 11:18 AM, Rashkae <ubu...@tigershaunt.com> wrote:
> On 11/29/2011 01:09 PM, Kevin O'Gorman wrote:

> If you have a Internet facing system, then turn on the firewall.  This
> should *always* be done.  No matter how secure a default install is, it is
> way too easy to unknowingly install a package that listens for incoming
> network connections.

> By default, Ubuntu installs UFW.  Basic firewall protection is as simple as
> editing your /etc/ufw.conf file and changing Enabled to yes.

I tried it: edited the config file /etc/ufw/ufw.conf, and rebooted.
My apache2 web server was blocked, in spite of the entry in
/etc/ufw/applications.d.

So I disabled it again.  I'll have to spend more time reading the
documentation.  I find the mixture of configuration lines and commands
to be confusing.  I don't want to have to enter commands every time I
reboot. The bloody thing creates 31 separate tables, and there's a lot
of structure but not much guidance.  Besides that, the stuff in
applications.d has some pretty confusing stuff, which may not even be
used judging by the blocking of apache.

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu-us...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »