Mozilla Firefox spoofing and race conditions in relation to JavaScript functionality.

2009.12.09
Credit: None
Risk: Medium
Local: No
Remote: Yes
CVE: N/A
CWE: N/A

There exist two seperate security issues in Mozilla Firefox concerning JavaScript prompts appearing from domain which is not the true origin. The first is about spawning JavaScript prompted message over web page of another domain, so in effect, the address bar and the browser content are from one domain, but the prompted JavaScript message is generated by script from another different domain. This is resulted from a race condition scenario, in which the browser is first navigated to URL of another domain, then before it's loaded, immediately launch JavaScript message prompting, so JavaScript message is displayed over a web page other than its origin web page. The issue here only affects Firefox, and doesn't seem to affect Internet Explorer and Google Chrome. This is CVE-2009-4129. The second is regarding the function named "MakeScriptDialogTitle"(in file "nsGlobalWindow.cpp" of Firefox source code), responsible for "Script Dialog Title", which is designed to show "host". The "MakeScriptDialogTitle" function removes usernames and passwords from URL, with a purpose of "spoof prevention", but it's not enough, because script dialog has limited and predictable width, so only the prefix will be displayed if domain name is long. This is CVE-2009-4130. Topsec has the credit.

References:

http://packetstormsecurity.org/0912-advisories/mozjs-race.txt


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top