Closed Bug 434898 Opened 18 years ago Closed 18 years ago

history.back can be rewritten across domains

Categories

(Core :: DOM: Core & HTML, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jamesjren, Unassigned)

References

()

Details

(Whiteboard: [sg:low] fix requires XOW)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Build Identifier: Firefox 2.0.0.14 In Firefox 3 RC1, when you try to write to history.back across domains, you get a "Permission denied" error to the console. However, in Firefox 2, no such error occurs. The function can be overwritten with any arbitrary value, including another function. The same thing happens for: history.forward history.go history.toString history.foo Where foo is any name you want to specify (except length) Reproducible: Always Steps to Reproduce: 1. Visit http://xenon.stanford.edu/~jamesren/tests/history-put.html 2. Click the "Install back function" button 3. Click the "go back" button in the frame. Note: Do this quickly after clicking the "Install back function" button; the function gets reset to the original value after some time. Actual Results: Alerts "Hi" Expected Results: Browser goes back
Duplicate of bug 393669, perhaps?
Status: UNCONFIRMED → NEW
Component: History: Session → DOM
Ever confirmed: true
Flags: wanted1.8.1.x?
QA Contact: history.session → general
Sort of. This is one of those bugs that XOWs fixed, but I'm not sure if anybody had a bug filed on it.
So would a 1.8 branch patch from bug 393669 fix us here? I'm setting this to sg:high? since the other bug was to, but perhaps this should be moderate.
Whiteboard: [sg:high?]
It probably would, but it would require porting XOWs, which would be a substantial undertaking that will never happen given the difficulty and time involved in doing so.
Should we WONTFIX this, then, given the proximity to Firefox 2 EOL?
I think so; it would be good to fix this, but it's not really possible without pulling at least two or three people off 1.9.1 for at least a couple person-days, one to port and two to review. Given that and our current location in the old-release-support cycle, I don't think we have any other choice.
WONTFIXing per comment 6.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
so do we make this one public?
Flags: wanted1.8.1.x? → wanted1.8.1.x+
Whiteboard: [sg:high?] → [sg:low] fix requires XOW
Version: unspecified → 1.8 Branch
Group: core-security
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.