Closed
Bug 165110
Opened 23 years ago
Closed 17 years ago
Make textnodes and XUL elements work properly with IsNativeAnonymous
Categories
(Core :: Security, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.4beta
People
(Reporter: john, Assigned: john)
References
Details
Attachments
(1 file)
1.49 KB,
patch
|
sicking
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Neither textnodes nor XUL elements store information about whether they are
anonymous, and this makes it possible for people to access them when they should
not be able to. Related to bug 164086, which created this check in the first place.
Assignee | ||
Comment 2•23 years ago
|
||
Eww is one word to describe this. TextNode and GenericDOMDataNode are saturated
to the max with bits already. We are even reusing the lower two bits.
DOMSlots seems like a bad idea but maybe that's where we have to go.
Status: NEW → ASSIGNED
You still have two bits in nsIDocument* mDocument that you can steal :-). Let's
do it.
Wow, some of these elements must be burning a lot of space on vtable pointers.
So many interfaces...
Whiteboard: [sg:mustfix]
Also, offtopic question: why don't we remove the nsIDocument* mDocument pointer
from all the content nodes, and move it to DOMSlots? For those nodes that don't
have an mDocument pointer, GetDocument can walk the parent chain to until we
find a node that has the pointer. Plus of course we'd force all nodes without a
parent to hold the mDocument pointer in their slots. This would force all
content nodes to support DOMSlots, I guess.
Assignee | ||
Comment 5•23 years ago
|
||
Would work, except that we do GetDocument *constantly*. However, we should do
some tests to see if we can remove it from text nodes, since those would be able
to just get the document from their parent and return that.
Assignee | ||
Comment 6•23 years ago
|
||
CC'ing roc, whose comments seem to make him an interested party
Comment 7•23 years ago
|
||
Is it possible to get this fixed for 1.3a, next Tuesday?
Assignee | ||
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → mozilla1.3beta
Comment 8•22 years ago
|
||
John, I get the impression that there's no security problem here that we know
about, and that making this change would be difficult. Is this accurate? If so,
please remove the sg:mustfix from the status whiteboard. If not, we need this
fixed by 1.4b.
Assignee | ||
Comment 9•22 years ago
|
||
There is no known security vulnerability and the fix is not perfectly trivial.
The fix could be done with a couple days' work, though; and is probably worth it
in terms of future-proofing. I plan to do it asap after I get my current high
priority item off my plate.
Target Milestone: mozilla1.3beta → mozilla1.4beta
Comment 10•22 years ago
|
||
Great, thanks John.
Comment 11•22 years ago
|
||
jkeiser, any progress on the fix for landing early 1.5 alpha?
Comment 12•22 years ago
|
||
added jst and caillon to the cc list...
![]() |
||
Comment 13•21 years ago
|
||
Could we just reopen this so people who run into comments in the code about this
can at least see what the bug is about and try to fix it? I see no reason for
keeping this closed....
Comment 14•21 years ago
|
||
removing confidential flag per discussion by the security group.
Group: security
Comment 15•21 years ago
|
||
This does not completely address bug 251197 comment 11; although it does not
regress the test case Modern scrollbars still do not follow Mac preferences.
Attachment #171457 -
Flags: superreview?(bzbarsky)
Attachment #171457 -
Flags: review?(bugmail)
Attachment #171457 -
Flags: review?(bugmail) → review+
![]() |
||
Comment 16•21 years ago
|
||
Comment on attachment 171457 [details] [diff] [review]
Fix for XUL elements
sr=bzbarsky
Attachment #171457 -
Flags: superreview?(bzbarsky) → superreview+
Comment 17•21 years ago
|
||
XUL element fix checked in.
![]() |
||
Comment 18•20 years ago
|
||
Note, that patch caused bug 280541
Updated•20 years ago
|
Whiteboard: [sg:mustfix] → [sg:fix]
Updated•20 years ago
|
Whiteboard: [sg:fix]
Comment 19•17 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•