Closed Bug 619359 Opened 14 years ago Closed 14 years ago

Security problem with History object

Categories

(Core :: Security, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox5 --- unaffected
blocking2.0 --- final+
status1.9.2 --- unaffected
status1.9.1 --- unaffected

People

(Reporter: moz_bug_r_a4, Assigned: mrbkap)

References

Details

(Whiteboard: [sg:high] fixed by bug 608872[hardblocker])

Attachments

(1 file)

1. Get a History object from a same-origin window. 2. Load a target page in that window. On trunk, it's possible to call history.pushState/replaceState on the target page. On 1.9.2/1.9.1 branches, History object does not have abusable methods.
Attached file testcase - XSS
This tries to get cookies for html5demos.com. This works on trunk. http://html5demos.com/history/ basically does: elem.innerHTML = event.state.x;
Looking at this.
Assignee: nobody → justin.lebar+bug
blocking2.0: --- → ?
(In reply to comment #3) > Is bug 608872 intended to fix this? Yes, says mrbkap.
blocking2.0: ? → final+
Whiteboard: [sg:high]
Assignee: justin.lebar+bug → nobody
Assignee: nobody → mrbkap
Whiteboard: [sg:high] → [sg:high] fixed by bug 608872
Whiteboard: [sg:high] fixed by bug 608872 → [sg:high] fixed by bug 608872, hardblocker
Whiteboard: [sg:high] fixed by bug 608872, hardblocker → [sg:high] fixed by bug 608872[hardblocker]
Blocks: 616913
Attached patch Proposed fixSplinter Review
I'm about to send this through try.
Attachment #508662 - Flags: review?(jst)
Attachment #508662 - Flags: review?(jst) → review+
This passed on try, so I landed it on m-c. And I forgot to update the bug number in the coment, where 691359 should be 619359, even though I pointed out that mistake to mrbkap myself last night :( http://hg.mozilla.org/mozilla-central/rev/a79b46eef8f2
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Depends on: 664737
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: