User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:18.104.22.168) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:22.214.171.124) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
The Firefox implements a check when a URL obfuscation is done in the address bar. It has been noticed that if Iframe are used with the Obfuscated URL, the alert notification is bypassed.
Address bar will raise an error when "http://email@example.com" this link is applied.
Iframes will bypass the alert notification when "http://firstname.lastname@example.org" is used in the frameset.
This impacts the user security because obfuscated links in the iframes might trick the user to visit false links.
Steps to Reproduce:
<iframe src="http://email@example.com" width="600" height="600" />
No alert notification.
The frame redirects the src to yahoo not google
Alert notification should be generated.
If not user should go to Google not Yahoo.
MFSA advisory should be worked upon for this issue.
We trigger an error when loaded via the location bar because the user might be fooled by the text in the location bar not matching the site they're seeing. When loaded in an iframe, there's no confusion, because we don't show the URL anywhere - so there's no benefit to having the iframe load "http://firstname.lastname@example.org" vs. just loading yahoo.com directly.
Maybe you trust the parent frame and child frame to not use window.status tricks to hide link destinations, but the child frame can contain links from untrusted sources (e.g. email messages or forum posts).
I could imagine this happening if you visit a forum thread using the diggbar. It's a little far-fetched, but we should probably be consistent in applying the warning.
It is an issue if we look from the perspective stealth behavior. A user can be tricked to visit the destination which he should not suppose to go. Direct linking in Iframe is a normal behavior but considering different scenarios the consistency pattern should be there.
How will the user be tricked? How are the "email@example.com loaded in an iframe" from "yahoo.com loaded in an iframe" cases user-distinguishable?
Whether or not a username was specified doesn't even persist beyond the initial page load, even when loaded from the URL bar, so I really don't understand how this is an issue.
Here's the scenario I'm thinking of:
Diggbar or GoogleImageSearch frames a forum thread page. An asshat posts a link to http://firstname.lastname@example.org in the thread. A user clicks the link, thinking it's a Google link.
(An evil site could do worse things with window.status, but in these cases neither the framer nor the framed page are evil, and perhaps the user knows this.)
When the SuspiciousAuth checks were added it was a conscious decision to skip warnings about frames. It'd be very easy to change nsHttpChannel::ConfirmAuth() to prompt for sub-frame loads if we decide to do so.
I think its going to be good solution to implement this feature.
i'm not sure it's a good thing. i suppose we're basically talking about cases where a trusted site has been subverted. from my perspective, once a trusted site is subverted, it doesn't really matter how it was subverted, the game is over.
Someone is more or less telling sites "Don't be XSS'd", it seems reasonable to tell sites "Don't let people provide phishy urls".
I am not sure why this is even being seriously discussed?
The only point of the check on top-level location is to warn users about the use of a potentially confusing and relatively obscure URL syntax in the address bar (although hiding the login:password@ part is probably about as good and less disruptive). This does not apply to subresources, period. No?
Comment 2 and comment 5 describe some cases where this /might/ matter.
Well, yeah, but then the browser is not displaying the actual destination URL, and it's not its responsibility to keep it readable (in fact, browser-originating warnings would be rather confusing with a different URL shown in the address bar).
The responsibility for sanitizing and correctly reporting the origin of the content lies squarely with the framing page. I am pretty sure Image Search gets it OK.
In that case any URI shortening service should be considered a spoofing launchpad. Pretty old news.
(In reply to comment #10)
> I am not sure why this is even being seriously discussed?
The POC - http://www.secniche.org/videos/mozilla_bug_570658.html
Aditya - thanks for taking the time to document your concerns more completely. That video highlights, for me, the risk inherent in sites that expose CGI to frame arbitrary content and is a compelling argument for sites to lock down their use of such autoframing scripts.
But I don't really see the relevance to this bug or to Firefox behaviour. Sure, you could provide an obfuscated url in the src field, but it seems to be that by far the greater user confusion in that case will come from seeing the domain of the site offering the auto-framer, not from the details of the URL you provide to the CGI script. Are you worried that our phishing/malware support wouldn't understand what was going on? It is not fooled by obfuscation attempts, e.g.
Another POC - http://www.youtube.com/watch?v=myTlsIG5T8U
Poor *Engrish* can be displayed by the annotation.
This is not ArcHTTP(WebBased RAID Console) bug.
And *NOT* this Web-based console only.(like router,WiFi AP,NAS,WebCam,etc...)
Danger of default password.
But,Firefox confirm to me,please.