firefox binary file name making apparmor ineffective

Bug #430566 reported by Hadmut Danisch
260
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.0

Hi,

I usually use apparmor on some of my machines to protect against flaws in firefox, but was recently surprised that firefox was not covered by the apparmor profile anymore.

The reason is that the binary is named /usr/lib/firefox-3.0.14/firefox and thus contains a version number. Unfortunately, apparmor does not catch binaries by wildcards, it needs a precise match. My (older) apparmor profile was set to protect /usr/lib/firefox/firefox.bin

Even if I create a new profile for /usr/lib/firefox-3.0.14/firefox, it will be rendered ineffective again once the next security update brings firefox to 3.0.15 and so on.

Unfortunately, this has the effect that a security update can turn apparmor protection off and thus make the system less secure.

For an attacker this means that a good time to attack ubuntu systems through firefox is not - as expected - before a security update happened, but after the security update, because then most firefoxes will be unprotected.

regards

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for using Ubuntu and taking the time to report a bug.

You are quite correct in your assessment, and the flaw is in AppArmor itself. The Ubuntu development release (Karmic) has fixes to make binary filename globbing work, though I think you should be able to get this to work in Ubuntu 9.04 (Jaunty) if you specify the filename like so:

/usr/lib/firefox-3.0.*/firefox {
  ...
}

In fact, firefox-3.5 (the default in Karmic) now has an opt-in profile that you can use that takes advantage of this. As such, I am going to mark this as 'Fix Released'.

visibility: private → public
affects: firefox-3.0 (Ubuntu) → apparmor (Ubuntu)
Changed in apparmor (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.