vodkabears / Vide

No longer actively maintained.
http://vodkabears.github.io/vide/
MIT License
3.29k stars 524 forks source link

JS injection #178

Open alexattws opened 8 years ago

alexattws commented 8 years ago

To replicate the injection, change data-vide-bg attribute in one of the example to:

<... data-vide-bg="video/ocean?&quot;&#039;&gt;&lt;script&gt;alert(&#039;pwned&#039;);&lt;/script&gt;" >

To fix this, ESCAPE PROPERLY, PEOPLE!!! Jesus!

sources += '<source src="' + $("<div>").text(path.mp4).html() + '.mp4" type="video/mp4">';