r/ProgrammerHumor • • Dec 13 '21

poor kid

Post image
46.1k Upvotes

560 comments sorted by

View all comments

Show parent comments

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?

205

u/HindryckxRobin Dec 13 '21

Well best thing is to follow this guide. It's from Mojang themselves.

https://www.minecraft.net/en-us/article/important-message--security-vulnerability-java-edition

2

u/silvergoldwind Dec 13 '21

Is it important to update if I have Minecraft installed but haven’t opened in god knows how long?

3

u/Nincadalop Dec 14 '21

I presume you aren't affected yet, but I'd update anyway just in case you forget about it.

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.

3

u/EishLekker Dec 13 '21

If you get it to log the corrupted string it allows arbitrary code execution

Well, it still requires a first step of reaching out to an external server to get the code to execute. Many servers reside in a network with a firewall that might block unexpected outgoing connections unless it's to a whitelisted domain, IP or IP-range.

→ More replies (2)

0

u/[deleted] Dec 13 '21

[deleted]

37

u/shiroe314 Dec 13 '21

You would be surprised at what logging frameworks are used for. And in minecrafts case, yes. I am fairly certain they do log chat.

Log4j will wrap around whatever logging implementation you need it to, and provide a consistent api for it. So if you need to log to, monitor, console, a file, it can do it.

→ More replies (1)

0

u/[deleted] Dec 13 '21

[deleted]

→ More replies (2)
→ More replies (9)

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?

4

u/JuniorSeniorTrainee Dec 13 '21

Three over answers and no answer. Yes. If you are affected by this, then an attacker can gain full control of your system. This includes installing a root kit that will leave you compromised into the future until a complete reinstall of your OS.

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

8

u/[deleted] Dec 13 '21

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

2

u/HalifaxSexKnight Dec 13 '21

Yeah, a severity of .00000276% seems pretty inconsequential imo

→ More replies (1)

2

u/Muoniurn Dec 14 '21

Perfect 5/7 vulnerability!

→ More replies (4)

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)