Open Bug 1905080 Opened 8 months ago Updated 7 months ago

CSP directive `object-src 'none'` doesn't block an `<object>`

Categories

(Core :: DOM: Security, defect, P4)

defect

Tracking

()

People

(Reporter: mbrodesser-Igalia, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-backlog3])

Group: core-security → dom-core-security

So this blocks making that test pass, but doesn't block the implementation of trusted types itself.

Did the definition of "object-src" change on us? There is no URL being loaded by the object tag in either the jsfiddle or the platform test so what is there to block?

Flags: needinfo?(mbrodesser)

(In reply to Daniel Veditz [:dveditz] from comment #2)

Did the definition of "object-src" change on us?

Presumably it didn't change recently, but it shouldn't matter, see below.

There is no URL being loaded by the object tag in either the jsfiddle or the platform test so what is there to block?

https://w3c.github.io/webappsec-csp/#directive-object-src contains

"If plugin content is loaded without an associated URL (perhaps an object element lacks a data attribute, but loads some default plugin based on the specified type), it MUST be blocked if object-src’s value is 'none', but will otherwise be allowed."

So loading a default plugin corresponding to the object's type should be blocked. It seems unspecified, which types lead to loading a default plugin.

Flags: needinfo?(mbrodesser)

I wonder if this happened as part of bug 1801664. At the same time, I am not seeing a security issue. This is purely a difference in reporting, isn't it?

Agreed. I looked at this test failure while triaging all our CSP failures on WPT and it didn't and still doesn't look like a security issue to me.

(In reply to Frederik Braun [:freddy] from comment #4)

I wonder if this happened as part of bug 1801664. At the same time, I am not seeing a security issue. This is purely a difference in reporting, isn't it?

Maybe. To be certain, further analysis/debugging would be required.

Group: dom-core-security
Priority: -- → P4
Whiteboard: [domsecurity-backlog3]

The severity field is not set for this bug.
:freddy, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(fbraun)
Severity: -- → S4
Flags: needinfo?(fbraun)
Blocks: CSP
You need to log in before you can comment on or make changes to this bug.