Closed Bug 91714 Opened 23 years ago Closed 23 years ago

web page can load (but not see) about:*

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: bbaetz, Assigned: security-bugs)

Details

(Whiteboard: patch)

Attachments

(4 files)

By using document.appendChild to add stuff to an about:blank document, a web page can cause about:* to load (because checkloaduri will then pass the same-domain test). We can't view its contents though, because that check is stricter. .appendChild (and other dom methods?) probably needs to do what document.write does when writing to about:blank, and change the document url to that of the page doing the writing.
oops, wrong component -> dom core
Component: DOM Content Models → DOM Core
QA Contact: lchiang → stummala
Attached file demo (deleted) —
Assignee: jst → mstoltz
Over to mstoltz based on discussion with him.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Upping the priority on this one as it's more exploitable than I thought.
Severity: minor → normal
Priority: -- → P1
Target Milestone: mozilla1.0 → mozilla0.9.4
Its still not readable from a script though, is it?
Yes it is, when combined with bug 94551. Fix coming soon (for this bug).
Attached patch Fix. (deleted) — Splinter Review
Whiteboard: patch
Remove the extra line just after the if statement: + if(nsCRT::strcasecmp(scheme, aboutScheme) == 0) + *aScheme = PL_strdup(scheme); + { (cut n' paste?) with that, sr=jst
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Fix checked in.
verified 2001-09-12-05. securitymanager raised flag which is shown in console..
Status: RESOLVED → VERIFIED
Removing NS_Confidential flag.
Group: netscapeconfidential?
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: