Closed Bug 798026 Opened 14 years ago Closed 13 years ago

Plugin content served as text/plain not detected as binary

Categories

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

15 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 648706
Tracking Status
firefox16 --- wontfix
firefox17 - affected
firefox18 - affected
firefox19 - affected
firefox-esr10 --- wontfix

People

(Reporter: cristian.rodriguez, Assigned: johns)

References

()

Details

Attachments

(1 file)

Attached image bug.png —
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Build ID: 20120905151427 Steps to reproduce: install windows 8 pro and then install firefox without installing the Flash plugin visit the url http://www.bbva.cl Actual results: Mozilla has failed to control the lack of flash plugin and exposed to hard code the file. Expected results: Mozilla should have detected the lack of plugin and should request the installation of the same
Priority: -- → P1
This is not a security bug. The website in question is doing <object type='application/x-shockwave-flash' data='/fbin/botonera_tcm319-190122.swf' width='190' height='400'> But when the server responds for , it says the MIME type is text/plain. I don't know if this is specced in HTML5 or not; johns/bz do you guys know?
Group: core-security
Component: Untriaged → DOM
Priority: P1 → P4
Product: Firefox → Core
then?
This is specced, yes. That said, for the text/plain case I thought we should end up under nsBinaryDetector::DetermineContentType. Do we not? And note that I'm not sure what exactly the spec says here. I know it does define the behavior.
Christian, the server is misconfigured and sending the data as text/plain. I'd suggest that fixing that is a good idea no matter what we do or don't do about this.
I agree with you that there is a security bug, sorry my bad interpretation.
Unless I'm misreading it, we're doing the right thing in ignoring the type attribute if the server returns a type we support, but we are failing to detect that it is binary data > If the type specified in the resource's Content-Type metadata is "text/plain", and the result of applying the rules for distinguishing if a resource is text or binary to the resource is that the resource is not text/plain, then set binary to true.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 8 → All
Hardware: x86_64 → All
Summary: Bug Flash Plugin for Firefox → Plugin content served as text/plain not detected as binary
That sounds right. So why is nsBinaryDetector not detecting it as binary? We certainly pass LOAD_CALL_CONTENT_SNIFFERS in nsObjectLoadingContent::OpenChannel...
So bug 803159 discovered a test case wherein we hit this behavior in more sites due to bug 745030, so if the fix to this is simple, we should consider it for branches.
Assignee: nobody → jschoenick
Status: NEW → ASSIGNED
Blocks: 745030
We'll track this, no need to track for ESR17 since that will be cut from mozilla-release once 17 is merged to it and so if this makes 17 we'll get it for free on ESR17.
So the reason we're not detecting http://www.bbva.cl/fbin/botonera_tcm319-190122.swf as binary is because it's coming through with "Content-Encoding: gzip" and we don't sniff that for binary. See also bug 648706. Same thing for http://www.bbva.cl/fbin/banner_calidad_tcm319-188382.swf But those are both using <object> elements. And in particular, on the site in comment 0 I see the same behavior without bug 745030, as expected (since this bug is filed against firefox 15). But bug 803159 is a totally different situation: that's using an <embed> object. Did we break the bit about using the filename extension to override the server-provided type for <embed>? See the spec at http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#concept-embed-type which explicitly says we should be doing that. So I think we should reopen bug 803159, which is about <embed>, and probably mark this bug as duplicate of bug 648706.
And in fact, doing that.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
And also, note that for this bug you have to disable Flash to reproduce. But bug 803159 reproduces with Flash enabled.
Dupe of a longstanding issue, removing tracking.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: