Closed Bug 405976 Opened 18 years ago Closed 18 years ago

XMLHttpRequest in a local file can open any local file

Categories

(Firefox :: Security, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: guninski, Unassigned)

Details

Attachments

(1 file)

XMLHttpRequest in a local file can open any local file, bypassing file restrictions on trunk. this allows at least reading xml files (branch can easily read 'text/plain') done via the normal usage of XMLHttpRequest
open it locally
hm, i am not sure reading xml files is easily possible: even well formed xml files produce error in js console. this may be invalid, though it is kinda strange doing the xml request.
probably this is invalid
It's able to read my /etc/passwd if I have security.fileuri.origin_policy=3, but with security.fileuri.origin_policy=2 (the current default), it gets an empty responseText and a strange error message.
Group: security
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: