WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:01.270 align:start position:0%
 
Today<00:00:00.440><c> we're</c><00:00:00.560><c> going</c><00:00:00.680><c> to</c><00:00:00.720><c> pick</c><00:00:00.920><c> up</c><00:00:01.080><c> where</c><00:00:01.160><c> we</c>

00:00:01.270 --> 00:00:01.280 align:start position:0%
Today we're going to pick up where we
 

00:00:01.280 --> 00:00:02.830 align:start position:0%
Today we're going to pick up where we
left<00:00:01.520><c> off</c><00:00:01.640><c> from</c><00:00:01.800><c> my</c><00:00:01.920><c> previous</c><00:00:02.360><c> video</c>

00:00:02.830 --> 00:00:02.840 align:start position:0%
left off from my previous video
 

00:00:02.840 --> 00:00:05.310 align:start position:0%
left off from my previous video
analyzing<00:00:03.400><c> a</c><00:00:03.480><c> real-life</c><00:00:04.160><c> in-the-wild</c><00:00:04.920><c> iOS</c>

00:00:05.310 --> 00:00:05.320 align:start position:0%
analyzing a real-life in-the-wild iOS
 

00:00:05.320 --> 00:00:06.990 align:start position:0%
analyzing a real-life in-the-wild iOS
browser<00:00:05.720><c> exploit</c><00:00:06.080><c> that</c><00:00:06.200><c> can</c><00:00:06.320><c> compromise</c><00:00:06.880><c> your</c>

00:00:06.990 --> 00:00:07.000 align:start position:0%
browser exploit that can compromise your
 

00:00:07.000 --> 00:00:09.270 align:start position:0%
browser exploit that can compromise your
entire<00:00:07.400><c> iPhone</c><00:00:07.840><c> and</c><00:00:08.040><c> install</c><00:00:08.360><c> spyware.</c><00:00:09.080><c> We've</c>

00:00:09.270 --> 00:00:09.280 align:start position:0%
entire iPhone and install spyware. We've
 

00:00:09.280 --> 00:00:10.910 align:start position:0%
entire iPhone and install spyware. We've
already<00:00:09.520><c> looked</c><00:00:09.800><c> at</c><00:00:09.880><c> the</c><00:00:10.000><c> core</c><00:00:10.240><c> vulnerability</c>

00:00:10.910 --> 00:00:10.920 align:start position:0%
already looked at the core vulnerability
 

00:00:10.920 --> 00:00:12.790 align:start position:0%
already looked at the core vulnerability
and<00:00:11.160><c> how</c><00:00:11.280><c> the</c><00:00:11.400><c> attackers</c><00:00:11.840><c> use</c><00:00:12.080><c> this</c><00:00:12.320><c> to</c><00:00:12.520><c> gain</c>

00:00:12.790 --> 00:00:12.800 align:start position:0%
and how the attackers use this to gain
 

00:00:12.800 --> 00:00:13.830 align:start position:0%
and how the attackers use this to gain
an<00:00:12.920><c> out-of-bounds</c><00:00:13.440><c> read</c><00:00:13.560><c> and</c><00:00:13.680><c> write</c>

00:00:13.830 --> 00:00:13.840 align:start position:0%
an out-of-bounds read and write
 

00:00:13.840 --> 00:00:16.270 align:start position:0%
an out-of-bounds read and write
primitive<00:00:14.600><c> on</c><00:00:14.800><c> a</c><00:00:14.880><c> JavaScript</c><00:00:15.400><c> array</c><00:00:15.640><c> object.</c>

00:00:16.270 --> 00:00:16.280 align:start position:0%
primitive on a JavaScript array object.
 

00:00:16.280 --> 00:00:17.550 align:start position:0%
primitive on a JavaScript array object.
And<00:00:16.400><c> we've</c><00:00:16.560><c> looked</c><00:00:16.760><c> at</c><00:00:16.880><c> how</c><00:00:17.000><c> they</c><00:00:17.160><c> leverage</c>

00:00:17.550 --> 00:00:17.560 align:start position:0%
And we've looked at how they leverage
 

00:00:17.560 --> 00:00:19.390 align:start position:0%
And we've looked at how they leverage
this<00:00:17.760><c> to</c><00:00:17.960><c> leak</c><00:00:18.200><c> the</c><00:00:18.320><c> memory</c><00:00:18.600><c> addresses</c><00:00:19.120><c> of</c>

00:00:19.390 --> 00:00:19.400 align:start position:0%
this to leak the memory addresses of
 

00:00:19.400 --> 00:00:21.110 align:start position:0%
this to leak the memory addresses of
other<00:00:19.640><c> JavaScript</c><00:00:20.160><c> objects.</c><00:00:20.760><c> But</c><00:00:20.880><c> now</c><00:00:21.000><c> we're</c>

00:00:21.110 --> 00:00:21.120 align:start position:0%
other JavaScript objects. But now we're
 

00:00:21.120 --> 00:00:22.430 align:start position:0%
other JavaScript objects. But now we're
going<00:00:21.240><c> to</c><00:00:21.280><c> move</c><00:00:21.480><c> on</c><00:00:21.600><c> to</c><00:00:21.720><c> look</c><00:00:21.960><c> at</c><00:00:22.040><c> the</c><00:00:22.160><c> real</c>

00:00:22.430 --> 00:00:22.440 align:start position:0%
going to move on to look at the real
 

00:00:22.440 --> 00:00:24.310 align:start position:0%
going to move on to look at the real
goal<00:00:22.800><c> of</c><00:00:22.960><c> any</c><00:00:23.200><c> good</c><00:00:23.440><c> browser</c><00:00:23.840><c> exploit,</c>

00:00:24.310 --> 00:00:24.320 align:start position:0%
goal of any good browser exploit,
 

00:00:24.320 --> 00:00:25.430 align:start position:0%
goal of any good browser exploit,
getting<00:00:24.600><c> memory</c><00:00:24.960><c> read</c><00:00:25.160><c> and</c><00:00:25.280><c> write</c>

00:00:25.430 --> 00:00:25.440 align:start position:0%
getting memory read and write
 

00:00:25.440 --> 00:00:27.150 align:start position:0%
getting memory read and write
capabilities<00:00:26.240><c> inside</c><00:00:26.720><c> the</c><00:00:26.800><c> renderer</c>

00:00:27.150 --> 00:00:27.160 align:start position:0%
capabilities inside the renderer
 

00:00:27.160 --> 00:00:29.350 align:start position:0%
capabilities inside the renderer
process.<00:00:27.960><c> Once</c><00:00:28.200><c> the</c><00:00:28.360><c> address</c><00:00:28.720><c> of</c><00:00:28.920><c> primitive</c>

00:00:29.350 --> 00:00:29.360 align:start position:0%
process. Once the address of primitive
 

00:00:29.360 --> 00:00:31.110 align:start position:0%
process. Once the address of primitive
is<00:00:29.480><c> established</c><00:00:30.160><c> by</c><00:00:30.160><c> the</c><00:00:30.280><c> exploit,</c><00:00:30.840><c> which</c><00:00:31.040><c> we</c>

00:00:31.110 --> 00:00:31.120 align:start position:0%
is established by the exploit, which we
 

00:00:31.120 --> 00:00:32.510 align:start position:0%
is established by the exploit, which we
looked<00:00:31.320><c> at</c><00:00:31.400><c> in</c><00:00:31.480><c> the</c><00:00:31.560><c> previous</c><00:00:31.920><c> video,</c><00:00:32.400><c> the</c>

00:00:32.510 --> 00:00:32.520 align:start position:0%
looked at in the previous video, the
 

00:00:32.520 --> 00:00:34.350 align:start position:0%
looked at in the previous video, the
first<00:00:32.800><c> JavaScript</c><00:00:33.320><c> object</c><00:00:33.760><c> that</c><00:00:33.840><c> the</c><00:00:33.960><c> exploit</c>

00:00:34.350 --> 00:00:34.360 align:start position:0%
first JavaScript object that the exploit
 

00:00:34.360 --> 00:00:35.870 align:start position:0%
first JavaScript object that the exploit
leaks<00:00:34.680><c> the</c><00:00:34.800><c> address</c><00:00:35.120><c> of</c><00:00:35.440><c> is</c><00:00:35.640><c> this</c>

00:00:35.870 --> 00:00:35.880 align:start position:0%
leaks the address of is this
 

00:00:35.880 --> 00:00:37.870 align:start position:0%
leaks the address of is this
generic-looking<00:00:36.600><c> object</c><00:00:37.120><c> with</c><00:00:37.280><c> a</c><00:00:37.320><c> few</c><00:00:37.560><c> keys</c>

00:00:37.870 --> 00:00:37.880 align:start position:0%
generic-looking object with a few keys
 

00:00:37.880 --> 00:00:39.710 align:start position:0%
generic-looking object with a few keys
and<00:00:37.960><c> values.</c><00:00:38.800><c> Despite</c><00:00:39.160><c> this</c><00:00:39.280><c> object</c><00:00:39.560><c> not</c>

00:00:39.710 --> 00:00:39.720 align:start position:0%
and values. Despite this object not
 

00:00:39.720 --> 00:00:41.550 align:start position:0%
and values. Despite this object not
looking<00:00:40.000><c> too</c><00:00:40.160><c> interesting,</c><00:00:40.840><c> it</c><00:00:41.000><c> is</c><00:00:41.160><c> actually</c>

00:00:41.550 --> 00:00:41.560 align:start position:0%
looking too interesting, it is actually
 

00:00:41.560 --> 00:00:43.710 align:start position:0%
looking too interesting, it is actually
a<00:00:41.640><c> very</c><00:00:41.960><c> key</c><00:00:42.200><c> part</c><00:00:42.640><c> of</c><00:00:42.800><c> the</c><00:00:42.920><c> subsequent</c><00:00:43.520><c> read</c>

00:00:43.710 --> 00:00:43.720 align:start position:0%
a very key part of the subsequent read
 

00:00:43.720 --> 00:00:45.750 align:start position:0%
a very key part of the subsequent read
and<00:00:43.840><c> write</c><00:00:44.000><c> mechanism.</c><00:00:44.880><c> The</c><00:00:45.000><c> object</c><00:00:45.360><c> has</c><00:00:45.520><c> just</c>

00:00:45.750 --> 00:00:45.760 align:start position:0%
and write mechanism. The object has just
 

00:00:45.760 --> 00:00:48.270 align:start position:0%
and write mechanism. The object has just
four<00:00:45.960><c> keys</c><00:00:46.400><c> and</c><00:00:46.680><c> four</c><00:00:46.920><c> floats</c><00:00:47.400><c> as</c><00:00:47.520><c> the</c><00:00:47.640><c> values.</c>

00:00:48.270 --> 00:00:48.280 align:start position:0%
four keys and four floats as the values.
 

00:00:48.280 --> 00:00:49.790 align:start position:0%
four keys and four floats as the values.
And<00:00:48.400><c> in</c><00:00:48.560><c> memory,</c><00:00:48.960><c> these</c><00:00:49.200><c> properties</c><00:00:49.680><c> are</c>

00:00:49.790 --> 00:00:49.800 align:start position:0%
And in memory, these properties are
 

00:00:49.800 --> 00:00:51.670 align:start position:0%
And in memory, these properties are
stored<00:00:50.200><c> in</c><00:00:50.400><c> line,</c><00:00:50.880><c> meaning</c><00:00:51.200><c> directly</c>

00:00:51.670 --> 00:00:51.680 align:start position:0%
stored in line, meaning directly
 

