Closed
Bug 950423
Opened 11 years ago
Closed 11 years ago
caretPositionFromPoint leaks info about elements in cross-origin documents through CaretPosition accessibility
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 950427
People
(Reporter: mozilla, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
2.25 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Steps to reproduce:
1. Create a page with an iframe and set a cross-origin src
2. Add a call to document.caretPositionFromPoint() inside the parent document with coordinates that would be inside the iframe
3. Navigate to the page with Firefox
Actual results:
document.caretPositionFromPoint() returns a CaretPosition with offsetNode set to the node from inside the iframe, provided it can contain a caret; otherwise offsetNode is set to null.
This leaks whether the element under point is a button input element or scrollbar thumb (whose CaretPositions have accessible and null offsetNodes across principals, unlike with other elements.) It looks like this was alluded to in Bug 857703 .
Expected results:
document.caretPositionFromPoint() should return a CaretPosition with the offsetNode set to the iframe itself when the document it contains is cross-origin, as with document.elementFromPoint().
Reporter | ||
Updated•11 years ago
|
OS: Windows 7 → All
Hardware: x86_64 → All
Reporter | ||
Comment 1•11 years ago
|
||
Updating PoC to (hopefully) repro on bugzilla.
Attachment #8347696 -
Attachment is obsolete: true
![]() |
||
Comment 2•11 years ago
|
||
> should return a CaretPosition with the offsetNode set to the iframe itself when the
> document it contains is cross-origin
Yes, that would make sense to me.
We should raise spec issues about this and the elementFromPoint behavior, by the way.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•11 years ago
|
Component: Security → DOM
Reporter | ||
Comment 3•11 years ago
|
||
It looks like this was fixed by the patch in Bug 950427
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Updated•9 years ago
|
Group: core-security → core-security-release
Updated•8 years ago
|
Group: core-security-release
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•