WEBVTT - This file was automatically generated by VIMEO

0
00:00:06.600 --> 00:00:09.000
Welcome back. We are in a demo

1
00:00:09.500 --> 00:00:14.200
 and now I'm going to focus on login functionality,

2
00:00:12.200 --> 00:00:14.600
 right?

3
00:00:15.700 --> 00:00:18.600
I'm going to find out whether

4
00:00:18.600 --> 00:00:21.400
 now login and password

5
00:00:21.400 --> 00:00:24.400
 parameters are vulnerable to

6
00:00:24.400 --> 00:00:25.900
 SQL injection.

7
00:00:26.800 --> 00:00:29.600
so what I have to do first is that

8
00:00:29.600 --> 00:00:33.000
 I'm going to put some login

9
00:00:32.300 --> 00:00:34.500
 like for example ABC

10
00:00:35.600 --> 00:00:38.100
And password like DF whatever.

11
00:00:39.200 --> 00:00:42.700
Just arbitrary data, and I'm going to

12
00:00:42.700 --> 00:00:45.600
 and intercept outgoing

13
00:00:45.600 --> 00:00:48.900
 request right? So first I have to well I

14
00:00:48.900 --> 00:00:51.500
 I see the form right like login and

15
00:00:51.500 --> 00:00:54.700
 password. So I know just from

16
00:00:54.700 --> 00:00:57.600
 the experience that the login and

17
00:00:57.600 --> 00:01:01.600
 password will be sent as post parameters, but

18
00:01:00.600 --> 00:01:03.500
 I need to learn the

19
00:01:03.500 --> 00:01:06.700
 exact structure and the names

20
00:01:06.700 --> 00:01:09.500
 of this parameters because this is well. I just see login

21
00:01:09.500 --> 00:01:12.500
 and password but you don't know what are the names

22
00:01:12.500 --> 00:01:15.200
 of the corresponding parameters, right? So you have

23
00:01:15.200 --> 00:01:18.700
 to intercept outgoing request and then you can start building your

24
00:01:18.700 --> 00:01:21.700
 SQL and map come on.

25
00:01:21.700 --> 00:01:23.200
 Okay, so I've got here.

26
00:01:24.300 --> 00:01:27.400
In my in my lab. I got burp Suite

27
00:01:27.400 --> 00:01:29.600
 burps sweet proxy.

28
00:01:30.600 --> 00:01:33.700
Actually burp Suite is a is an integrated

29
00:01:33.700 --> 00:01:36.600
 tool for web app security testing very popular

30
00:01:36.600 --> 00:01:39.700
 one used by many many

31
00:01:39.700 --> 00:01:42.400
 pentasters that take a hackers and buck hunters

32
00:01:42.400 --> 00:01:45.600
 and I'm going to focus just on a proxy functionality

33
00:01:45.600 --> 00:01:48.300
 here. There is a so-called Interceptor. I'm going

34
00:01:48.300 --> 00:01:51.200
 to intercept the outgoing request from

35
00:01:51.200 --> 00:01:55.700
 my browser just to learn how this request looks

36
00:01:54.700 --> 00:01:57.900
 like. Okay. So the Interceptor

37
00:01:57.900 --> 00:02:00.200
 is turned on now. I'm going

38
00:02:00.200 --> 00:02:01.500
 to click login.

39
00:02:03.500 --> 00:02:06.500
And you see this is my request.

40
00:02:08.400 --> 00:02:11.900
So you see that indeed we are talking about post request

41
00:02:11.900 --> 00:02:14.500
 to login.php.

42
00:02:15.400 --> 00:02:19.000
And the post parameters

43
00:02:18.800 --> 00:02:21.400
 are logging and the value

44
00:02:21.400 --> 00:02:24.100
 is ABC for example, and there is password.

45
00:02:25.300 --> 00:02:27.700
and with value DF and

46
00:02:29.400 --> 00:02:30.800
the host is example.com.

47
00:02:31.800 --> 00:02:34.300
Here because well

48
00:02:34.300 --> 00:02:38.200
 we are just sending this data to our

49
00:02:37.200 --> 00:02:41.600
 web application that is hosted on the domain example.com.

50
00:02:40.600 --> 00:02:43.900
 Okay, great. So having

51
00:02:43.900 --> 00:02:47.100
 this information we

52
00:02:46.100 --> 00:02:50.300
 can start building our Command

53
00:02:49.300 --> 00:02:52.800
 right SQL map command. So

54
00:02:52.800 --> 00:02:54.900
 a SQL map, right?

55
00:02:56.100 --> 00:03:00.300
Now we need to specify the URL.

56
00:03:01.400 --> 00:03:01.500
So

57
00:03:02.700 --> 00:03:04.100
let's jump here back.

58
00:03:06.500 --> 00:03:11.900
We are talking about example.com Slash

59
00:03:10.900 --> 00:03:13.500
 login PHP, right

60
00:03:13.500 --> 00:03:16.200
 and here you can see actually the

61
00:03:16.200 --> 00:03:21.100
 the traffic is going over https

62
00:03:19.100 --> 00:03:22.800
 Port 443. So

63
00:03:22.800 --> 00:03:25.800
 this is https protected traffic cool.

64
00:03:25.800 --> 00:03:28.200
 So let's just put this information to

65
00:03:28.200 --> 00:03:30.700
 ask SQL map so https.

66
00:03:32.300 --> 00:03:36.200
example.com and the

67
00:03:35.200 --> 00:03:36.700
 login

68
00:03:37.600 --> 00:03:39.100
dot PHP, right

69
00:03:40.200 --> 00:03:43.100
So far so good. Now we need to

70
00:03:43.100 --> 00:03:46.300
 specify our post parameters so data.

71
00:03:47.400 --> 00:03:48.300
equals sign

72
00:03:49.200 --> 00:03:50.600
and in between the

73
00:03:51.500 --> 00:03:54.200
quotes what we're gonna put we've got

74
00:03:54.200 --> 00:03:57.500
 login ABC password DF right

75
00:03:57.500 --> 00:04:00.300
 instead of ABC in the F. You can put whatever you want.

76
00:04:00.300 --> 00:04:02.300
 What's important is the name of the parameter?

77
00:04:03.700 --> 00:04:06.300
Um, I'll let me just do it

78
00:04:06.300 --> 00:04:10.900
 like this logging equal sign ABC but

79
00:04:09.900 --> 00:04:13.100
 you can just put whatever and password.

80
00:04:12.100 --> 00:04:15.400
 This is the name of this parameter with a

81
00:04:15.400 --> 00:04:15.600
 value.

82
00:04:16.500 --> 00:04:18.300
d e f right

83
00:04:20.000 --> 00:04:20.400
so

84
00:04:22.200 --> 00:04:23.200
far so good.

85
00:04:24.800 --> 00:04:25.300
now

86
00:04:26.600 --> 00:04:28.900
Let's put risk.

87
00:04:30.500 --> 00:04:32.500
to the value of free

88
00:04:33.400 --> 00:04:34.500
and level

89
00:04:36.200 --> 00:04:39.700
to the value of 5, right?

90
00:04:41.200 --> 00:04:46.000
And in case of successful SQL

91
00:04:44.200 --> 00:04:47.300
 injection detection, we're gonna

92
00:04:47.300 --> 00:04:50.100
 fetch the banner, right? That's what

93
00:04:50.100 --> 00:04:50.900
 we want to do.

94
00:04:51.700 --> 00:04:54.500
Let me double check the command. I

95
00:04:54.500 --> 00:04:57.200
 think that everything is clear. So we are also going to send the

96
00:04:57.200 --> 00:05:00.300
 maximum number of payloads just to increase the

97
00:05:00.300 --> 00:05:03.700
 likelihood of finding the school injection

98
00:05:03.700 --> 00:05:06.300
 either in login parameter or

99
00:05:06.300 --> 00:05:09.200
 password parameter, and I'm going to hit enter.

100
00:05:11.200 --> 00:05:14.300
Okay, so it has just started.

101
00:05:15.200 --> 00:05:19.000
And we need to wait. It's

102
00:05:18.800 --> 00:05:22.300
 sometimes it takes seconds. Sometimes

103
00:05:21.300 --> 00:05:24.800
 it it takes minutes, right?

104
00:05:24.800 --> 00:05:27.800
 It depends on the number of parameters, right? It can

105
00:05:27.800 --> 00:05:31.100
 take hours to detect the vulnerabilities. The

106
00:05:30.100 --> 00:05:33.800
 SQL map also is trying to figure out what

107
00:05:33.800 --> 00:05:36.700
 database is used out there. Right? It's

108
00:05:36.700 --> 00:05:39.200
 trying to send different payloads for different

109
00:05:39.200 --> 00:05:42.300
 databases. Okay, but what I can see here is

110
00:05:42.300 --> 00:05:45.500
 is well, I'm talking and here we've

111
00:05:45.500 --> 00:05:48.500
 got just a result. So post parameterogeneous vulnerable.

112
00:05:48.500 --> 00:05:51.300
 I don't want to test others. Let's let's

113
00:05:51.300 --> 00:05:52.100
 focus on this one.

114
00:05:53.300 --> 00:05:54.000
And yeah.

115
00:05:54.800 --> 00:05:57.800
Blazing fast again. The banner has

116
00:05:57.800 --> 00:05:59.900
 been extracted and here you see.

117
00:06:00.600 --> 00:06:04.800
The version right of the database again five

118
00:06:03.800 --> 00:06:07.000
 point five point forty

119
00:06:06.300 --> 00:06:09.200
 eight. This is what you already know. So the banner has

120
00:06:09.200 --> 00:06:12.500
 been extracted. So yeah, and this is

121
00:06:12.500 --> 00:06:15.200
 how it works. So now I'm

122
00:06:15.200 --> 00:06:18.500
 happy because you know more and

123
00:06:18.500 --> 00:06:21.700
 more about SQL map detection and exploitation. And

124
00:06:21.700 --> 00:06:25.100
 of course the core part is automation here,

125
00:06:24.100 --> 00:06:25.600
 right?

126
00:06:26.400 --> 00:06:29.200
So, you know how to test post parameters.

127
00:06:30.200 --> 00:06:33.300
For SQL injection, you know how to maximize the

128
00:06:33.300 --> 00:06:36.900
 number of payloads with risk and level does risk

129
00:06:36.900 --> 00:06:39.300
 dash level. So that's cool. You see

130
00:06:39.300 --> 00:06:40.800
 how it works exam in action.

131
00:06:41.600 --> 00:06:45.100
So yeah, it's time to jump

132
00:06:44.100 --> 00:06:47.400
 to another module and

133
00:06:48.800 --> 00:06:51.500
Play with web application firewalls. Thanks for

134
00:06:51.500 --> 00:06:52.000
 your attention.