00:00:51.680 --> 00:00:54.150 align:start position:0%
stored in line, meaning directly
following<00:00:52.120><c> the</c><00:00:52.200><c> JSL</c><00:00:52.760><c> header</c><00:00:53.480><c> and</c><00:00:53.680><c> not</c><00:00:53.840><c> making</c>

00:00:54.150 --> 00:00:54.160 align:start position:0%
following the JSL header and not making
 

00:00:54.160 --> 00:00:56.230 align:start position:0%
following the JSL header and not making
use<00:00:54.400><c> of</c><00:00:54.520><c> any</c><00:00:54.680><c> butterfly</c><00:00:55.120><c> pointer.</c><00:00:55.760><c> The</c><00:00:55.840><c> values</c>

00:00:56.230 --> 00:00:56.240 align:start position:0%
use of any butterfly pointer. The values
 

00:00:56.240 --> 00:00:58.150 align:start position:0%
use of any butterfly pointer. The values
of<00:00:56.360><c> these</c><00:00:56.600><c> floats</c><00:00:57.000><c> are</c><00:00:57.080><c> stored</c><00:00:57.480><c> right</c><00:00:57.760><c> here</c><00:00:58.040><c> in</c>

00:00:58.150 --> 00:00:58.160 align:start position:0%
of these floats are stored right here in
 

00:00:58.160 --> 00:01:00.070 align:start position:0%
of these floats are stored right here in
the<00:00:58.240><c> memory.</c><00:00:58.800><c> The</c><00:00:58.920><c> exploit</c><00:00:59.320><c> does</c><00:00:59.520><c> a</c><00:00:59.600><c> couple</c><00:00:59.880><c> of</c>

00:01:00.070 --> 00:01:00.080 align:start position:0%
the memory. The exploit does a couple of
 

00:01:00.080 --> 00:01:01.830 align:start position:0%
the memory. The exploit does a couple of
things<00:01:00.240><c> with</c><00:01:00.400><c> this</c><00:01:00.560><c> object.</c><00:01:01.160><c> Their</c><00:01:01.320><c> strategy</c>

00:01:01.830 --> 00:01:01.840 align:start position:0%
things with this object. Their strategy
 

00:01:01.840 --> 00:01:04.509 align:start position:0%
things with this object. Their strategy
is<00:01:02.000><c> to</c><00:01:02.200><c> use</c><00:01:02.520><c> the</c><00:01:02.640><c> float</c><00:01:02.960><c> values</c><00:01:03.360><c> here</c><00:01:03.720><c> to</c><00:01:03.960><c> forge</c>

00:01:04.509 --> 00:01:04.519 align:start position:0%
is to use the float values here to forge
 

00:01:04.519 --> 00:01:06.790 align:start position:0%
is to use the float values here to forge
a<00:01:04.600><c> completely</c><00:01:05.160><c> new</c><00:01:05.560><c> fake</c><00:01:05.920><c> JavaScript</c><00:01:06.520><c> array</c>

00:01:06.790 --> 00:01:06.800 align:start position:0%
a completely new fake JavaScript array
 

00:01:06.800 --> 00:01:08.910 align:start position:0%
a completely new fake JavaScript array
object.<00:01:07.680><c> As</c><00:01:07.840><c> long</c><00:01:08.000><c> as</c><00:01:08.080><c> the</c><00:01:08.160><c> values</c><00:01:08.560><c> of</c><00:01:08.680><c> these</c>

00:01:08.910 --> 00:01:08.920 align:start position:0%
object. As long as the values of these
 

00:01:08.920 --> 00:01:10.910 align:start position:0%
object. As long as the values of these
floats<00:01:09.360><c> are</c><00:01:09.480><c> set</c><00:01:09.800><c> up</c><00:01:10.000><c> to</c><00:01:10.200><c> resemble</c><00:01:10.760><c> the</c>

00:01:10.910 --> 00:01:10.920 align:start position:0%
floats are set up to resemble the
 

00:01:10.920 --> 00:01:12.990 align:start position:0%
floats are set up to resemble the
structure<00:01:11.640><c> of</c><00:01:11.840><c> a</c><00:01:11.960><c> proper</c><00:01:12.240><c> JavaScript</c><00:01:12.760><c> array</c>

00:01:12.990 --> 00:01:13.000 align:start position:0%
structure of a proper JavaScript array
 

00:01:13.000 --> 00:01:14.830 align:start position:0%
structure of a proper JavaScript array
object,<00:01:13.680><c> they'll</c><00:01:13.800><c> be</c><00:01:13.880><c> able</c><00:01:14.040><c> to</c><00:01:14.160><c> successfully</c>

00:01:14.830 --> 00:01:14.840 align:start position:0%
object, they'll be able to successfully
 

00:01:14.840 --> 00:01:17.310 align:start position:0%
object, they'll be able to successfully
fake<00:01:15.160><c> that</c><00:01:15.360><c> object.</c><00:01:16.120><c> Then,</c><00:01:16.520><c> given</c><00:01:16.840><c> this</c><00:01:17.040><c> fake</c>

00:01:17.310 --> 00:01:17.320 align:start position:0%
fake that object. Then, given this fake
 

00:01:17.320 --> 00:01:19.630 align:start position:0%
fake that object. Then, given this fake
object<00:01:17.720><c> setup,</c><00:01:18.360><c> the</c><00:01:18.480><c> exploit</c><00:01:18.920><c> can</c><00:01:19.120><c> get</c><00:01:19.480><c> and</c>

00:01:19.630 --> 00:01:19.640 align:start position:0%
object setup, the exploit can get and
 

00:01:19.640 --> 00:01:22.070 align:start position:0%
object setup, the exploit can get and
set<00:01:20.040><c> elements</c><00:01:20.520><c> by</c><00:01:20.680><c> accessing</c><00:01:21.200><c> indexes</c><00:01:21.840><c> on</c><00:01:22.000><c> the</c>

00:01:22.070 --> 00:01:22.080 align:start position:0%
set elements by accessing indexes on the
 

00:01:22.080 --> 00:01:23.790 align:start position:0%
set elements by accessing indexes on the
faked<00:01:22.400><c> array,</c><00:01:22.840><c> which</c><00:01:23.040><c> will</c><00:01:23.160><c> allow</c><00:01:23.440><c> them</c><00:01:23.600><c> to</c>

00:01:23.790 --> 00:01:23.800 align:start position:0%
faked array, which will allow them to
 

00:01:23.800 --> 00:01:25.990 align:start position:0%
faked array, which will allow them to
read<00:01:24.040><c> and</c><00:01:24.240><c> write</c><00:01:24.480><c> values</c><00:01:25.040><c> into</c><00:01:25.440><c> chosen</c><00:01:25.760><c> memory</c>

00:01:25.990 --> 00:01:26.000 align:start position:0%
read and write values into chosen memory
 

00:01:26.000 --> 00:01:28.470 align:start position:0%
read and write values into chosen memory
locations.<00:01:26.920><c> JavaScript</c><00:01:27.440><c> array</c><00:01:27.680><c> objects</c><00:01:28.120><c> have</c>

00:01:28.470 --> 00:01:28.480 align:start position:0%
locations. JavaScript array objects have
 

00:01:28.480 --> 00:01:30.750 align:start position:0%
locations. JavaScript array objects have
a<00:01:28.560><c> JSL</c><00:01:29.240><c> header</c><00:01:29.760><c> which</c><00:01:30.000><c> encodes</c><00:01:30.600><c> some</c>

00:01:30.750 --> 00:01:30.760 align:start position:0%
a JSL header which encodes some
 

00:01:30.760 --> 00:01:33.230 align:start position:0%
a JSL header which encodes some
information<00:01:31.360><c> about</c><00:01:31.600><c> the</c><00:01:31.760><c> indexing</c><00:01:32.240><c> type</c><00:01:32.960><c> and</c>

00:01:33.230 --> 00:01:33.240 align:start position:0%
information about the indexing type and
 

00:01:33.240 --> 00:01:34.910 align:start position:0%
information about the indexing type and
its<00:01:33.360><c> structure</c><00:01:33.800><c> ID.</c><00:01:34.360><c> And</c><00:01:34.480><c> then</c><00:01:34.560><c> they</c><00:01:34.680><c> have</c><00:01:34.840><c> a</c>

00:01:34.910 --> 00:01:34.920 align:start position:0%
its structure ID. And then they have a
 

00:01:34.920 --> 00:01:36.870 align:start position:0%
its structure ID. And then they have a
butterfly<00:01:35.400><c> pointer,</c><00:01:36.160><c> which</c><00:01:36.360><c> is</c><00:01:36.480><c> really</c><00:01:36.680><c> just</c>

00:01:36.870 --> 00:01:36.880 align:start position:0%
butterfly pointer, which is really just
 

00:01:36.880 --> 00:01:38.910 align:start position:0%
butterfly pointer, which is really just
a<00:01:36.960><c> pointer</c><00:01:37.360><c> to</c><00:01:37.480><c> the</c><00:01:37.600><c> backing</c><00:01:38.000><c> storage</c><00:01:38.480><c> buffer</c>

00:01:38.910 --> 00:01:38.920 align:start position:0%
a pointer to the backing storage buffer
 

00:01:38.920 --> 00:01:41.070 align:start position:0%
a pointer to the backing storage buffer
for<00:01:39.160><c> this</c><00:01:39.280><c> array.</c><00:01:39.920><c> When</c><00:01:40.160><c> faking</c><00:01:40.520><c> a</c><00:01:40.560><c> JavaScript</c>

00:01:41.070 --> 00:01:41.080 align:start position:0%
for this array. When faking a JavaScript
 

00:01:41.080 --> 00:01:42.870 align:start position:0%
for this array. When faking a JavaScript
array,<00:01:41.680><c> we'd</c><00:01:41.840><c> be</c><00:01:41.920><c> able</c><00:01:42.040><c> to</c><00:01:42.160><c> set</c><00:01:42.360><c> the</c><00:01:42.480><c> butterfly</c>

00:01:42.870 --> 00:01:42.880 align:start position:0%
array, we'd be able to set the butterfly
 

00:01:42.880 --> 00:01:45.390 align:start position:0%
array, we'd be able to set the butterfly
pointer<00:01:43.320><c> to</c><00:01:43.600><c> anything</c><00:01:44.000><c> we</c><00:01:44.160><c> want.</c><00:01:44.840><c> Then,</c><00:01:45.120><c> if</c><00:01:45.280><c> we</c>

00:01:45.390 --> 00:01:45.400 align:start position:0%
pointer to anything we want. Then, if we
 

00:01:45.400 --> 00:01:47.390 align:start position:0%
pointer to anything we want. Then, if we
were<00:01:45.480><c> to</c><00:01:45.640><c> read</c><00:01:45.800><c> a</c><00:01:45.880><c> value</c><00:01:46.360><c> from</c><00:01:46.600><c> our</c><00:01:46.760><c> fake</c><00:01:47.000><c> array</c>

00:01:47.390 --> 00:01:47.400 align:start position:0%
were to read a value from our fake array
 

00:01:47.400 --> 00:01:49.550 align:start position:0%
were to read a value from our fake array
in<00:01:47.600><c> normal</c><00:01:47.920><c> JavaScript,</c><00:01:48.760><c> internally,</c><00:01:49.440><c> the</c>

00:01:49.550 --> 00:01:49.560 align:start position:0%
in normal JavaScript, internally, the
 

00:01:49.560 --> 00:01:51.310 align:start position:0%
in normal JavaScript, internally, the
JavaScript<00:01:50.120><c> engine</c><00:01:50.520><c> is</c><00:01:50.680><c> pulling</c><00:01:51.120><c> what</c><00:01:51.240><c> it</c>

00:01:51.310 --> 00:01:51.320 align:start position:0%
JavaScript engine is pulling what it
 

00:01:51.320 --> 00:01:53.510 align:start position:0%
JavaScript engine is pulling what it
believes<00:01:51.720><c> to</c><00:01:51.800><c> be</c><00:01:52.000><c> array</c><00:01:52.400><c> elements,</c><00:01:53.160><c> but</c><00:01:53.360><c> from</c>

00:01:53.510 --> 00:01:53.520 align:start position:0%
believes to be array elements, but from
 

00:01:53.520 --> 00:01:55.430 align:start position:0%
believes to be array elements, but from
a<00:01:53.560><c> completely</c><00:01:54.200><c> chosen</c><00:01:54.760><c> arbitrary</c><00:01:55.160><c> memory</c>

00:01:55.430 --> 00:01:55.440 align:start position:0%
a completely chosen arbitrary memory
 

00:01:55.440 --> 00:01:57.750 align:start position:0%
a completely chosen arbitrary memory
address<00:01:55.880><c> set</c><00:01:56.120><c> by</c><00:01:56.360><c> us.</c><00:01:56.840><c> The</c><00:01:56.960><c> same</c><00:01:57.160><c> applies</c><00:01:57.560><c> to</c>

00:01:57.750 --> 00:01:57.760 align:start position:0%
address set by us. The same applies to
 

00:01:57.760 --> 00:01:59.710 align:start position:0%
address set by us. The same applies to
setting<00:01:58.160><c> values</c><00:01:58.560><c> in</c><00:01:58.680><c> the</c><00:01:58.760><c> fake</c><00:01:59.000><c> array.</c><00:01:59.480><c> This</c>

00:01:59.710 --> 00:01:59.720 align:start position:0%
setting values in the fake array. This
 

00:01:59.720 --> 00:02:01.670 align:start position:0%
setting values in the fake array. This
will<00:01:59.880><c> result</c><00:02:00.320><c> in</c><00:02:00.480><c> a</c><00:02:00.560><c> chosen</c><00:02:01.000><c> value</c><00:02:01.360><c> being</c>

00:02:01.670 --> 00:02:01.680 align:start position:0%
will result in a chosen value being
 

00:02:01.680 --> 00:02:03.910 align:start position:0%
will result in a chosen value being
written<00:02:02.040><c> into</c><00:02:02.280><c> memory</c><00:02:02.840><c> at</c><00:02:03.040><c> that</c><00:02:03.200><c> chosen</c><00:02:03.640><c> fake</c>

00:02:03.910 --> 00:02:03.920 align:start position:0%
written into memory at that chosen fake
 

00:02:03.920 --> 00:02:05.830 align:start position:0%
written into memory at that chosen fake
butterfly<00:02:04.400><c> address.</c><00:02:05.240><c> So,</c><00:02:05.440><c> how</c><00:02:05.600><c> does</c><00:02:05.720><c> the</c>

00:02:05.830 --> 00:02:05.840 align:start position:0%
butterfly address. So, how does the
 

00:02:05.840 --> 00:02:07.590 align:start position:0%
butterfly address. So, how does the
exploit<00:02:06.280><c> go</c><00:02:06.440><c> about</c><00:02:06.720><c> creating</c><00:02:07.200><c> this</c><00:02:07.360><c> fake</c>

00:02:07.590 --> 00:02:07.600 align:start position:0%
exploit go about creating this fake
 

00:02:07.600 --> 00:02:09.710 align:start position:0%
exploit go about creating this fake
array<00:02:07.880><c> object</c><00:02:08.640><c> using</c><00:02:08.960><c> just</c><00:02:09.200><c> this</c><00:02:09.360><c> simple</c>

00:02:09.710 --> 00:02:09.720 align:start position:0%
array object using just this simple
 

00:02:09.720 --> 00:02:11.550 align:start position:0%
array object using just this simple
object<00:02:10.240><c> as</c><00:02:10.399><c> its</c><00:02:10.560><c> starting</c><00:02:10.960><c> point?</c><00:02:11.440><c> The</c>

00:02:11.550 --> 00:02:11.560 align:start position:0%
object as its starting point? The
 

00:02:11.560 --> 00:02:13.310 align:start position:0%
object as its starting point? The
exploit<00:02:11.920><c> leverages</c><00:02:12.360><c> the</c><00:02:12.480><c> fact</c><00:02:12.880><c> that</c><00:02:13.000><c> we</c><00:02:13.120><c> can</c>

00:02:13.310 --> 00:02:13.320 align:start position:0%
exploit leverages the fact that we can
 

00:02:13.320 --> 00:02:15.910 align:start position:0%
exploit leverages the fact that we can
set<00:02:13.680><c> float</c><00:02:14.000><c> values</c><00:02:14.480><c> onto</c><00:02:14.800><c> this</c><00:02:14.960><c> object</c><00:02:15.640><c> whose</c>

00:02:15.910 --> 00:02:15.920 align:start position:0%
set float values onto this object whose
 

00:02:15.920 --> 00:02:18.550 align:start position:0%
set float values onto this object whose
in-memory<00:02:16.520><c> representation</c><00:02:17.680><c> also</c><00:02:18.000><c> represents</c>

00:02:18.550 --> 00:02:18.560 align:start position:0%
in-memory representation also represents
 

00:02:18.560 --> 00:02:20.990 align:start position:0%
in-memory representation also represents
a<00:02:18.640><c> pointer.</c><00:02:19.440><c> As</c><00:02:19.560><c> an</c><00:02:19.640><c> example,</c><00:02:20.280><c> the</c><00:02:20.440><c> JavaScript</c>

00:02:20.990 --> 00:02:21.000 align:start position:0%
a pointer. As an example, the JavaScript
 

00:02:21.000 --> 00:02:23.270 align:start position:0%
a pointer. As an example, the JavaScript
float<00:02:21.280><c> value</c><00:02:21.680><c> 2.66289</c>

00:02:23.270 --> 00:02:23.280 align:start position:0%
float value 2.66289
 

00:02:23.280 --> 00:02:25.790 align:start position:0%
float value 2.66289
and<00:02:23.440><c> so</c><00:02:23.640><c> on</c><00:02:24.120><c> looks</c><00:02:24.400><c> pretty</c><00:02:24.640><c> random,</c><00:02:25.320><c> but</c><00:02:25.560><c> its</c>

00:02:25.790 --> 00:02:25.800 align:start position:0%
and so on looks pretty random, but its
 

00:02:25.800 --> 00:02:28.350 align:start position:0%
and so on looks pretty random, but its
in-memory<00:02:26.360><c> representation</c><00:02:27.280><c> in</c><00:02:27.520><c> hexadecimal</c>

00:02:28.350 --> 00:02:28.360 align:start position:0%
in-memory representation in hexadecimal
 

00:02:28.360 --> 00:02:30.870 align:start position:0%
in-memory representation in hexadecimal
is<00:02:28.600><c> actually</c><00:02:29.280><c> 0x41414141,</c>

00:02:30.870 --> 00:02:30.880 align:start position:0%
is actually 0x41414141,
 

00:02:30.880 --> 00:02:32.990 align:start position:0%
is actually 0x41414141,
the<00:02:30.960><c> classic</c><00:02:31.440><c> hacker's</c><00:02:31.880><c> magic</c><00:02:32.160><c> value.</c><00:02:32.840><c> So,</c>

00:02:32.990 --> 00:02:33.000 align:start position:0%
the classic hacker's magic value. So,
 

00:02:33.000 --> 00:02:34.830 align:start position:0%
the classic hacker's magic value. So,
with<00:02:33.160><c> this</c><00:02:33.360><c> in</c><00:02:33.480><c> mind,</c><00:02:33.880><c> we</c><00:02:33.960><c> can</c><00:02:34.120><c> theoretically</c>

00:02:34.830 --> 00:02:34.840 align:start position:0%
with this in mind, we can theoretically
 

00:02:34.840 --> 00:02:37.590 align:start position:0%
with this in mind, we can theoretically
take<00:02:35.240><c> any</c><00:02:35.520><c> memory</c><00:02:35.840><c> address</c><00:02:36.200><c> value,</c><00:02:36.880><c> find</c><00:02:37.320><c> its</c>

00:02:37.590 --> 00:02:37.600 align:start position:0%
take any memory address value, find its
 

00:02:37.600 --> 00:02:39.990 align:start position:0%
take any memory address value, find its
float<00:02:37.960><c> representation,</c><00:02:39.080><c> and</c><00:02:39.200><c> then</c><00:02:39.360><c> set</c><00:02:39.680><c> it</c><00:02:39.840><c> on</c>

00:02:39.990 --> 00:02:40.000 align:start position:0%
float representation, and then set it on
 

00:02:40.000 --> 00:02:42.110 align:start position:0%
float representation, and then set it on
one<00:02:40.160><c> of</c><00:02:40.240><c> the</c><00:02:40.320><c> properties</c><00:02:40.880><c> of</c><00:02:41.080><c> our</c><00:02:41.240><c> object.</c>

00:02:42.110 --> 00:02:42.120 align:start position:0%
one of the properties of our object.
 

00:02:42.120 --> 00:02:43.750 align:start position:0%
one of the properties of our object.
Internally,<00:02:42.680><c> this</c><00:02:42.880><c> should</c><00:02:43.040><c> write</c><00:02:43.240><c> the</c><00:02:43.320><c> bytes</c>

00:02:43.750 --> 00:02:43.760 align:start position:0%
Internally, this should write the bytes
 

00:02:43.760 --> 00:02:45.670 align:start position:0%
Internally, this should write the bytes
representing<00:02:44.280><c> our</c><00:02:44.360><c> chosen</c><00:02:44.720><c> address</c><00:02:45.240><c> into</c><00:02:45.520><c> the</c>

00:02:45.670 --> 00:02:45.680 align:start position:0%
representing our chosen address into the
 

00:02:45.680 --> 00:02:48.110 align:start position:0%
representing our chosen address into the
object's<00:02:46.200><c> inline</c><00:02:46.680><c> property</c><00:02:47.040><c> memory.</c><00:02:47.920><c> Now,</c>

00:02:48.110 --> 00:02:48.120 align:start position:0%
object's inline property memory. Now,
 

00:02:48.120 --> 00:02:49.470 align:start position:0%
object's inline property memory. Now,
there's<00:02:48.280><c> actually</c><00:02:48.560><c> just</c><00:02:48.840><c> one</c><00:02:49.040><c> problem</c><00:02:49.360><c> with</c>

00:02:49.470 --> 00:02:49.480 align:start position:0%
there's actually just one problem with
 

00:02:49.480 --> 00:02:51.750 align:start position:0%
there's actually just one problem with
this.<00:02:50.160><c> Unfortunately,</c><00:02:50.880><c> the</c><00:02:51.080><c> bytes</c><00:02:51.560><c> that</c>

00:02:51.750 --> 00:02:51.760 align:start position:0%
this. Unfortunately, the bytes that
 

00:02:51.760 --> 00:02:54.350 align:start position:0%
this. Unfortunately, the bytes that
represent<00:02:52.280><c> a</c><00:02:52.400><c> given</c><00:02:52.760><c> float</c><00:02:53.080><c> value</c><00:02:53.760><c> do</c><00:02:53.920><c> not</c><00:02:54.120><c> get</c>

00:02:54.350 --> 00:02:54.360 align:start position:0%
represent a given float value do not get
 

00:02:54.360 --> 00:02:56.550 align:start position:0%
represent a given float value do not get
written<00:02:54.680><c> to</c><00:02:54.760><c> memory</c><00:02:55.120><c> exactly</c><00:02:55.680><c> as</c><00:02:55.800><c> they</c><00:02:56.000><c> are.</c>

00:02:56.550 --> 00:02:56.560 align:start position:0%
written to memory exactly as they are.
 

00:02:56.560 --> 00:02:58.630 align:start position:0%
written to memory exactly as they are.
Since<00:02:56.880><c> we're</c><00:02:57.000><c> working</c><00:02:57.400><c> with</c><00:02:57.600><c> a</c><00:02:57.720><c> JS</c><00:02:58.160><c> object</c><00:02:58.560><c> in</c>

00:02:58.630 --> 00:02:58.640 align:start position:0%
Since we're working with a JS object in
 

00:02:58.640 --> 00:03:00.990 align:start position:0%
Since we're working with a JS object in
this<00:02:58.800><c> case,</c><00:02:59.640><c> internally,</c><00:03:00.320><c> the</c><00:03:00.440><c> values</c><00:03:00.880><c> that</c>

00:03:00.990 --> 00:03:01.000 align:start position:0%
this case, internally, the values that
 

00:03:01.000 --> 00:03:03.310 align:start position:0%
this case, internally, the values that
get<00:03:01.200><c> set</c><00:03:01.520><c> on</c><00:03:01.640><c> this</c><00:03:01.800><c> object</c><00:03:02.480><c> are</c><00:03:02.640><c> stored</c><00:03:03.160><c> as</c>

00:03:03.310 --> 00:03:03.320 align:start position:0%
get set on this object are stored as
 

00:03:03.320 --> 00:03:05.510 align:start position:0%
get set on this object are stored as
what<00:03:03.480><c> is</c><00:03:03.600><c> known</c><00:03:03.840><c> as</c><00:03:04.120><c> boxed</c><00:03:04.720><c> values.</c>

00:03:05.510 --> 00:03:05.520 align:start position:0%
what is known as boxed values.
 

00:03:05.520 --> 00:03:06.950 align:start position:0%
what is known as boxed values.
Basically,<00:03:06.000><c> because</c><00:03:06.280><c> we</c><00:03:06.360><c> could</c><00:03:06.480><c> potentially</c>

00:03:06.950 --> 00:03:06.960 align:start position:0%
Basically, because we could potentially
 

00:03:06.960 --> 00:03:09.710 align:start position:0%
Basically, because we could potentially
have<00:03:07.280><c> any</c><00:03:07.520><c> object</c><00:03:08.040><c> set</c><00:03:08.320><c> for</c><00:03:08.480><c> a</c><00:03:08.560><c> given</c><00:03:08.880><c> key,</c><00:03:09.640><c> the</c>

00:03:09.710 --> 00:03:09.720 align:start position:0%
have any object set for a given key, the
 

00:03:09.720 --> 00:03:11.670 align:start position:0%
have any object set for a given key, the
browser<00:03:10.080><c> needs</c><00:03:10.280><c> a</c><00:03:10.360><c> way</c><00:03:10.560><c> to</c><00:03:10.720><c> mark</c><00:03:11.120><c> the</c><00:03:11.200><c> values</c>

00:03:11.670 --> 00:03:11.680 align:start position:0%
browser needs a way to mark the values
 

00:03:11.680 --> 00:03:13.710 align:start position:0%
browser needs a way to mark the values
in<00:03:11.840><c> such</c><00:03:12.080><c> a</c><00:03:12.160><c> way</c><00:03:12.400><c> that</c><00:03:12.560><c> the</c><00:03:12.640><c> JavaScript</c><00:03:13.240><c> engine</c>

00:03:13.710 --> 00:03:13.720 align:start position:0%
in such a way that the JavaScript engine
 

00:03:13.720 --> 00:03:16.270 align:start position:0%
in such a way that the JavaScript engine
knows<00:03:14.080><c> which</c><00:03:14.360><c> type</c><00:03:14.840><c> a</c><00:03:14.920><c> given</c><00:03:15.200><c> value</c><00:03:15.520><c> is.</c><00:03:16.200><c> The</c>

00:03:16.270 --> 00:03:16.280 align:start position:0%
knows which type a given value is. The
 

00:03:16.280 --> 00:03:18.230 align:start position:0%
knows which type a given value is. The
value<00:03:16.560><c> could</c><00:03:16.760><c> be</c><00:03:16.880><c> a</c><00:03:16.960><c> float,</c><00:03:17.520><c> an</c><00:03:17.640><c> integer,</c><00:03:18.200><c> a</c>

00:03:18.230 --> 00:03:18.240 align:start position:0%
value could be a float, an integer, a
 

00:03:18.240 --> 00:03:20.670 align:start position:0%
value could be a float, an integer, a
boolean,<00:03:18.640><c> or</c><00:03:19.040><c> another</c><00:03:19.360><c> JavaScript</c><00:03:19.840><c> object.</c>

00:03:20.670 --> 00:03:20.680 align:start position:0%
boolean, or another JavaScript object.
 

00:03:20.680 --> 00:03:22.950 align:start position:0%
boolean, or another JavaScript object.
Each<00:03:20.920><c> of</c><00:03:21.040><c> these</c><00:03:21.240><c> types</c><00:03:21.640><c> have</c><00:03:21.920><c> extra</c><00:03:22.280><c> metadata</c>

00:03:22.950 --> 00:03:22.960 align:start position:0%
Each of these types have extra metadata
 

00:03:22.960 --> 00:03:25.950 align:start position:0%
Each of these types have extra metadata
encoded<00:03:23.720><c> into</c><00:03:24.080><c> the</c><00:03:24.160><c> 64-bit</c><00:03:24.840><c> value</c><00:03:25.600><c> so</c><00:03:25.840><c> that</c>

00:03:25.950 --> 00:03:25.960 align:start position:0%
encoded into the 64-bit value so that
 

00:03:25.960 --> 00:03:27.710 align:start position:0%
encoded into the 64-bit value so that
the<00:03:26.080><c> JavaScript</c><00:03:26.560><c> engine</c><00:03:26.920><c> can</c><00:03:27.080><c> identify</c><00:03:27.600><c> its</c>

00:03:27.710 --> 00:03:27.720 align:start position:0%
the JavaScript engine can identify its
 

00:03:27.720 --> 00:03:30.030 align:start position:0%
the JavaScript engine can identify its
type<00:03:28.040><c> at</c><00:03:28.200><c> runtime.</c><00:03:29.080><c> So,</c><00:03:29.240><c> if</c><00:03:29.360><c> we</c><00:03:29.480><c> were</c><00:03:29.560><c> to</c><00:03:29.760><c> write</c>

00:03:30.030 --> 00:03:30.040 align:start position:0%
type at runtime. So, if we were to write
 

00:03:30.040 --> 00:03:32.070 align:start position:0%
type at runtime. So, if we were to write
the<00:03:30.200><c> float</c><00:03:30.560><c> representation</c><00:03:31.360><c> of</c><00:03:31.560><c> this</c><00:03:31.800><c> memory</c>

00:03:32.070 --> 00:03:32.080 align:start position:0%
the float representation of this memory
 

00:03:32.080 --> 00:03:33.910 align:start position:0%
the float representation of this memory
address,<00:03:32.400><c> for</c><00:03:32.560><c> example,</c><00:03:33.400><c> it</c><00:03:33.520><c> would</c><00:03:33.640><c> actually</c>

00:03:33.910 --> 00:03:33.920 align:start position:0%
address, for example, it would actually
 

00:03:33.920 --> 00:03:35.910 align:start position:0%
address, for example, it would actually
result<00:03:34.280><c> in</c><00:03:34.480><c> this</c><00:03:34.760><c> value</c><00:03:35.160><c> being</c><00:03:35.480><c> stored</c><00:03:35.840><c> in</c>

00:03:35.910 --> 00:03:35.920 align:start position:0%
result in this value being stored in
 

00:03:35.920 --> 00:03:38.390 align:start position:0%
result in this value being stored in
memory.<00:03:36.600><c> This</c><00:03:36.800><c> annoying</c><00:03:37.320><c> extra</c><00:03:37.720><c> bit,</c><00:03:38.240><c> the</c>

00:03:38.390 --> 00:03:38.400 align:start position:0%
memory. This annoying extra bit, the
 

00:03:38.400 --> 00:03:40.870 align:start position:0%
memory. This annoying extra bit, the
49th<00:03:39.000><c> bit,</c><00:03:39.440><c> is</c><00:03:39.560><c> being</c><00:03:39.800><c> set</c><00:03:40.080><c> on</c><00:03:40.200><c> our</c><00:03:40.280><c> value</c><00:03:40.720><c> to</c>

00:03:40.870 --> 00:03:40.880 align:start position:0%
49th bit, is being set on our value to
 

00:03:40.880 --> 00:03:43.190 align:start position:0%
49th bit, is being set on our value to
mark<00:03:41.280><c> this</c><00:03:41.600><c> as</c><00:03:41.800><c> a</c><00:03:41.840><c> float</c><00:03:42.600><c> because</c><00:03:42.840><c> that's</c><00:03:43.080><c> how</c>

00:03:43.190 --> 00:03:43.200 align:start position:0%
mark this as a float because that's how
 

00:03:43.200 --> 00:03:44.830 align:start position:0%
mark this as a float because that's how
we<00:03:43.320><c> set</c><00:03:43.560><c> it.</c><00:03:43.880><c> But</c><00:03:43.960><c> this</c><00:03:44.120><c> obviously</c><00:03:44.440><c> means</c><00:03:44.720><c> that</c>

00:03:44.830 --> 00:03:44.840 align:start position:0%
we set it. But this obviously means that
 

00:03:44.840 --> 00:03:46.910 align:start position:0%
we set it. But this obviously means that
our<00:03:44.960><c> pointer</c><00:03:45.320><c> value</c><00:03:45.640><c> gets</c><00:03:45.840><c> disrupted.</c><00:03:46.680><c> If</c><00:03:46.840><c> we</c>

00:03:46.910 --> 00:03:46.920 align:start position:0%
our pointer value gets disrupted. If we
 

00:03:46.920 --> 00:03:48.430 align:start position:0%
our pointer value gets disrupted. If we
were<00:03:47.040><c> to</c><00:03:47.120><c> try</c><00:03:47.280><c> to</c><00:03:47.440><c> dereference</c><00:03:47.960><c> this</c><00:03:48.120><c> pointer</c>

00:03:48.430 --> 00:03:48.440 align:start position:0%
were to try to dereference this pointer
 

00:03:48.440 --> 00:03:50.310 align:start position:0%
were to try to dereference this pointer
later,<00:03:48.920><c> we</c><00:03:49.080><c> would</c><00:03:49.240><c> reach</c><00:03:49.480><c> a</c><00:03:49.520><c> crash.</c><00:03:50.160><c> The</c>

00:03:50.310 --> 00:03:50.320 align:start position:0%
later, we would reach a crash. The
 

00:03:50.320 --> 00:03:51.990 align:start position:0%
later, we would reach a crash. The
exploit<00:03:50.720><c> works</c><00:03:50.960><c> around</c><00:03:51.280><c> this</c><00:03:51.560><c> in</c><00:03:51.720><c> a</c><00:03:51.760><c> very</c>

00:03:51.990 --> 00:03:52.000 align:start position:0%
exploit works around this in a very
 

00:03:52.000 --> 00:03:53.950 align:start position:0%
exploit works around this in a very
interesting<00:03:52.480><c> way.</c><00:03:53.000><c> They</c><00:03:53.120><c> actually</c><00:03:53.440><c> split</c><00:03:53.840><c> the</c>

00:03:53.950 --> 00:03:53.960 align:start position:0%
interesting way. They actually split the
 

00:03:53.960 --> 00:03:56.150 align:start position:0%
interesting way. They actually split the
address<00:03:54.440><c> into</c><00:03:54.800><c> two</c><00:03:55.040><c> halves</c><00:03:55.600><c> and</c><00:03:55.680><c> then</c><00:03:55.840><c> fix</c>

00:03:56.150 --> 00:03:56.160 align:start position:0%
address into two halves and then fix
 

00:03:56.160 --> 00:03:58.150 align:start position:0%
address into two halves and then fix
things<00:03:56.440><c> up</c><00:03:56.600><c> later</c><00:03:57.320><c> when</c><00:03:57.480><c> they</c><00:03:57.600><c> actually</c><00:03:57.880><c> make</c>

00:03:58.150 --> 00:03:58.160 align:start position:0%
things up later when they actually make
 

00:03:58.160 --> 00:04:00.110 align:start position:0%
things up later when they actually make
use<00:03:58.400><c> of</c><00:03:58.480><c> the</c><00:03:58.600><c> fake</c><00:03:58.920><c> object</c><00:03:59.280><c> primitive,</c><00:03:59.960><c> which</c>

00:04:00.110 --> 00:04:00.120 align:start position:0%
use of the fake object primitive, which
 

00:04:00.120 --> 00:04:01.950 align:start position:0%
use of the fake object primitive, which
we'll<00:04:00.240><c> come</c><00:04:00.440><c> to.</c><00:04:01.040><c> They</c><00:04:01.160><c> first</c><00:04:01.480><c> produce</c><00:04:01.880><c> a</c>

00:04:01.950 --> 00:04:01.960 align:start position:0%
we'll come to. They first produce a
 

00:04:01.960 --> 00:04:04.510 align:start position:0%
we'll come to. They first produce a
64-bit<00:04:02.800><c> value</c><00:04:03.200><c> which</c><00:04:03.440><c> contains</c><00:04:03.960><c> the</c><00:04:04.120><c> bottom</c>

00:04:04.510 --> 00:04:04.520 align:start position:0%
64-bit value which contains the bottom
 

00:04:04.520 --> 00:04:06.790 align:start position:0%
64-bit value which contains the bottom
half<00:04:04.960><c> of</c><00:04:05.120><c> the</c><00:04:05.240><c> chosen</c><00:04:05.600><c> memory</c><00:04:05.840><c> address</c><00:04:06.480><c> in</c><00:04:06.640><c> its</c>

00:04:06.790 --> 00:04:06.800 align:start position:0%
half of the chosen memory address in its
 

00:04:06.800 --> 00:04:09.790 align:start position:0%
half of the chosen memory address in its
upper<00:04:07.040><c> half,</c><00:04:07.560><c> but</c><00:04:07.760><c> minus</c><00:04:08.280><c> hex</c><00:04:08.680><c> 20,000.</c><00:04:09.680><c> The</c>

00:04:09.790 --> 00:04:09.800 align:start position:0%
upper half, but minus hex 20,000. The
 

00:04:09.800 --> 00:04:11.590 align:start position:0%
upper half, but minus hex 20,000. The
bottom<00:04:10.080><c> half</c><00:04:10.280><c> of</c><00:04:10.360><c> this</c><00:04:10.560><c> value</c><00:04:10.960><c> is</c><00:04:11.160><c> set</c><00:04:11.400><c> as</c>

00:04:11.590 --> 00:04:11.600 align:start position:0%
bottom half of this value is set as
 

00:04:11.600 --> 00:04:13.710 align:start position:0%
bottom half of this value is set as
this,<00:04:12.080><c> which</c><00:04:12.320><c> represents</c><00:04:12.760><c> part</c><00:04:13.040><c> of</c><00:04:13.160><c> a</c><00:04:13.240><c> faked</c>

00:04:13.710 --> 00:04:13.720 align:start position:0%
this, which represents part of a faked
 

00:04:13.720 --> 00:04:16.190 align:start position:0%
this, which represents part of a faked
JSL<00:04:14.320><c> header</c><00:04:14.560><c> value</c><00:04:15.240><c> which</c><00:04:15.480><c> we'll</c><00:04:15.600><c> be</c><00:04:15.720><c> using</c><00:04:16.079><c> on</c>

00:04:16.190 --> 00:04:16.200 align:start position:0%
JSL header value which we'll be using on
 

00:04:16.200 --> 00:04:18.150 align:start position:0%
JSL header value which we'll be using on
our<00:04:16.359><c> fake</c><00:04:16.640><c> array.</c><00:04:17.359><c> This</c><00:04:17.519><c> defines</c><00:04:17.959><c> some</c>

00:04:18.150 --> 00:04:18.160 align:start position:0%
our fake array. This defines some
 

00:04:18.160 --> 00:04:19.750 align:start position:0%
our fake array. This defines some
important<00:04:18.600><c> characteristics</c><00:04:19.280><c> that</c><00:04:19.400><c> our</c><00:04:19.519><c> fake</c>

00:04:19.750 --> 00:04:19.760 align:start position:0%
important characteristics that our fake
 

00:04:19.760 --> 00:04:21.789 align:start position:0%
important characteristics that our fake
array<00:04:20.000><c> will</c><00:04:20.160><c> have.</c><00:04:20.760><c> Most</c><00:04:21.000><c> importantly,</c><00:04:21.560><c> the</c>

00:04:21.789 --> 00:04:21.799 align:start position:0%
array will have. Most importantly, the
 

00:04:21.799 --> 00:04:24.030 align:start position:0%
array will have. Most importantly, the
indexing<00:04:22.320><c> type</c><00:04:22.560><c> specified</c><00:04:23.080><c> here,</c><00:04:23.720><c> in</c><00:04:23.840><c> this</c>

00:04:24.030 --> 00:04:24.040 align:start position:0%
indexing type specified here, in this
 

00:04:24.040 --> 00:04:26.270 align:start position:0%
indexing type specified here, in this
case,<00:04:24.320><c> is</c><00:04:24.520><c> set</c><00:04:24.800><c> as</c><00:04:25.040><c> seven,</c><00:04:25.560><c> which</c><00:04:25.800><c> indicates</c>

00:04:26.270 --> 00:04:26.280 align:start position:0%
case, is set as seven, which indicates
 

00:04:26.280 --> 00:04:28.150 align:start position:0%
case, is set as seven, which indicates
that<00:04:26.360><c> this</c><00:04:26.560><c> is</c><00:04:26.680><c> an</c><00:04:26.760><c> array</c><00:04:27.160><c> with</c><00:04:27.440><c> double</c>

00:04:28.150 --> 00:04:28.160 align:start position:0%
that this is an array with double
 

00:04:28.160 --> 00:04:31.070 align:start position:0%
that this is an array with double
storing<00:04:28.760><c> raw</c><00:04:29.200><c> unboxed</c><00:04:29.920><c> float</c><00:04:30.160><c> values.</c><00:04:30.880><c> This</c>

00:04:31.070 --> 00:04:31.080 align:start position:0%
storing raw unboxed float values. This
 

00:04:31.080 --> 00:04:32.470 align:start position:0%
storing raw unboxed float values. This
is<00:04:31.160><c> important</c><00:04:31.640><c> since</c><00:04:31.920><c> we</c><00:04:32.000><c> want</c><00:04:32.120><c> to</c><00:04:32.200><c> be</c><00:04:32.280><c> able</c><00:04:32.400><c> to</c>

00:04:32.470 --> 00:04:32.480 align:start position:0%
is important since we want to be able to
 

00:04:32.480 --> 00:04:34.470 align:start position:0%
is important since we want to be able to
write<00:04:32.680><c> completely</c><00:04:33.280><c> controlled</c><00:04:33.800><c> data</c><00:04:34.200><c> into</c>

00:04:34.470 --> 00:04:34.480 align:start position:0%
write completely controlled data into
 

00:04:34.480 --> 00:04:36.670 align:start position:0%
write completely controlled data into
our<00:04:34.600><c> faked</c><00:04:34.920><c> array,</c><00:04:35.560><c> and</c><00:04:35.800><c> we</c><00:04:35.920><c> do</c><00:04:36.040><c> not</c><00:04:36.280><c> want</c><00:04:36.480><c> any</c>

00:04:36.670 --> 00:04:36.680 align:start position:0%
our faked array, and we do not want any
 

00:04:36.680 --> 00:04:38.470 align:start position:0%
our faked array, and we do not want any
further<00:04:36.960><c> processing</c><00:04:37.520><c> done</c><00:04:37.680><c> on</c><00:04:37.800><c> it</c><00:04:38.160><c> as</c><00:04:38.360><c> we're</c>

00:04:38.470 --> 00:04:38.480 align:start position:0%
further processing done on it as we're
 

00:04:38.480 --> 00:04:40.230 align:start position:0%
further processing done on it as we're
seeing<00:04:38.760><c> with</c><00:04:38.920><c> this</c><00:04:39.120><c> object.</c><00:04:39.880><c> This</c><00:04:40.000><c> will</c><00:04:40.080><c> make</c>

00:04:40.230 --> 00:04:40.240 align:start position:0%
seeing with this object. This will make
 

00:04:40.240 --> 00:04:42.070 align:start position:0%
seeing with this object. This will make
more<00:04:40.400><c> sense</c><00:04:40.680><c> later.</c><00:04:41.240><c> They</c><00:04:41.400><c> set</c><00:04:41.640><c> this</c><00:04:41.840><c> first</c>

00:04:42.070 --> 00:04:42.080 align:start position:0%
more sense later. They set this first
 

00:04:42.080 --> 00:04:45.070 align:start position:0%
more sense later. They set this first
64-bit<00:04:42.720><c> value</c><00:04:43.200><c> as</c><00:04:43.400><c> a</c><00:04:43.440><c> float</c><00:04:43.960><c> to</c><00:04:44.080><c> property</c><00:04:44.520><c> B</c><00:04:44.920><c> on</c>

00:04:45.070 --> 00:04:45.080 align:start position:0%
64-bit value as a float to property B on
 

00:04:45.080 --> 00:04:47.470 align:start position:0%
64-bit value as a float to property B on
the<00:04:45.200><c> object.</c><00:04:46.160><c> Next,</c><00:04:46.640><c> they</c><00:04:46.800><c> create</c><00:04:47.120><c> another</c>

00:04:47.470 --> 00:04:47.480 align:start position:0%
the object. Next, they create another
 

00:04:47.480 --> 00:04:49.750 align:start position:0%
the object. Next, they create another
64-bit<00:04:48.000><c> value</c><00:04:48.360><c> which</c><00:04:48.600><c> encodes</c><00:04:49.080><c> the</c><00:04:49.240><c> top</c><00:04:49.560><c> half</c>

00:04:49.750 --> 00:04:49.760 align:start position:0%
64-bit value which encodes the top half
 

00:04:49.760 --> 00:04:52.270 align:start position:0%
64-bit value which encodes the top half
of<00:04:49.880><c> the</c><00:04:49.960><c> pointer</c><00:04:50.720><c> in</c><00:04:50.840><c> its</c><00:04:51.040><c> bottom</c><00:04:51.360><c> half.</c><00:04:52.160><c> And</c>

00:04:52.270 --> 00:04:52.280 align:start position:0%
of the pointer in its bottom half. And
 

00:04:52.280 --> 00:04:53.750 align:start position:0%
of the pointer in its bottom half. And
then<00:04:52.400><c> the</c><00:04:52.480><c> top</c><00:04:52.720><c> half</c><00:04:52.880><c> of</c><00:04:53.000><c> this</c><00:04:53.200><c> value</c><00:04:53.520><c> isn't</c>

00:04:53.750 --> 00:04:53.760 align:start position:0%
then the top half of this value isn't
 

00:04:53.760 --> 00:04:55.470 align:start position:0%
then the top half of this value isn't
very<00:04:53.960><c> important,</c><00:04:54.480><c> but</c><00:04:54.640><c> is</c><00:04:54.760><c> actually</c><00:04:55.000><c> required</c>

00:04:55.470 --> 00:04:55.480 align:start position:0%
very important, but is actually required
 

00:04:55.480 --> 00:04:58.390 align:start position:0%
very important, but is actually required
in<00:04:55.600><c> representing</c><00:04:56.320><c> the</c><00:04:56.440><c> low</c><00:04:56.640><c> value</c><00:04:57.120><c> of</c><00:04:57.480><c> one.</c>

00:04:58.390 --> 00:04:58.400 align:start position:0%
in representing the low value of one.
 

00:04:58.400 --> 00:05:00.710 align:start position:0%
in representing the low value of one.
This<00:04:58.680><c> value</c><00:04:58.960><c> then</c><00:04:59.120><c> gets</c><00:04:59.400><c> set</c><00:04:59.680><c> to</c><00:04:59.800><c> property</c><00:05:00.240><c> C</c>

00:05:00.710 --> 00:05:00.720 align:start position:0%
This value then gets set to property C
 

00:05:00.720 --> 00:05:02.190 align:start position:0%
This value then gets set to property C
on<00:05:00.800><c> the</c><00:05:00.920><c> object.</c>

00:05:02.190 --> 00:05:02.200 align:start position:0%
on the object.
 

00:05:02.200 --> 00:05:03.270 align:start position:0%
on the object.
So,<00:05:02.400><c> now</c><00:05:02.520><c> we</c><00:05:02.640><c> have</c><00:05:02.800><c> this</c><00:05:03.000><c> really</c>

00:05:03.270 --> 00:05:03.280 align:start position:0%
So, now we have this really
 

00:05:03.280 --> 00:05:05.430 align:start position:0%
So, now we have this really
weird-looking<00:05:03.800><c> setup</c><00:05:04.280><c> in</c><00:05:04.440><c> the</c><00:05:04.520><c> memory</c><00:05:05.160><c> made</c>

00:05:05.430 --> 00:05:05.440 align:start position:0%
weird-looking setup in the memory made
 

00:05:05.440 --> 00:05:07.590 align:start position:0%
weird-looking setup in the memory made
up<00:05:05.680><c> of</c><00:05:05.880><c> float</c><00:05:06.200><c> values</c><00:05:06.640><c> that</c><00:05:06.760><c> we've</c><00:05:07.000><c> set</c><00:05:07.320><c> on</c><00:05:07.480><c> our</c>

00:05:07.590 --> 00:05:07.600 align:start position:0%
up of float values that we've set on our
 

00:05:07.600 --> 00:05:10.270 align:start position:0%
up of float values that we've set on our
object.<00:05:08.720><c> The</c><00:05:08.880><c> exploit</c><00:05:09.280><c> next</c><00:05:09.760><c> does</c><00:05:09.920><c> something</c>

00:05:10.270 --> 00:05:10.280 align:start position:0%
object. The exploit next does something
 

00:05:10.280 --> 00:05:12.390 align:start position:0%
object. The exploit next does something
very<00:05:10.520><c> simple</c><00:05:10.920><c> but</c><00:05:11.160><c> genius.</c>

00:05:12.390 --> 00:05:12.400 align:start position:0%
very simple but genius.
 

00:05:12.400 --> 00:05:14.790 align:start position:0%
very simple but genius.
They<00:05:12.600><c> add</c><00:05:12.800><c> the</c><00:05:12.920><c> value</c><00:05:13.440><c> hex</c><00:05:13.840><c> 14</c><00:05:14.560><c> to</c><00:05:14.680><c> the</c>

00:05:14.790 --> 00:05:14.800 align:start position:0%
They add the value hex 14 to the
 

00:05:14.800 --> 00:05:17.830 align:start position:0%
They add the value hex 14 to the
previously<00:05:15.400><c> leaked</c><00:05:15.760><c> pointer</c><00:05:16.480><c> to</c><00:05:16.680><c> our</c><00:05:16.840><c> object,</c>

00:05:17.830 --> 00:05:17.840 align:start position:0%
previously leaked pointer to our object,
 

00:05:17.840 --> 00:05:19.950 align:start position:0%
previously leaked pointer to our object,
and<00:05:17.960><c> then</c><00:05:18.080><c> they</c><00:05:18.240><c> store</c><00:05:18.640><c> this</c><00:05:18.880><c> amended</c><00:05:19.360><c> pointer</c>

00:05:19.950 --> 00:05:19.960 align:start position:0%
and then they store this amended pointer
 

00:05:19.960 --> 00:05:21.990 align:start position:0%
and then they store this amended pointer
out<00:05:20.200><c> of</c><00:05:20.360><c> bounds</c><00:05:20.840><c> into</c><00:05:21.120><c> the</c><00:05:21.240><c> adjacent</c><00:05:21.720><c> array</c>

00:05:21.990 --> 00:05:22.000 align:start position:0%
out of bounds into the adjacent array
 

00:05:22.000 --> 00:05:24.270 align:start position:0%
out of bounds into the adjacent array
storage.<00:05:22.960><c> They've</c><00:05:23.120><c> now</c><00:05:23.320><c> effectively</c><00:05:23.840><c> created</c>

00:05:24.270 --> 00:05:24.280 align:start position:0%
storage. They've now effectively created
 

00:05:24.280 --> 00:05:27.190 align:start position:0%
storage. They've now effectively created
a<00:05:24.360><c> fake</c><00:05:24.720><c> object</c><00:05:25.280><c> that</c><00:05:25.480><c> starts</c><00:05:26.000><c> at</c><00:05:26.160><c> offset</c><00:05:26.880><c> hex</c>

00:05:27.190 --> 00:05:27.200 align:start position:0%
a fake object that starts at offset hex
 

00:05:27.200 --> 00:05:30.110 align:start position:0%
a fake object that starts at offset hex
14<00:05:28.040><c> into</c><00:05:28.520><c> our</c><00:05:28.680><c> generic</c><00:05:29.120><c> object</c><00:05:29.520><c> of</c><00:05:29.640><c> keys</c><00:05:30.000><c> and</c>

00:05:30.110 --> 00:05:30.120 align:start position:0%
14 into our generic object of keys and
 

00:05:30.120 --> 00:05:32.190 align:start position:0%
14 into our generic object of keys and
float<00:05:30.360><c> values.</c><00:05:31.080><c> Now,</c><00:05:31.240><c> because</c><00:05:31.600><c> this</c><00:05:31.800><c> offset</c>

00:05:32.190 --> 00:05:32.200 align:start position:0%
float values. Now, because this offset
 

00:05:32.200 --> 00:05:34.790 align:start position:0%
float values. Now, because this offset
is<00:05:32.360><c> not</c><00:05:32.720><c> 8-byte</c><00:05:33.200><c> aligned,</c><00:05:33.760><c> but</c><00:05:33.960><c> rather</c><00:05:34.320><c> 4-byte</c>

00:05:34.790 --> 00:05:34.800 align:start position:0%
is not 8-byte aligned, but rather 4-byte
 

00:05:34.800 --> 00:05:37.510 align:start position:0%
is not 8-byte aligned, but rather 4-byte
aligned,<00:05:35.720><c> it</c><00:05:35.840><c> effectively</c><00:05:36.400><c> starts</c><00:05:36.840><c> halfway</c>

00:05:37.510 --> 00:05:37.520 align:start position:0%
aligned, it effectively starts halfway
 

00:05:37.520 --> 00:05:39.990 align:start position:0%
aligned, it effectively starts halfway
in<00:05:37.960><c> to</c><00:05:38.160><c> one</c><00:05:38.320><c> of</c><00:05:38.440><c> our</c><00:05:38.560><c> float</c><00:05:38.840><c> values.</c><00:05:39.640><c> This</c><00:05:39.840><c> has</c>

00:05:39.990 --> 00:05:40.000 align:start position:0%
in to one of our float values. This has
 

00:05:40.000 --> 00:05:42.430 align:start position:0%
in to one of our float values. This has
the<00:05:40.120><c> effect</c><00:05:40.560><c> of</c><00:05:40.720><c> shifting</c><00:05:41.240><c> things</c><00:05:41.520><c> in</c><00:05:41.640><c> memory</c>

00:05:42.430 --> 00:05:42.440 align:start position:0%
the effect of shifting things in memory
 

00:05:42.440 --> 00:05:44.310 align:start position:0%
the effect of shifting things in memory
such<00:05:42.760><c> that</c><00:05:42.880><c> our</c><00:05:43.000><c> fake</c><00:05:43.280><c> object</c><00:05:43.720><c> now</c><00:05:43.920><c> looks</c><00:05:44.120><c> like</c>

00:05:44.310 --> 00:05:44.320 align:start position:0%
such that our fake object now looks like
 

00:05:44.320 --> 00:05:46.870 align:start position:0%
such that our fake object now looks like
this.<00:05:45.240><c> The</c><00:05:45.480><c> arbitrary</c><00:05:45.960><c> pointer</c><00:05:46.520><c> that</c><00:05:46.720><c> was</c>

00:05:46.870 --> 00:05:46.880 align:start position:0%
this. The arbitrary pointer that was
 

00:05:46.880 --> 00:05:48.670 align:start position:0%
this. The arbitrary pointer that was
split<00:05:47.200><c> in</c><00:05:47.360><c> two</c><00:05:47.560><c> halves</c><00:05:48.160><c> has</c><00:05:48.280><c> now</c><00:05:48.480><c> been</c>

00:05:48.670 --> 00:05:48.680 align:start position:0%
split in two halves has now been
 

00:05:48.680 --> 00:05:51.230 align:start position:0%
split in two halves has now been
rejoined,<00:05:49.720><c> and</c><00:05:49.840><c> the</c><00:05:50.000><c> extra</c><00:05:50.320><c> bit</c><00:05:50.600><c> that</c><00:05:50.720><c> was</c><00:05:50.920><c> set</c>

00:05:51.230 --> 00:05:51.240 align:start position:0%
rejoined, and the extra bit that was set
 

00:05:51.240 --> 00:05:53.270 align:start position:0%
rejoined, and the extra bit that was set
has<00:05:51.440><c> resulted</c><00:05:52.120><c> in</c><00:05:52.280><c> the</c><00:05:52.400><c> pointer</c><00:05:52.680><c> value</c><00:05:53.000><c> being</c>

00:05:53.270 --> 00:05:53.280 align:start position:0%
has resulted in the pointer value being
 

00:05:53.280 --> 00:05:55.390 align:start position:0%
has resulted in the pointer value being
exactly<00:05:53.840><c> what</c><00:05:54.000><c> we</c><00:05:54.120><c> want</c><00:05:54.280><c> it</c><00:05:54.400><c> to</c><00:05:54.480><c> be</c><00:05:55.040><c> because</c><00:05:55.320><c> of</c>

00:05:55.390 --> 00:05:55.400 align:start position:0%
exactly what we want it to be because of
 

00:05:55.400 --> 00:05:57.870 align:start position:0%
exactly what we want it to be because of
our<00:05:55.520><c> subtraction</c><00:05:56.160><c> of</c><00:05:56.280><c> hex</c><00:05:56.520><c> 20,000.</c><00:05:57.600><c> And</c><00:05:57.720><c> not</c>

00:05:57.870 --> 00:05:57.880 align:start position:0%
our subtraction of hex 20,000. And not
 

00:05:57.880 --> 00:05:59.670 align:start position:0%
our subtraction of hex 20,000. And not
only<00:05:58.080><c> this,</c><00:05:58.440><c> but</c><00:05:58.600><c> the</c><00:05:58.680><c> value</c><00:05:59.040><c> just</c><00:05:59.320><c> before</c>

00:05:59.670 --> 00:05:59.680 align:start position:0%
only this, but the value just before
 

00:05:59.680 --> 00:06:01.950 align:start position:0%
only this, but the value just before
this<00:05:59.920><c> pointer</c><00:06:00.520><c> looks</c><00:06:00.840><c> enough</c><00:06:01.160><c> like</c><00:06:01.440><c> a</c><00:06:01.520><c> valid</c>

00:06:01.950 --> 00:06:01.960 align:start position:0%
this pointer looks enough like a valid
 

00:06:01.960 --> 00:06:04.350 align:start position:0%
this pointer looks enough like a valid
JSL<00:06:02.560><c> header</c><00:06:03.080><c> for</c><00:06:03.200><c> this</c><00:06:03.400><c> to</c><00:06:03.480><c> be</c><00:06:03.600><c> treated</c><00:06:04.120><c> as</c><00:06:04.280><c> a</c>

00:06:04.350 --> 00:06:04.360 align:start position:0%
JSL header for this to be treated as a
 

00:06:04.360 --> 00:06:06.470 align:start position:0%
JSL header for this to be treated as a
valid<00:06:04.800><c> JavaScript</c><00:06:05.360><c> array</c><00:06:05.600><c> object.</c><00:06:06.400><c> The</c>

00:06:06.470 --> 00:06:06.480 align:start position:0%
valid JavaScript array object. The
 

00:06:06.480 --> 00:06:08.550 align:start position:0%
valid JavaScript array object. The
structure<00:06:06.920><c> ID</c><00:06:07.240><c> is</c><00:06:07.400><c> actually</c><00:06:07.720><c> garbage</c><00:06:08.200><c> here,</c>

00:06:08.550 --> 00:06:08.560 align:start position:0%
structure ID is actually garbage here,
 

00:06:08.560 --> 00:06:09.910 align:start position:0%
structure ID is actually garbage here,
and<00:06:08.680><c> it</c><00:06:08.760><c> comes</c><00:06:09.040><c> from</c><00:06:09.160><c> one</c><00:06:09.280><c> of</c><00:06:09.360><c> our</c><00:06:09.480><c> previous</c>

00:06:09.910 --> 00:06:09.920 align:start position:0%
and it comes from one of our previous
 

00:06:09.920 --> 00:06:11.990 align:start position:0%
and it comes from one of our previous
floats,<00:06:10.680><c> but</c><00:06:10.920><c> it</c><00:06:11.000><c> won't</c><00:06:11.200><c> actually</c><00:06:11.480><c> be</c><00:06:11.600><c> needed</c>

00:06:11.990 --> 00:06:12.000 align:start position:0%
floats, but it won't actually be needed
 

00:06:12.000 --> 00:06:14.430 align:start position:0%
floats, but it won't actually be needed
for<00:06:12.120><c> simple</c><00:06:12.480><c> array</c><00:06:12.840><c> indexing</c><00:06:13.400><c> anyway.</c>

00:06:14.430 --> 00:06:14.440 align:start position:0%
for simple array indexing anyway.
 

00:06:14.440 --> 00:06:15.990 align:start position:0%
for simple array indexing anyway.
All<00:06:14.680><c> that</c><00:06:14.800><c> is</c><00:06:14.920><c> important</c><00:06:15.440><c> is</c><00:06:15.520><c> that</c><00:06:15.640><c> we</c><00:06:15.760><c> have</c>

00:06:15.990 --> 00:06:16.000 align:start position:0%
All that is important is that we have
 

00:06:16.000 --> 00:06:18.230 align:start position:0%
All that is important is that we have
the<00:06:16.160><c> indexing</c><00:06:16.760><c> mode</c><00:06:17.080><c> and</c><00:06:17.280><c> other</c><00:06:17.520><c> flag</c><00:06:17.840><c> bits</c><00:06:18.120><c> in</c>

00:06:18.230 --> 00:06:18.240 align:start position:0%
the indexing mode and other flag bits in
 

00:06:18.240 --> 00:06:20.270 align:start position:0%
the indexing mode and other flag bits in
the<00:06:18.320><c> header</c><00:06:19.120><c> and</c><00:06:19.280><c> the</c><00:06:19.320><c> completely</c><00:06:19.840><c> arbitrary</c>

00:06:20.270 --> 00:06:20.280 align:start position:0%
the header and the completely arbitrary
 

00:06:20.280 --> 00:06:22.230 align:start position:0%
the header and the completely arbitrary
butterfly<00:06:20.720><c> pointer</c><00:06:21.120><c> set</c><00:06:21.400><c> by</c><00:06:21.600><c> us</c><00:06:22.000><c> that</c><00:06:22.120><c> the</c>

00:06:22.230 --> 00:06:22.240 align:start position:0%
butterfly pointer set by us that the
 

00:06:22.240 --> 00:06:24.110 align:start position:0%
butterfly pointer set by us that the
JavaScript<00:06:22.800><c> engine</c><00:06:23.240><c> will</c><00:06:23.440><c> treat</c><00:06:23.800><c> as</c><00:06:23.920><c> this</c>

00:06:24.110 --> 00:06:24.120 align:start position:0%
JavaScript engine will treat as this
 

00:06:24.120 --> 00:06:25.870 align:start position:0%
JavaScript engine will treat as this
array's<00:06:24.520><c> backing</c><00:06:24.800><c> storage.</c>

00:06:25.870 --> 00:06:25.880 align:start position:0%
array's backing storage.
 

00:06:25.880 --> 00:06:27.830 align:start position:0%
array's backing storage.
So,<00:06:26.120><c> with</c><00:06:26.320><c> this</c><00:06:26.480><c> setup,</c><00:06:26.960><c> we</c><00:06:27.080><c> can</c><00:06:27.240><c> now</c><00:06:27.480><c> read</c>

00:06:27.830 --> 00:06:27.840 align:start position:0%
So, with this setup, we can now read
 

00:06:27.840 --> 00:06:29.870 align:start position:0%
So, with this setup, we can now read
from<00:06:28.080><c> index</c><00:06:28.520><c> zero</c><00:06:29.080><c> of</c><00:06:29.240><c> our</c><00:06:29.360><c> fake</c><00:06:29.600><c> array</c>

00:06:29.870 --> 00:06:29.880 align:start position:0%
from index zero of our fake array
 

00:06:29.880 --> 00:06:32.070 align:start position:0%
from index zero of our fake array
object,<00:06:30.760><c> and</c><00:06:30.840><c> the</c><00:06:31.000><c> element</c><00:06:31.360><c> returned</c><00:06:31.840><c> will</c><00:06:31.960><c> be</c>

00:06:32.070 --> 00:06:32.080 align:start position:0%
object, and the element returned will be
 

00:06:32.080 --> 00:06:34.630 align:start position:0%
object, and the element returned will be
a<00:06:32.160><c> float</c><00:06:32.600><c> representation</c><00:06:33.600><c> of</c><00:06:33.720><c> the</c><00:06:33.840><c> 64-bit</c>

00:06:34.630 --> 00:06:34.640 align:start position:0%
a float representation of the 64-bit
 

00:06:34.640 --> 00:06:36.790 align:start position:0%
a float representation of the 64-bit
value<00:06:35.120><c> at</c><00:06:35.320><c> that</c><00:06:35.520><c> memory</c><00:06:35.800><c> address.</c><00:06:36.440><c> The</c><00:06:36.560><c> same</c>

00:06:36.790 --> 00:06:36.800 align:start position:0%
value at that memory address. The same
 

00:06:36.800 --> 00:06:38.950 align:start position:0%
value at that memory address. The same
goes<00:06:37.120><c> for</c><00:06:37.320><c> writing.</c><00:06:38.040><c> The</c><00:06:38.120><c> functionality</c><00:06:38.800><c> for</c>

00:06:38.950 --> 00:06:38.960 align:start position:0%
goes for writing. The functionality for
 

00:06:38.960 --> 00:06:40.990 align:start position:0%
goes for writing. The functionality for
both<00:06:39.240><c> reads</c><00:06:39.600><c> and</c><00:06:39.800><c> writes</c><00:06:40.160><c> are</c><00:06:40.280><c> built</c><00:06:40.600><c> into</c><00:06:40.880><c> the</c>

00:06:40.990 --> 00:06:41.000 align:start position:0%
both reads and writes are built into the
 

00:06:41.000 --> 00:06:42.910 align:start position:0%
both reads and writes are built into the
jitted<00:06:41.360><c> trigger</c><00:06:41.600><c> function,</c><00:06:42.360><c> and</c><00:06:42.440><c> the</c><00:06:42.520><c> exploit</c>

00:06:42.910 --> 00:06:42.920 align:start position:0%
jitted trigger function, and the exploit
 

00:06:42.920 --> 00:06:45.030 align:start position:0%
jitted trigger function, and the exploit
can<00:06:43.040><c> specify</c><00:06:43.520><c> flags</c><00:06:43.960><c> to</c><00:06:44.160><c> trigger</c><00:06:44.440><c> these</c><00:06:44.680><c> paths</c>

00:06:45.030 --> 00:06:45.040 align:start position:0%
can specify flags to trigger these paths
 

00:06:45.040 --> 00:06:47.070 align:start position:0%
can specify flags to trigger these paths
accordingly.<00:06:46.000><c> The</c><00:06:46.160><c> exploit</c><00:06:46.560><c> then</c><00:06:46.760><c> also</c>

00:06:47.070 --> 00:06:47.080 align:start position:0%
accordingly. The exploit then also
 

00:06:47.080 --> 00:06:48.710 align:start position:0%
accordingly. The exploit then also
builds<00:06:47.440><c> some</c><00:06:47.640><c> nice</c><00:06:47.880><c> wrapper</c><00:06:48.160><c> functions</c><00:06:48.600><c> for</c>

00:06:48.710 --> 00:06:48.720 align:start position:0%
builds some nice wrapper functions for
 

00:06:48.720 --> 00:06:51.070 align:start position:0%
builds some nice wrapper functions for
this<00:06:49.120><c> here</c><00:06:49.520><c> and</c><00:06:49.680><c> here,</c><00:06:50.160><c> where</c><00:06:50.440><c> the</c><00:06:50.640><c> callers</c>

00:06:51.070 --> 00:06:51.080 align:start position:0%
this here and here, where the callers
 

00:06:51.080 --> 00:06:53.310 align:start position:0%
this here and here, where the callers
can<00:06:51.240><c> just</c><00:06:51.440><c> pass</c><00:06:51.760><c> in</c><00:06:51.960><c> an</c><00:06:52.080><c> address</c><00:06:52.640><c> and/or</c><00:06:53.040><c> some</c>

00:06:53.310 --> 00:06:53.320 align:start position:0%
can just pass in an address and/or some
 

