LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-09-2010, 10:31 PM   #1
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Firefox plug-in interface


I saw there is a Firefox security vulnerability thread, but this seems like a more specific discussion...

I assume that Firefox plug-ins work through some kind of pre-defined interface, correct? So, when I install a plug-in, just /how much/ control and access am I making available to the code for that plug-in?

For example, do plug-ins
...have access to all the cookies stored for my session?
...have permission to communicate with any server the wish?
...have access to all the hard disk data stored in my profile folder? Data in other profiles? Data outside profile folders?

Lately I have been taking a lot of steps to improve the security of my computing experience, including hardened distro installation sources and better firewalls. I love a whole lot of Firefox plug-ins, but wonder about the security. Some approaches I have been thinking about to reduce risk...

A. Use no firefox plugins at all
B. Use only firefox plugins that I absolutely need
C. When possible, run plugins in a separate profile than the one I normally use for browsing and sensitive activities (is this actually any more secure...?)
 
Old 05-09-2010, 10:50 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
If you're that paranoid about security then here:
Make a jail with only what you need.
Build Xorg and Firefox.
Tweak Firefox to be extremely secure and then create a more secure profile.
Run Firefox from the command line with
Code:
/path/to/firefox/bin --sync --no-xshm --safe-mode
And do it all within a virtual environment.


Look at the code for each and then you can answer your own questions.
 
0 members found this post helpful.
Old 05-10-2010, 12:25 AM   #3
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375

Original Poster
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by Mr-Bisquit View Post
If you're that paranoid about security then here:
Make a jail with only what you need.
Like, a jail root for only one application? An intriguing idea...
Quote:
Build Xorg and Firefox.
Running Gentoo, so already done.
Quote:
Tweak Firefox to be extremely secure and then create a more secure profile.
Thanks, but reprogramming Firefox to be more secure wasn't really what I had in mind (there are a lot of people working on that). My question was really more about the inherent (in)security of the Firefox plug-in model. Fundamentally: assuming that a Firefox plug-in /was/ designed to be malicious, what kind of harm is it capable of doing within the restrictions provided by the plug-in interface?
Quote:
Run Firefox from the command line with
Code:
/path/to/firefox/bin --sync --no-xshm --safe-mode
And do it all within a virtual environment.


Look at the code for each and then you can answer your own questions.
Turning off all extensions and running in a virtual environment wasn't quite as pragmatic an approach as I was hoping for, but I'll take it into consideration.

Of course, if I became an expert on Firefox plug-in programming, I wouldn't need to post this thread. Maybe I'll do that some day, but for now I'm just curious if there are any experts around here who have some insight.
 
Old 05-10-2010, 04:00 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by CoderMan View Post
Fundamentally: assuming that a Firefox plug-in /was/ designed to be malicious, what kind of harm is it capable of doing within the restrictions provided by the plug-in interface?
I've wondered about this too, and I look forward to reading posts by anyone who could shed light on this matter. My gut tells me there isn't much protection, if any at all, but I'm kind of a pessimist with these things.
 
Old 05-11-2010, 01:10 AM   #5
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375

Original Poster
Blog Entries: 24

Rep: Reputation: 43
Did a little bit of research: evidently plug-ins are done primarily in Javascript, through some interfaces: XUL (XML User Interface Language), DOM, XPCOM, and a few others. Apparently with XUL and DOM you can manipulate Firefox's interface and any loaded web pages, and XPCOM (alien plasma grenade, anyone?) gives you access to the filesystem and other system components. I'm not sure yet what restrictions there are... but just knowing that the code has access to all my web page DOM trees, plus my network connection, makes me a bit nervous...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The Firefox MPlayer Plug-in AlphaSigmaOne Slackware 5 06-22-2008 08:18 PM
FireFox Plug-in Naperian Linux - Software 6 07-24-2006 03:52 PM
Plug ins and Firefox Veteq Linux - Newbie 2 11-26-2005 11:51 PM
Firefox midi plug-in webwolf70 Linux - Software 0 09-28-2004 10:06 AM
Java Plug-in for FireFox chinaundead Linux - Software 2 03-22-2004 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration