WEBVTT

1
00:00:00.450 --> 00:00:02.190
Every click in a web app is

2
00:00:02.190 --> 00:00:02.990
a request.

3
00:00:03.160 --> 00:00:05.250
Most real bugs live in how the

4
00:00:05.250 --> 00:00:07.140
app handles those requests.

5
00:00:07.140 --> 00:00:09.180
A proxy lets you read them.

6
00:00:10.030 --> 00:00:12.230
When you click, your browser sends a

7
00:00:12.230 --> 00:00:13.810
request: a method, a path,

8
00:00:13.810 --> 00:00:15.000
and some headers.

9
00:00:15.170 --> 00:00:17.400
The server sends back a response:

10
00:00:17.400 --> 00:00:18.950
a status code, headers,

11
00:00:18.950 --> 00:00:19.970
and the page.

12
00:00:20.820 --> 00:00:23.000
After you log in, the server hands

13
00:00:23.000 --> 00:00:25.070
your browser a session cookie.

14
00:00:25.240 --> 00:00:28.010
The browser sends it back with every request.

15
00:00:28.180 --> 00:00:30.540
To the server, whoever holds that cookie

16
00:00:30.540 --> 00:00:31.100
is you.

17
00:00:31.270 --> 00:00:33.240
That is why attackers want it.

18
00:00:34.090 --> 00:00:36.600
An intercepting proxy sits between your

19
00:00:36.600 --> 00:00:38.230
browser and the server.

20
00:00:38.400 --> 00:00:40.750
Every request stops there first.

21
00:00:40.920 --> 00:00:42.450
You can read it, pause it,

22
00:00:42.450 --> 00:00:44.310
change it, and send it again.

23
00:00:45.160 --> 00:00:46.680
The lesson for builders:

24
00:00:46.680 --> 00:00:49.490
anything the browser sends can be changed.

25
00:00:49.660 --> 00:00:51.290
Hidden fields. Prices.

26
00:00:51.290 --> 00:00:52.630
Account numbers.

27
00:00:52.800 --> 00:00:54.500
A check that only runs in the

28
00:00:54.500 --> 00:00:55.830
page can be skipped.

29
00:00:56.000 --> 00:00:58.660
So the server must check everything itself.

30
00:00:59.510 --> 00:01:02.110
So: read the request, then question it.

31
00:01:02.280 --> 00:01:03.990
In the lab, you read a raw

32
00:01:03.990 --> 00:01:06.220
exchange, find the session cookie,

33
00:01:06.220 --> 00:01:08.390
record traffic through the proxy,

34
00:01:08.390 --> 00:01:09.990
and run a web scanner.

35
00:01:10.160 --> 00:01:12.750
Only intercept traffic to apps you own,

36
00:01:12.750 --> 00:01:14.420
or are allowed to test.