00:06:53.320 --> 00:06:55.470 align:start position:0%
can just pass in an address and/or some
data<00:06:53.640><c> to</c><00:06:53.800><c> write,</c><00:06:54.480><c> and</c><00:06:54.760><c> everything</c><00:06:55.120><c> else</c><00:06:55.320><c> is</c>

00:06:55.470 --> 00:06:55.480 align:start position:0%
data to write, and everything else is
 

00:06:55.480 --> 00:06:57.190 align:start position:0%
data to write, and everything else is
handled.<00:06:56.360><c> So,</c><00:06:56.560><c> through</c><00:06:56.760><c> all</c><00:06:56.960><c> of</c><00:06:57.040><c> this</c>

00:06:57.190 --> 00:06:57.200 align:start position:0%
handled. So, through all of this
 

00:06:57.200 --> 00:06:58.790 align:start position:0%
handled. So, through all of this
trickery,<00:06:57.680><c> the</c><00:06:57.840><c> exploit</c><00:06:58.240><c> has</c><00:06:58.360><c> achieved</c><00:06:58.760><c> a</c>

00:06:58.790 --> 00:06:58.800 align:start position:0%
trickery, the exploit has achieved a
 

00:06:58.800 --> 00:07:01.030 align:start position:0%
trickery, the exploit has achieved a
situation<00:06:59.720><c> where</c><00:06:59.920><c> normal</c><00:07:00.240><c> JavaScript</c><00:07:00.760><c> code</c>

00:07:01.030 --> 00:07:01.040 align:start position:0%
situation where normal JavaScript code
 

00:07:01.040 --> 00:07:03.710 align:start position:0%
situation where normal JavaScript code
is<00:07:01.280><c> able</c><00:07:01.520><c> to</c><00:07:01.680><c> access</c><00:07:02.080><c> the</c><00:07:02.320><c> underlying</c><00:07:02.960><c> memory</c>

00:07:03.710 --> 00:07:03.720 align:start position:0%
is able to access the underlying memory
 

00:07:03.720 --> 00:07:06.030 align:start position:0%
is able to access the underlying memory
in<00:07:03.920><c> the</c><00:07:04.000><c> Safari</c><00:07:04.440><c> renderer</c><00:07:04.800><c> process.</c><00:07:05.840><c> With</c>

00:07:06.030 --> 00:07:06.040 align:start position:0%
in the Safari renderer process. With
 

00:07:06.040 --> 00:07:07.510 align:start position:0%
in the Safari renderer process. With
this<00:07:06.240><c> read</c><00:07:06.360><c> and</c><00:07:06.480><c> write</c><00:07:06.600><c> capability,</c><00:07:07.320><c> many</c>

00:07:07.510 --> 00:07:07.520 align:start position:0%
this read and write capability, many
 

00:07:07.520 --> 00:07:09.790 align:start position:0%
this read and write capability, many
doors<00:07:07.840><c> are</c><00:07:07.880><c> now</c><00:07:08.160><c> opened</c><00:07:08.480><c> up</c><00:07:08.680><c> to</c><00:07:08.800><c> the</c><00:07:08.920><c> attacker.</c>

00:07:09.790 --> 00:07:09.800 align:start position:0%
doors are now opened up to the attacker.
 

00:07:09.800 --> 00:07:11.350 align:start position:0%
doors are now opened up to the attacker.
They<00:07:09.920><c> have</c><00:07:10.040><c> the</c><00:07:10.160><c> ability</c><00:07:10.640><c> to</c><00:07:10.800><c> modify</c><00:07:11.240><c> the</c>

00:07:11.350 --> 00:07:11.360 align:start position:0%
They have the ability to modify the
 

00:07:11.360 --> 00:07:13.190 align:start position:0%
They have the ability to modify the
process<00:07:11.720><c> memory</c><00:07:12.080><c> as</c><00:07:12.240><c> they</c><00:07:12.400><c> please,</c><00:07:13.000><c> and</c><00:07:13.120><c> they</c>

00:07:13.190 --> 00:07:13.200 align:start position:0%
process memory as they please, and they
 

00:07:13.200 --> 00:07:14.590 align:start position:0%
process memory as they please, and they
will<00:07:13.320><c> use</c><00:07:13.520><c> this</c><00:07:13.680><c> ability</c><00:07:14.040><c> to</c><00:07:14.160><c> prepare</c><00:07:14.480><c> the</c>

00:07:14.590 --> 00:07:14.600 align:start position:0%
will use this ability to prepare the
 

00:07:14.600 --> 00:07:16.550 align:start position:0%
will use this ability to prepare the
next<00:07:14.840><c> stage</c><00:07:15.240><c> of</c><00:07:15.400><c> the</c><00:07:15.520><c> exploit</c><00:07:15.880><c> chain,</c><00:07:16.360><c> which</c>

00:07:16.550 --> 00:07:16.560 align:start position:0%
next stage of the exploit chain, which
 

00:07:16.560 --> 00:07:18.630 align:start position:0%
next stage of the exploit chain, which
is<00:07:16.680><c> gaining</c><00:07:17.080><c> native</c><00:07:17.440><c> code</c><00:07:17.640><c> execution</c><00:07:18.520><c> and</c>

00:07:18.630 --> 00:07:18.640 align:start position:0%
is gaining native code execution and
 

00:07:18.640 --> 00:07:20.430 align:start position:0%
is gaining native code execution and
essentially<00:07:19.160><c> escaping</c><00:07:19.800><c> the</c><00:07:19.880><c> JavaScript</c>

00:07:20.430 --> 00:07:20.440 align:start position:0%
essentially escaping the JavaScript
 

00:07:20.440 --> 00:07:22.590 align:start position:0%
essentially escaping the JavaScript
interpreter<00:07:21.040><c> altogether.</c><00:07:21.960><c> This</c><00:07:22.120><c> is</c><00:07:22.240><c> as</c><00:07:22.360><c> far</c>

00:07:22.590 --> 00:07:22.600 align:start position:0%
interpreter altogether. This is as far
 

00:07:22.600 --> 00:07:24.430 align:start position:0%
interpreter altogether. This is as far
as<00:07:22.720><c> my</c><00:07:22.880><c> analysis</c><00:07:23.360><c> has</c><00:07:23.480><c> gone</c><00:07:23.720><c> for</c><00:07:23.840><c> now,</c><00:07:24.080><c> so</c><00:07:24.320><c> we</c>

00:07:24.430 --> 00:07:24.440 align:start position:0%
as my analysis has gone for now, so we
 

00:07:24.440 --> 00:07:26.030 align:start position:0%
as my analysis has gone for now, so we
won't<00:07:24.640><c> look</c><00:07:24.760><c> at</c><00:07:24.840><c> that</c><00:07:25.040><c> in</c><00:07:25.160><c> this</c><00:07:25.360><c> video.</c><00:07:25.840><c> And</c>

00:07:26.030 --> 00:07:26.040 align:start position:0%
won't look at that in this video. And
 

00:07:26.040 --> 00:07:27.830 align:start position:0%
won't look at that in this video. And
for<00:07:26.160><c> anyone</c><00:07:26.440><c> who</c><00:07:26.560><c> saw</c><00:07:26.720><c> my</c><00:07:26.840><c> last</c><00:07:27.120><c> video,</c><00:07:27.680><c> it</c>

00:07:27.830 --> 00:07:27.840 align:start position:0%
for anyone who saw my last video, it
 

00:07:27.840 --> 00:07:29.710 align:start position:0%
for anyone who saw my last video, it
actually<00:07:28.160><c> seems</c><00:07:28.480><c> that</c><00:07:28.640><c> this</c><00:07:28.840><c> next</c><00:07:29.200><c> stage</c><00:07:29.560><c> is</c>

00:07:29.710 --> 00:07:29.720 align:start position:0%
actually seems that this next stage is
 

00:07:29.720 --> 00:07:31.430 align:start position:0%
actually seems that this next stage is
what<00:07:29.840><c> will</c><00:07:29.960><c> involve</c><00:07:30.360><c> the</c><00:07:30.440><c> WebAssembly</c><00:07:30.960><c> stuff,</c>

00:07:31.430 --> 00:07:31.440 align:start position:0%
what will involve the WebAssembly stuff,
 

00:07:31.440 --> 00:07:33.150 align:start position:0%
what will involve the WebAssembly stuff,
not<00:07:31.680><c> this</c><00:07:31.880><c> read</c><00:07:32.040><c> and</c><00:07:32.160><c> write</c><00:07:32.360><c> stage</c><00:07:32.760><c> as</c><00:07:33.000><c> I'd</c>

00:07:33.150 --> 00:07:33.160 align:start position:0%
not this read and write stage as I'd
 

00:07:33.160 --> 00:07:34.870 align:start position:0%
not this read and write stage as I'd
initially<00:07:33.560><c> assumed.</c><00:07:34.360><c> Let</c><00:07:34.480><c> me</c><00:07:34.560><c> know</c><00:07:34.680><c> what</c><00:07:34.800><c> you</c>

00:07:34.870 --> 00:07:34.880 align:start position:0%
initially assumed. Let me know what you
 

00:07:34.880 --> 00:07:36.230 align:start position:0%
initially assumed. Let me know what you
thought<00:07:35.080><c> of</c><00:07:35.160><c> this</c><00:07:35.320><c> video,</c><00:07:35.720><c> and</c><00:07:35.960><c> if</c><00:07:36.040><c> you</c><00:07:36.120><c> have</c>

00:07:36.230 --> 00:07:36.240 align:start position:0%
thought of this video, and if you have
 

00:07:36.240 --> 00:07:37.790 align:start position:0%
thought of this video, and if you have
suggestions<00:07:36.760><c> for</c><00:07:36.960><c> other</c><00:07:37.160><c> exploitation</c>

00:07:37.790 --> 00:07:37.800 align:start position:0%
suggestions for other exploitation
 

00:07:37.800 --> 00:07:39.270 align:start position:0%
suggestions for other exploitation
topics<00:07:38.120><c> that</c><00:07:38.240><c> you'd</c><00:07:38.400><c> like</c><00:07:38.560><c> to</c><00:07:38.640><c> see</c><00:07:38.840><c> covered</c><00:07:39.160><c> on</c>

00:07:39.270 --> 00:07:39.280 align:start position:0%
topics that you'd like to see covered on
 

00:07:39.280 --> 00:07:40.630 align:start position:0%
topics that you'd like to see covered on
this<00:07:39.440><c> channel,</c><00:07:39.800><c> then</c><00:07:40.000><c> let</c><00:07:40.120><c> me</c><00:07:40.200><c> know</c><00:07:40.440><c> in</c><00:07:40.560><c> the</c>

00:07:40.630 --> 00:07:40.640 align:start position:0%
this channel, then let me know in the
 

00:07:40.640 --> 00:07:42.030 align:start position:0%
this channel, then let me know in the
comments<00:07:41.000><c> down</c><00:07:41.160><c> below.</c><00:07:41.760><c> Thanks</c><00:07:41.960><c> for</c>

00:07:42.030 --> 00:07:42.040 align:start position:0%
comments down below. Thanks for
 

00:07:42.040 --> 00:07:43.510 align:start position:0%
comments down below. Thanks for
watching,<00:07:42.480><c> and</c><00:07:42.600><c> I'll</c><00:07:42.720><c> see</c><00:07:42.920><c> you</c><00:07:43.080><c> in</c><00:07:43.200><c> the</c><00:07:43.280><c> next</c>

00:07:43.510 --> 00:07:43.520 align:start position:0%
watching, and I'll see you in the next
 

00:07:43.520 --> 00:07:45.800 align:start position:0%
watching, and I'll see you in the next
one.

