New issue
Advanced search Search tips

Issue 103384 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 7988
Owner: ----
Closed: Nov 2011
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 0
Type: Bug-Security

  • Only users with Commit permission may comment.

Sign in to add a comment

Security: Setting document.domain to "org" or any other TLD

Reported by, Nov 8 2011

Issue description

This template is ONLY for reporting security bugs. Please use a different
template for other types of bug reports.

Please see the following link for instructions on filing security bugs:


Clearly states that setting document.domain to "org" or any other TLD should not be valid. I was not able to find any relevant documentation for chrome/webkit

This is possible and leads to cross domain javascript access. This also works in Safari 5.1

Chrome Version: 17.0.932.0  dev
Operating System: MAC OSX 10.7


Goto a .com page ie:

Open the developer panel and run

"" // as intended'") and allow popups, popups are used in this demo but iframes should work just aswell

In the engadget window run

Which will produce a security error

now run 
document.domain = 'com'
in both windows

and then 

Which proves javascript access, running the same test in firefox results in a security error when setting the domains.

Comment 1 by, Nov 8 2011

Labels: -Restrict-View-SecurityTeam
Mergedinto: 7988
Status: Duplicate
Funny I was asking this question just the other day.

It's not a security vulnerability, really, because no self-respecting web page should ever set document.domain = "com". It is a vulnerability of the site if that is the case.

That said, other browsers do it as precaution, and we should too. Nobody has picked it up because the webkit plumbing it needs is onerous.
Project Member

Comment 2 by, Oct 13 2012

Labels: Restrict-AddIssueComment-Commit
Mergedinto: chromium:7988
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member

Comment 3 by, Mar 10 2013

Labels: -Type-Security Type-Bug-Security
Project Member

Comment 4 by, Mar 11 2013

Labels: -Area-Undefined
Labels: allpublic

Sign in to add a comment