WEBVTT - This file was automatically generated by VIMEO

0
00:00:09.300 --> 00:00:12.500
Hi and welcome back to Section 8 web

1
00:00:12.500 --> 00:00:13.700
 application attacks.

2
00:00:14.700 --> 00:00:18.600
In this video, you will learn how to discover authentication failures

3
00:00:18.600 --> 00:00:21.500
 on a vulnerable web application. I hope you're excited.

4
00:00:21.500 --> 00:00:23.100
 So let's try phone in.

5
00:00:23.700 --> 00:00:26.200
Sometimes a web application may not

6
00:00:26.200 --> 00:00:29.800
 be configured to handle use authentication and simply

7
00:00:29.800 --> 00:00:32.500
 allow Bon authorized users such as let's say

8
00:00:32.500 --> 00:00:35.600
 hackers to gain access to restricted

9
00:00:35.600 --> 00:00:37.300
 resources on the web server.

10
00:00:38.200 --> 00:00:41.600
If a web application authentication mechanism is designed

11
00:00:41.600 --> 00:00:44.400
 poorly then it retractor can simply perform

12
00:00:44.400 --> 00:00:47.900
 various types of attacks such as Brute

13
00:00:47.900 --> 00:00:50.500
 Force password spring and even credential

14
00:00:50.500 --> 00:00:53.400
 stuffing unused default user credentials

15
00:00:53.400 --> 00:00:56.700
 as we to gain access to the web application

16
00:00:56.700 --> 00:00:59.800
 on the web server. Sometimes web

17
00:00:59.800 --> 00:01:03.300
 administrators use the full configurations default

18
00:01:02.300 --> 00:01:05.500
 user cones, uneven week

19
00:01:05.500 --> 00:01:08.700
 passwords, which simply enables the attacker to

20
00:01:08.700 --> 00:01:11.200
 perform a Cyber attack on the

21
00:01:11.200 --> 00:01:15.200
 web app in this video. We will take a look at actually exploiting on

22
00:01:14.200 --> 00:01:17.700
 authentication failure on the Juice

23
00:01:17.700 --> 00:01:20.700
 Shop web application to get started simply open

24
00:01:20.700 --> 00:01:21.600
 your terminal.

25
00:01:22.200 --> 00:01:25.500
and let's run the docker container

26
00:01:25.500 --> 00:01:26.700
 for Juice Shop like so

27
00:01:29.300 --> 00:01:32.000
Great, so note. The docker container is running.

28
00:01:32.600 --> 00:01:34.400
 Let's open our web browser.

29
00:01:35.200 --> 00:01:36.000
Which is Firefox?

30
00:01:37.300 --> 00:01:40.300
And ensure the proxy settings for boob Suite

31
00:01:40.300 --> 00:01:43.300
 it is not an evil So currently we can see it is

32
00:01:43.300 --> 00:01:46.200
 tuned off to use the default Firefox settings.

33
00:01:47.900 --> 00:01:51.400
Simply Go to http colon slash

34
00:01:50.400 --> 00:01:53.100
 slash one to seven.

35
00:01:54.300 --> 00:01:56.100
Dot 0.0.1

36
00:01:56.900 --> 00:01:59.900
Cool on and Port 3000 EXO.

37
00:02:00.700 --> 00:02:03.200
Simply click on account and ensure that

38
00:02:03.200 --> 00:02:06.200
 you are not logged in as administrator account if you

39
00:02:06.200 --> 00:02:08.900
 are simply select the logout option.

40
00:02:09.800 --> 00:02:12.200
Let's click on this drop-down menu

41
00:02:12.200 --> 00:02:14.300
 here and let's click on the scoreboard.

42
00:02:16.200 --> 00:02:18.900
Next let's select broke on Authentication.

43
00:02:19.700 --> 00:02:20.100
like so

44
00:02:21.100 --> 00:02:22.700
let's scroll down just a little bit.

45
00:02:23.500 --> 00:02:26.500
And here you can see we have another exercise which is called login

46
00:02:26.500 --> 00:02:30.000
 as Jim. So apparently Jim is

47
00:02:29.100 --> 00:02:32.500
 a valid user on this

48
00:02:32.500 --> 00:02:35.400
 web application and the idea is to login

49
00:02:35.400 --> 00:02:38.200
 into gyms account. So let's do that.

50
00:02:39.500 --> 00:02:43.200
Let's click back on the home page here like so and

51
00:02:42.200 --> 00:02:45.300
 now that we are on all products so you

52
00:02:45.300 --> 00:02:48.500
 can see all the products that are being sold on this Juice

53
00:02:48.500 --> 00:02:49.400
 Shop web application.

54
00:02:50.400 --> 00:02:53.800
Let's say that you are an ethical hacker a penetration tester.

55
00:02:54.300 --> 00:02:57.500
Well, how could we determine a valid user credential

56
00:02:57.500 --> 00:03:00.100
 or how can we determine whether a user context?

57
00:03:01.300 --> 00:03:03.600
We can simply click on a call.

58
00:03:04.500 --> 00:03:07.800
And let's take a look at the login page on the

59
00:03:07.800 --> 00:03:10.100
 login page. There's an option that allows you to

60
00:03:10.100 --> 00:03:13.500
 reset a user's password. So let's

61
00:03:13.500 --> 00:03:15.400
 click forgot your password.

62
00:03:17.500 --> 00:03:20.100
Now that we click this speech we have seen that it is

63
00:03:20.100 --> 00:03:23.200
 asking for a valid user email address.

64
00:03:24.400 --> 00:03:27.400
A security question on the new password before we

65
00:03:27.400 --> 00:03:30.600
 enter any credentials. Let's turn

66
00:03:30.600 --> 00:03:33.000
 on the boob Suite proxy settings.

67
00:03:34.300 --> 00:03:36.700
And now let's launch boob Suite.

68
00:03:39.700 --> 00:03:42.500
Let's ensure the proxy settings are configured correctly.

69
00:03:44.300 --> 00:03:45.800
Let's turn on intercept.

70
00:03:47.400 --> 00:03:50.200
And let's head over back to the web application and refresh the

71
00:03:50.200 --> 00:03:51.500
 page to generate some traffic.

72
00:03:53.300 --> 00:03:55.700
Let's forward all of these request messages.

73
00:03:56.900 --> 00:03:58.000
Let's click on target.

74
00:03:59.700 --> 00:04:01.500
And let's select this first option.

75
00:04:02.200 --> 00:04:05.700
Which is each GDP colon slash slash.

76
00:04:05.700 --> 00:04:08.600
 One two, seven zero zero

77
00:04:08.600 --> 00:04:11.100
 one coolant 3000 right click

78
00:04:11.100 --> 00:04:13.300
 and select add to scoop.

79
00:04:14.200 --> 00:04:15.300
Simply select. Yes.

80
00:04:16.100 --> 00:04:19.200
I know click anyway here on this

81
00:04:19.200 --> 00:04:19.400
 bar.

82
00:04:19.900 --> 00:04:22.400
And simply select the option show only in

83
00:04:22.400 --> 00:04:24.300
 screw items and click apply.

84
00:04:24.900 --> 00:04:25.200
create

85
00:04:26.300 --> 00:04:29.200
so now that we are only focusing on the specific URL.

86
00:04:30.200 --> 00:04:33.500
Let's click on proxy one more time and forward any remaining traffic.

87
00:04:34.800 --> 00:04:35.200
Great.

88
00:04:36.600 --> 00:04:38.700
That's how about to all web application?

89
00:04:39.900 --> 00:04:41.100
on the web application

90
00:04:42.300 --> 00:04:46.000
we have learned that all the users users add juice

91
00:04:45.900 --> 00:04:49.100
 Dash each dot o

92
00:04:48.100 --> 00:04:50.200
 p do mean

93
00:04:51.300 --> 00:04:54.800
So therefore let's assume that Jim's credential or gyms

94
00:04:54.800 --> 00:04:58.100
 email address is gim guice.

95
00:04:59.500 --> 00:05:01.200
-sh.op

96
00:05:02.400 --> 00:05:03.100
greet

97
00:05:04.600 --> 00:05:07.600
If we click inside this box that says

98
00:05:07.600 --> 00:05:09.100
 security question.

99
00:05:09.800 --> 00:05:12.200
You should see the security question appearing.

100
00:05:13.500 --> 00:05:17.000
However, right now it's not clickable perhaps they

101
00:05:16.900 --> 00:05:19.600
 are HTTP requests that needs to be forward on

102
00:05:19.600 --> 00:05:21.300
 boob Suite. So let's follow them.

103
00:05:24.100 --> 00:05:27.800
And just like that we can see the security question appearing for

104
00:05:27.800 --> 00:05:31.500
 Jim which is your Elvis siblings

105
00:05:30.500 --> 00:05:32.300
 middle name.

106
00:05:33.200 --> 00:05:35.700
Let's follow any additional requests once more.

107
00:05:36.200 --> 00:05:40.200
Well to put simply we continue off intercept just temporarily.

108
00:05:41.700 --> 00:05:44.600
For the security question, let's create something.

109
00:05:44.600 --> 00:05:46.600
 Let's just create some traffic.

110
00:05:47.600 --> 00:05:51.000
So for the security question, I will type 1

111
00:05:50.400 --> 00:05:52.500
 2 3 as answer.

112
00:05:53.700 --> 00:05:56.900
For the password. I'm just going to use password.

113
00:05:57.800 --> 00:06:01.300
I'm going to repeat it pesswrd like

114
00:06:00.300 --> 00:06:01.500
 so.

115
00:06:02.400 --> 00:06:03.000
and now

116
00:06:03.600 --> 00:06:06.600
I'm going to turn on intercept on boob

117
00:06:06.600 --> 00:06:06.800
 Suite.

118
00:06:08.400 --> 00:06:11.400
And then I'm going to click on change create.

119
00:06:13.100 --> 00:06:14.900
Notice what has happened here?

120
00:06:15.600 --> 00:06:18.500
Poop sweet actually captured the pulse message.

121
00:06:19.300 --> 00:06:21.600
Here you can see the email address that I entered.

122
00:06:22.300 --> 00:06:24.000
the answer to the security question

123
00:06:25.100 --> 00:06:28.900
and the new password that I wanted to change on Jim's

124
00:06:28.900 --> 00:06:31.600
 account since you have captured this post requests.

125
00:06:32.300 --> 00:06:34.200
Let's send this to intruder.

126
00:06:35.800 --> 00:06:38.600
Intruder will simply allows to perform a dictionary

127
00:06:38.600 --> 00:06:41.300
 based attack or even a Brute Force attack.

128
00:06:42.200 --> 00:06:43.100
Let's right click.

129
00:06:43.700 --> 00:06:45.600
And select send to intruder.

130
00:06:46.300 --> 00:06:48.500
Create let's click on Intruder now.

131
00:06:49.400 --> 00:06:52.700
On Intruder simply click on Clay as

132
00:06:52.700 --> 00:06:55.000
 you can see we have Claire on the right hand side.

133
00:06:55.900 --> 00:06:56.300
Great.

134
00:06:56.900 --> 00:06:59.500
This will simply clear any placement positions

135
00:06:59.500 --> 00:07:01.000
 within the HTTP code.

136
00:07:01.800 --> 00:07:05.400
for the answer one, two three, simply highlighted

137
00:07:04.400 --> 00:07:05.700
 like so

138
00:07:07.100 --> 00:07:08.400
and simply click on ADD

139
00:07:09.300 --> 00:07:11.000
this will set a policeman value.

140
00:07:11.700 --> 00:07:14.300
next let's select the plow tab

141
00:07:14.300 --> 00:07:15.900
 with an intruder like so

142
00:07:17.600 --> 00:07:18.700
on the Pluto tab

143
00:07:19.400 --> 00:07:21.200
on the pilot options

