Lucene search

K
huntrRudloffA0FD0671-F051-4D41-8928-9B19819084C9
HistoryJul 02, 2023 - 7:14 p.m.

youtube service is vulnerable to XSS vulnerability

2023-07-0219:14:23
rudloff
www.huntr.dev
5
youtube
xss
vulnerability
attributes
bugbounty

0.001 Low

EPSS

Percentile

19.5%

Description

If an attacker is able to insert a div with attributes on a page where the youtube service is enabled, they can craft a width attribute that would allow them to execute arbitrary JS on the page.

(Other attributes like theme or controls are also vulnerable to this.)

Proof of Concept

<!DOCTYPE html>
<html lang="en">
<head>
	<title>TAC XSS</title>
	<script src="tarteaucitron.js"></script>
	<script>
	(tarteaucitron.job = tarteaucitron.job || []).push('youtube');
	tarteaucitron.init({ readmoreLink: '/foo', orientation: 'bottom' });
	</script>
</head>
<body>
	<div></div>
&lt;/body&gt;
&lt;/html&gt;

The srcdoc attribute can also be used for this (and should probably not be allowed):

	<div></div>

0.001 Low

EPSS

Percentile

19.5%

Related for A0FD0671-F051-4D41-8928-9B19819084C9