Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428640 - On Firefox 10.0.5 you can get access mostly to any file content in /etc
Summary: On Firefox 10.0.5 you can get access mostly to any file content in /etc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-30 11:37 UTC by Emil
Modified: 2012-07-30 12:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emil 2012-07-30 11:37:44 UTC
On Firefox 10.0.5 I get access to files content in the /etc directory by using "/etc/<any file>" or "file:///etc/<any file>" in the location bar.

Reproducible: Always

Steps to Reproduce:
1.Open Firefox
2.Type "/etc/passwd" or "file:///etc/passwd" in the location bar
3.Press enter or "Go" button
Actual Results:  
The content of the passwd file was exposed

Expected Results:  
Not getting access.

uname -r: 3.3.8-gentoo
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-07-30 11:49:13 UTC
The access of local files via file:// is intentional and not a bug.

If you want this changed, contact upstream (but I doubt that they will).
Comment 2 Emil 2012-07-30 12:00:03 UTC
(In reply to comment #1)
> The access of local files via file:// is intentional and not a bug.
> 
> If you want this changed, contact upstream (but I doubt that they will).

I understand that it is intentional. But it is wrong to provide access to system wide configuration files to users. As a user I am unable to see content of a lot of configuration files in /etc through bash then why would that be possible through Firefox? Isn't this a security threat?
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2012-07-30 12:04:18 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > The access of local files via file:// is intentional and not a bug.
> > 
> > If you want this changed, contact upstream (but I doubt that they will).
> 
> I understand that it is intentional. But it is wrong to provide access to
> system wide configuration files to users. As a user I am unable to see
> content of a lot of configuration files in /etc through bash then why would
> that be possible through Firefox? Isn't this a security threat?

You can read exactly the same files you can as through bash.