WEBVTT - This file was automatically generated by VIMEO

0
00:00:09.430 --> 00:00:14.210
Hi and welcome back to Section five Blackhead Tricks with Net cat.

1
00:00:14.750 --> 00:00:18.890
In this video we're gonna talk about Nets CAT role in log four J

2
00:00:19.010 --> 00:00:23.610
exploitation. Log four J is a Java based framework,

3
00:00:24.190 --> 00:00:27.090
with's main function of logging client activities.

4
00:00:27.350 --> 00:00:32.010
Log four J framework is used to record user activity and the behavior

5
00:00:32.190 --> 00:00:36.170
of applications for subsequent review. In December, 2021,

6
00:00:36.560 --> 00:00:41.330
experts discovered a critical vulnerability known as log four shell

7
00:00:41.420 --> 00:00:45.810
heads of vulnerability link to the open source login library.

8
00:00:46.310 --> 00:00:48.490
Apache Log four J two,

9
00:00:48.980 --> 00:00:53.890
which has been actively exploited and bad actors have made millions of

10
00:00:53.890 --> 00:00:57.650
exploit attempts of the log four J to Java library.

11
00:00:58.070 --> 00:01:02.490
The vulnerability is a potential thread to millions more

12
00:01:02.490 --> 00:01:04.970
applications and devices across the globe.

13
00:01:05.290 --> 00:01:09.650
A lot of software is depend on Log four J and this vulnerability target

14
00:01:09.720 --> 00:01:12.530
operational failures at multiple fronts.

15
00:01:12.560 --> 00:01:17.490
This vulnerability enables a remote attacker to take control of a

16
00:01:17.650 --> 00:01:22.330
device on the internet. If a device is running certain version of Log four J,

17
00:01:22.510 --> 00:01:23.343
in this scenario,

18
00:01:23.610 --> 00:01:28.450
a remote shell can be obtained on a target system using a log four J open

19
00:01:28.450 --> 00:01:31.290
source exploit that is available to anyone.

20
00:01:31.510 --> 00:01:36.370
Log four J systems allow log messenger to have format strings in

21
00:01:36.380 --> 00:01:38.970
which external information is reference

22
00:01:40.850 --> 00:01:41.930
J N D I.

23
00:01:42.470 --> 00:01:47.410
And this process allows information to be retrieved remotely through various

24
00:01:47.930 --> 00:01:52.410
protocols search as ldap lightweight directory access

25
00:01:52.930 --> 00:01:53.650
protocol.

26
00:01:53.650 --> 00:01:58.130
J N D I lookup is the Java naming and director interface

27
00:01:58.470 --> 00:02:03.090
and work as a Java a p i for a director service that allows

28
00:02:03.400 --> 00:02:08.010
Java software clients to discover and look up data and eat

29
00:02:08.230 --> 00:02:13.210
and resources is vulnerability is a critical zero day

30
00:02:13.370 --> 00:02:18.250
vulnerability that allows an attacker to use Log four J and A

31
00:02:18.450 --> 00:02:23.330
J N D I in application to generate special requests to an attacker

32
00:02:23.340 --> 00:02:27.290
controller server. J N D A makes a L query.

33
00:02:27.470 --> 00:02:31.850
If log four J finds a string like that we have on the screen

34
00:02:32.590 --> 00:02:34.090
in a log messenger for example,

35
00:02:34.230 --> 00:02:38.930
it starts J N D I to ask the L type server at

36
00:02:39.250 --> 00:02:42.090
malicious path for the exploit object.

37
00:02:42.510 --> 00:02:46.810
So the malicious path is A U L I and this

38
00:02:47.710 --> 00:02:52.090
is a object. So this query, this J N D I query,

39
00:02:52.340 --> 00:02:55.770
query will consult LDAP server for this object.

40
00:02:55.830 --> 00:03:00.720
Any specific deployed object in this case when the response from the LDAP

41
00:03:00.720 --> 00:03:03.720
server reference the U L R JM D i,

42
00:03:03.780 --> 00:03:08.600
we automatically request are exploit class file from the web server

43
00:03:08.740 --> 00:03:09.573
and execute.

44
00:03:09.900 --> 00:03:14.480
So this is the common java file when you have the file name class.

45
00:03:15.180 --> 00:03:19.520
So this request will ask for this file and this

46
00:03:19.950 --> 00:03:21.840
file will be downloaded and executed.

47
00:03:22.100 --> 00:03:25.960
An attacker can insert J N D I reference that,

48
00:03:26.020 --> 00:03:30.960
go to a malicious LDAP server making then read to server a

49
00:03:31.120 --> 00:03:35.760
malicious Java class that make any choice action. So any action can be done.

50
00:03:36.260 --> 00:03:41.160
And because this code that is present in the DOT class could be

51
00:03:41.380 --> 00:03:42.140
as executed.

52
00:03:42.140 --> 00:03:47.040
So this is open a high highway path for any kind of attack.

53
00:03:47.180 --> 00:03:51.870
The malicious below which is a Java class can launch a common line

54
00:03:52.080 --> 00:03:53.590
shell on the victim server.

55
00:03:53.930 --> 00:03:58.710
And rhetoric all its input output streams to our remote web socket,

56
00:03:59.030 --> 00:04:04.030
creating a remote reverse shell. We saw before how we can do this mini net cat.

