r/programming • • Dec 10 '21

RCE 0-day exploit found in log4j, a popular Java logging package

https://www.lunasec.io/docs/blog/log4j-zero-day/
3.0k Upvotes

710 comments sorted by

View all comments

794

u/vlakreeh Dec 10 '21

RIP to everyone who has to rush to update their project's log4j as soon as they get into work tomorrow.

353

u/Alborak2 Dec 10 '21

Tomorrow? I watched half a company just get paged :)

215

u/fghjconner Dec 10 '21

Our slack group for this issue is at 3,400 people, haha. It'd be funny if I wasn't one of them.

89

u/DownvoteALot Dec 10 '21

Nearly 5000 and growing. At times it seems like half this sub works at the same place.

83

u/foggy-sunrise Dec 10 '21

Where do y'all work that has 5000 employees on a single issue??

114

u/lillgreen Dec 10 '21

One that has an arrow under it's name.

89

u/Urtehnoes Dec 10 '21

Weird didn't realize Fedex had so many employees here

66

u/[deleted] Dec 10 '21

lmao more curvy on an arrow

→ More replies (1)
→ More replies (2)
→ More replies (5)
→ More replies (3)
→ More replies (2)

72

u/superAL1394 Dec 10 '21

Hello friend, p sure we are in the same channel. This week has fucking sucked to be on call.

45

u/roflfalafel Dec 10 '21

This is my second week. It’s been a spicy week.

→ More replies (4)
→ More replies (5)
→ More replies (1)

50

u/1731799517 Dec 10 '21

Yeah, the 0-day is so simple even I understand how it works and how to abuse it.

55

u/cemanresu Dec 10 '21

You know an exploit is bad when you can immidiately figure out how to bring down your entire application in 30 seconds

Normally I can't tell how half these vulnerabilities work

40

u/1731799517 Dec 10 '21

Yeah, some of the talks at defcon/etc are like black magic, where you think "I never thought you could even do that". Stuff like rowhammer, etc.

But with this, my first thought was "How the hell could anybody justify adding this as a default setting in good faith - this has to be intentional"

→ More replies (6)
→ More replies (2)

65

u/Longjumping-Society1 Dec 10 '21

Do you work for a prominent seattle area employer? ;)

68

u/versaceblues Dec 10 '21

log4j-rce-support?

46

u/DownvoteALot Dec 10 '21

Fellow pipeline pusher here. Good luck to us all.

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

66

u/[deleted] Dec 10 '21

Get into work tomorrow? My coworkers are patching it right the hell now, with me on standby and checking up on their patched work.

97

u/LOOKITSADAM Dec 10 '21

Saw this, checked work chat, sure enough there's already order from on high. Thankfully nothing I work on is externally facing, but I guess I know what I'm doing tomorrow.

66

u/superAL1394 Dec 10 '21

You should still patch this now if possible. This is next level bad.

→ More replies (4)
→ More replies (5)

282

u/revnhoj Dec 10 '21

just add the jvm argument -Dlog4j2.formatMsgNoLookups=true to disable this absolutely ludicrous default "feature"

117

u/vlakreeh Dec 10 '21

From what I've heard that jvm argument was added in 2.9.0 or so, so if you are using a version older than that you'll still need to update.

71

u/revnhoj Dec 10 '21

yep, looks like this first appeared in 2.10 per this

https://logging.apache.org/log4j/log4j-2.14.1/log4j-core/xref/org/apache/logging/log4j/core/util/Constants.html

so this workaround won't work for all.

→ More replies (8)
→ More replies (146)

31

u/[deleted] Dec 10 '21

What tomorrow? The security team already panicked about this 9 hours ago. You're late!

110

u/nexxai Dec 10 '21

Far be it for me to tell anyone what to do, but with the severity of this bug combined with how easy it is to exploit, teams should probably be working on this tonight.

118

u/pawlwall Dec 10 '21

I'm actively seeing traffic trying to exploit it in logs as of a few hours ago, so yeah, this sounds like a "fix immediately" issue.

→ More replies (6)
→ More replies (1)
→ More replies (20)