WEBVTT

00:01.400 --> 00:05.800
We're going to use a vulnerable OpenCode
version 1.18.21.

00:06.400 --> 00:12.300
We're going to start opencode serve, which is going to
spin up the web UI that we can access on localhost.

00:14.200 --> 00:18.800
Next, posing as the attacker, we're going to
grab our public IP address.

00:21.800 --> 00:26.200
And start a web server to host our malicious
HTML page and npm package.

00:29.700 --> 00:33.100
Finally, as the victim, we're going to browse
to the attacker's website.

00:35.100 --> 00:40.800
And the web page is going to trigger a cross-origin request
that will lead OpenCode to executing the malicious payload.