57
00:04:04.530 --> 00:04:08.830
So we have the example here. We have a net cat with some options, for example,

58
00:04:10.190 --> 00:04:14.150
lp, the port and the option E.

59
00:04:14.700 --> 00:04:18.710
It's mean that we as acute a script or a software program.

60
00:04:19.170 --> 00:04:23.830
In this case here we have an option to run and as acute a terminal for windows

61
00:04:24.050 --> 00:04:27.230
or a bash or a console or a bash for Linux for example.

62
00:04:27.530 --> 00:04:32.510
So this open a high attack options and if

63
00:04:32.570 --> 00:04:37.270
for this vulnerability we have four CVAs CVA is common

64
00:04:37.270 --> 00:04:42.030
vulnerabilities and exposures related for this vulnerability

65
00:04:42.610 --> 00:04:46.450
for shell CVAs. That's means this uh,

66
00:04:46.450 --> 00:04:51.290
representation of when we have a vulnerability that was confirmed and

67
00:04:51.290 --> 00:04:55.490
logged and we have the step by step for example or for reproduce,

68
00:04:55.800 --> 00:05:00.410
this exploit and vulnerability or we have some path to resolve

69
00:05:00.590 --> 00:05:05.010
and to conclude to close this vulnerability for example. So it's like a,

70
00:05:05.130 --> 00:05:09.850
a big database of all information for some vulnerability.

71
00:05:10.590 --> 00:05:15.170
In this case, we have four vulnerabilities. We have four CVAs.

72
00:05:15.630 --> 00:05:18.010
The format of CVA is the name cva.

73
00:05:18.630 --> 00:05:22.890
We have the year of this vulnerability in this case 2021

74
00:05:23.470 --> 00:05:27.290
and we have the ID for this vulnerability. So we have four.

75
00:05:27.550 --> 00:05:29.610
The original was 4 4 2 2 8.

76
00:05:29.630 --> 00:05:33.850
And this vulnerability was possible for an attacker to a execute to random code

77
00:05:34.140 --> 00:05:36.610
using a messenger lookup functionality.

78
00:05:37.030 --> 00:05:40.450
The second one with the ID 4 5 0 4 6.

79
00:05:40.750 --> 00:05:45.490
So this is made a possible for attacker to correct malicious input data that

80
00:05:45.490 --> 00:05:49.570
could cause, uh, information leak or remote code execution.

81
00:05:49.750 --> 00:05:53.730
The third one was win ID 4 5 5.

82
00:05:54.350 --> 00:05:58.880
And this mean that left the door open for an an attacker to indicate a deny of

83
00:05:58.880 --> 00:06:03.360
service does attack actually by causing in definitive

84
00:06:03.480 --> 00:06:07.480
recreational lookup on self-referential lookups,

85
00:06:07.860 --> 00:06:09.000
we have the latest one.

86
00:06:09.000 --> 00:06:13.680
The the new one was a 4 4 8 22 ID and an attacker which control

87
00:06:14.500 --> 00:06:19.360
of the target LDAP server could launch a remote code execution

88
00:06:19.460 --> 00:06:23.600
attack. When a configuration used a jdbc a painter,

89
00:06:24.200 --> 00:06:29.160
G N D J N D I LDAP data source u r i.

90
00:06:29.620 --> 00:06:33.840
So that's mean that this initial vulnerability was a path

91
00:06:34.580 --> 00:06:39.560
to open another ones because we have a lot of people and explore this

92
00:06:39.560 --> 00:06:44.200
vulnerability and one point can open a lot of others

93
00:06:44.340 --> 00:06:47.800
points and be explos of points like a,

94
00:06:47.840 --> 00:06:50.400
a cascade of vulnerability possibilities.

95
00:06:50.780 --> 00:06:53.920
So for these vulnerability specifically for log four J,

96
00:06:54.580 --> 00:06:59.280
we have initial point and we have some points of vulnerability

97
00:06:59.500 --> 00:07:03.760
in this case, the total of four vulnerabilities. So this is a,

98
00:07:03.840 --> 00:07:08.520
a very important vulnerability because a lot of systems in the internet

99
00:07:08.780 --> 00:07:10.840
use this log framework.

100
00:07:11.620 --> 00:07:15.800
So in 2021 we have hype for the attack

101
00:07:16.660 --> 00:07:21.640
and all the IT market run a lot try to

102
00:07:21.640 --> 00:07:26.600
resolve and to update all kind of software that use these log

103
00:07:26.600 --> 00:07:31.080
framework because any software that use this log

104
00:07:31.080 --> 00:07:34.960
framework was exposed to receive this kind of attack.

105
00:07:35.180 --> 00:07:39.680
So this was very, very dangerous. And so this is an important point to ours.

106
00:07:39.820 --> 00:07:43.960
Update the software or or driver of frameworks, libraries,

107
00:07:43.960 --> 00:07:48.720
doesn't matter what we use in our system and softwares in this video.

108
00:07:50.170 --> 00:07:54.760
Cat's role in four exploitation and how

109
00:07:54.760 --> 00:07:56.640
important this vulnerability.

110
00:07:57.300 --> 00:08:01.920
The next section we'll take a look at net net.

111
00:08:02.560 --> 00:08:03.280
I hope to see you there.
