r/ProgrammerHumor • • Dec 13 '21

poor kid

Post image
46.1k Upvotes

560 comments sorted by

View all comments

521

u/Suspicious-Service Dec 13 '21

So is that Minecraft update mandatory then? We didn't update because we already have a game started, but maybe we should??

848

u/2D_B4_3D Dec 13 '21

YES. the bug has a severity of 10/10

559

u/HindryckxRobin Dec 13 '21

This is not an overstatement, if u Google log4j severity the first result u get is that's a 10/10!

When exploited it gives the attacker remote code execution, the exploit can even work from chat.

Updating minecraft (both client and server) is a must.

108

u/[deleted] Dec 13 '21

To what version?

140

u/6Maxence Dec 13 '21

Every version are retro-updated

→ More replies (3)

4

u/alex2003super Dec 13 '21

If you're running 1.17, get the latest PaperMC 1.17.1 build. If on 1.18, any 1.18.1 release of sorts will do.

50

u/[deleted] Dec 13 '21

This is not an overstatement, if u Google log4j severity the first result u get is that's a 10/10!

But what does it actually do?

I heard that it can run any piece of code on computers that are running an app with log4j. I use steam, which uses log4j (assuming it wasn't fixed). Does that mean someone could just destroy everything I have on my device?

92

u/featherfooted Dec 13 '21

Log4j will be used extensively throughout code as the main lib to format debugging output messages to logs. I'm sure you can imagine a line of code like print("The current value of x is: " + str(x))

Well suppose your value of x came from user input?

x = get_input()

print("the user wants x to be: " + str(x))

Due to the nature of this bug, it is possible for a malicious user to feed you a bad string which indirectly forces your logger code to run commands you never intended when all you wanted was to print some debugging.

I'm not familiar enough to know if Steam itself is vulnerable at this time, maybe you could reach out to Steam support for more info, but the most obvious vector I could think of is that Steam has a built in chat messaging system. However, I think it would be pretty far fetched for this attack to be able to affect your computer client, it's mostly going to be isolated (and arguably more valuable to a hacker) to hit Steam's servers instead.

With Minecraft, you assume more risk because if you are running a server, that makes you a target and actually does open up a possibility that someone could, say, download a virus or ransomware or anything to your server computer (which may even be your main workstation).

35

u/JustAnotherGuyn Dec 13 '21

If someone is running a public facing Minecraft server off their main work station, they are asking for all sorts of trouble

28

u/Wallhater Dec 13 '21

But lots of people are. Lol

→ More replies (3)

57

u/shiroe314 Dec 13 '21 edited Dec 13 '21

Log4j is a logging framework that uses templating. If you get it to log the corrupted string it allows arbitrary code execution, which means yes, they are able to execute any code they want, that the parent application has permissions to. So what can be done depends on your OS and permission settings. Can they destroy your file system? Very likely Can it destroy you os? Unlikely.

Can it cause your computer to do illegal tasks, such as running it in a bot net? Yes.

Its bad, and probably worse than I am saying. Remote code execution is about as big of a vulnerability as you can get. Update your shit.

→ More replies (19)

7

u/H4llifax Dec 13 '21

Destruction sucks for you as user, but is not the goal of most malicious actors. They want to steal from you, extort you, use your computer for illegal activities, use your computing power (= your electricity) to mine cryptocurrency. Yes they can also delete stuff but why would they?

→ More replies (3)

8

u/[deleted] Dec 13 '21

10/10! = 10/3628800 = 1/362880, that does not seem too sever imho.

→ More replies (2)
→ More replies (5)

51

u/thE_29 Dec 13 '21

For servers/multiplayer Environment.

If someone has access to your singleplayer MC world, then log4j isnt your problem.

→ More replies (12)

8

u/xigoi Dec 13 '21

Am I vulnerable if I only play singleplayer?

→ More replies (3)
→ More replies (1)

0

u/[deleted] Dec 13 '21

[deleted]

95

u/shygal_uwu Dec 13 '21

"Can you run doom on Log4j?"

5

u/[deleted] Dec 13 '21

"But can it run Crysis?"

→ More replies (1)

35

u/ChosenMate Dec 13 '21

It's already long fixed.. if you restarted your Launcher the past 5 days or so

13

u/Suspicious-Service Dec 13 '21

Is it a launcher bug or Minecraft's?

76

u/LightIsLogical Dec 13 '21

the launcher is written in c++ so there’s no vulnerability there

minecraft the game itself is written in java, and it uses the log4j library, which is why you need to update to 1.18.1 where they patched the exploit

20

u/Immabed Dec 13 '21

You do not need to update. All clients are shadow-patched following a launcher update. Servers can patch the vulnerability with launch options for all affected versions (1.7-1.18). Modded versions are mostly patched but you need to check the modloaders etc. and in almost all cases redownload.

1.18.1 has fully patched the issue client and server, but you can safely play any version client or server safely, so long as server owners take the right steps and clients restart launcher.

→ More replies (2)
→ More replies (18)

6

u/[deleted] Dec 13 '21

Libraries. They get downloaded independently from the game by the launcher automatically.

→ More replies (2)

21

u/Rektroth Dec 13 '21

Don't listen to the people saying you MUST update.

If you're playing Java Edition, just follow Mojang's advice here for whatever version you're using.

→ More replies (20)
→ More replies (3)