144
00:07:22.300 --> 00:07:24.100
we can simply select around time.

145
00:07:25.600 --> 00:07:25.900
Great.

146
00:07:26.700 --> 00:07:29.500
So to peel type is now set to runtime file.

147
00:07:29.500 --> 00:07:30.400
 Excellent.

148
00:07:31.400 --> 00:07:34.500
Now it's time to add all file. Let's simply

149
00:07:34.500 --> 00:07:35.500
 click on select file.

150
00:07:36.200 --> 00:07:39.500
And let's navigate to the directory of Slash

151
00:07:39.500 --> 00:07:42.700
 user / share slash passwords

152
00:07:42.700 --> 00:07:45.200
 and we'll select the roku.txt file.

153
00:07:52.100 --> 00:07:55.200
ensure you select the rock you 30xc file

154
00:07:55.200 --> 00:07:55.500
 like so

155
00:07:56.500 --> 00:07:57.400
and click on open.

156
00:07:58.300 --> 00:07:58.900
Great.

157
00:08:00.100 --> 00:08:03.300
Once you are ready to start our attack simply click on

158
00:08:03.300 --> 00:08:04.600
 start attack like so

159
00:08:05.500 --> 00:08:06.200
select ok

160
00:08:07.400 --> 00:08:11.200
and we are looking for an HTTP 200 status

161
00:08:11.200 --> 00:08:11.600
 code.

162
00:08:12.600 --> 00:08:15.400
With this attack, it will simply try every possible

163
00:08:15.400 --> 00:08:18.400
 wood within the woodless itself.

164
00:08:19.600 --> 00:08:22.400
So once it's fine a valid name, we

165
00:08:22.400 --> 00:08:25.400
 should see an HTTP status code of 200.

166
00:08:26.300 --> 00:08:30.100
Currently the status codes of 300 400

167
00:08:29.100 --> 00:08:32.500
 500 seats ideas. No actual

168
00:08:32.500 --> 00:08:35.200
 connections. However, after the attack

169
00:08:35.200 --> 00:08:38.700
 is finished because simply fill the status code. I

170
00:08:38.700 --> 00:08:40.900
 look for one that says 200 like so

171
00:08:41.800 --> 00:08:44.400
As we can see with two hundred this means

172
00:08:44.400 --> 00:08:47.700
 a successful connection between boob Suite

173
00:08:47.700 --> 00:08:51.100
 while specifically between Intruder and actual

174
00:08:50.100 --> 00:08:51.700
 web application.

175
00:08:53.100 --> 00:08:56.600
At this point we have determined that the actual answer

176
00:08:56.600 --> 00:08:57.700
 is Samuel.

177
00:08:58.300 --> 00:09:01.200
So let's have our back to the proxy settings here.

178
00:09:02.200 --> 00:09:03.000
Let's turn it off.

179
00:09:03.500 --> 00:09:05.900
Let's head over back to the web application.

180
00:09:06.900 --> 00:09:09.600
And we have seen we are successfully completed challenge in

181
00:09:09.600 --> 00:09:11.100
 resetting James fastwood.

182
00:09:11.700 --> 00:09:13.000
So now we know.

183
00:09:14.400 --> 00:09:18.400
The eldest sibling middle name is Samuel

184
00:09:17.400 --> 00:09:20.600
 with a capital S. And the

185
00:09:20.600 --> 00:09:23.500
 password to login into gyms account is no

186
00:09:23.500 --> 00:09:25.200
 set to password create.

187
00:09:28.900 --> 00:09:31.200
During the course of this video you have learned how to

188
00:09:31.200 --> 00:09:34.900
 discover an authentication is you and even exploited on

189
00:09:34.900 --> 00:09:36.100
 a vulnerable web application.

190
00:09:38.100 --> 00:09:42.000
In the next video, you will learn how to exploit cryptographic failures.

191
00:09:41.600 --> 00:09:44.400
 I hope this video has been informative for

192
00:09:44.400 --> 00:09:46.100
 you and I will see you in the next one.
