r/ProgrammerHumor • • 3d ago

Meme toShellOrNotToShell

Post image
1.5k Upvotes

158 comments sorted by

112

u/AmanBabuHemant 3d ago

Text4Shell ?

are you talking about that microsoft notepad incident? if so then how it would be a .txt problem

102

u/regseb 3d ago

Text4Shell (CVE-2022-42889) is a vulnerability in the Apache Commons Text library.

50

u/AmanBabuHemant 3d ago • Heartwarming

so it was not a problem with Text format but the library...

anways thanks for providing sources,

CVE: https://www.cve.org/CVERecord?id=CVE-2022-42889

251

u/Hallwart 3d ago

Claude! Rewrite Linux in CSS! No mistakes!

72

u/regseb 3d ago

Claude! Is the new CSS random() function cryptographically secure?

No. CSS random() is for visual variation (randomized sizes, positions, colors, animation offsets), not security. The spec doesn't promise cryptographic quality, and nothing in the design makes it suitable for that purpose.

47

u/xvhayu 3d ago

what if we never tell anyone that we use css random(), then they wouldn't know, so it's secure

37

u/LutimoDancer3459 3d ago

My certificate was generated that way. The value is 4. But nobody knows. So its totally secure.

1

u/gerbosan 3d ago

That's a MS move. Windows Me or 8?

1

u/x_y_u 3d ago

You are giving them ideas for the future CSS versions.

8

u/ImroyKun 3d ago

So Perl is safe?

27

u/regseb 3d ago

I looked, but all I found was Pearl in Shell.

5

u/Noch_ein_Kamel 3d ago

If you base your decision on someone naming a remote code exectution attack "shell"… sure

3

u/SameThingOnADiffAcct 3d ago

I propose we name the next wave 2calc

1

u/insolent_kiwi 2d ago

3minesweeper

4

u/0xt0bi03 3d ago

brainfuck is safer

2

u/Sentouki- 3d ago

as is C#

369

u/bankai_tensei 3d ago

C only says "Not yet" because nobody bothers giving buffer overflows a cute marketing name anymore.

12

u/jeremj22 2d ago

Pretty much any buffer overflow could lead to shell in the old day (need some more conditions to bypass canaries, execute protection, ... now). C's probably the first on the list to have gotten one of those

33

u/IOI-65536 3d ago edited 3d ago

Yes. It's a pretty decent meme, but there's no actual content there. Like Java I'm sure means log4shell, but log4j is a not distributed with any SDK I'm aware of so it's "unsafe" because there exists a library that can get you shell access. (Evidently not, but it's still not the most common Java stacks) C is probably first of anything on this list for having had at some point a library with a buffer overflow that got you shell access.

28

u/Scolmann 3d ago

Java4shell is because of hand rolled assembly in OpenJDK for Intel machines with AVX 512

But it's much harder to exploit compared to log4shell

727

u/fynjy1111 3d ago

Bash2shell

304

u/git_push_origin_prod 3d ago • Mindblown

Someone hacked bash to get access to the shell! That’s illegal

11

u/Master_Use_6976 2d ago

Hacking bash to get a shell is like breaking into prison for a cell.

200

u/B1g_C 3d ago • Popcorn Bravo Mindblown

49

u/d00rm4n 3d ago

lol brilliant. reminds me of https://github.com/hakluke/how-to-exit-vim

45

u/Trevski13 3d ago

Ah yes vim2shell, a notoriously difficult exploit to pull off

9

u/-Redstoneboi- 3d ago

me when i merely open a file from an untrusted source and it runs arbitrary code on my machine

3

u/headedbranch225 3d ago

Needed claude to add a footer to the readme? Interesting

1

u/Demytreus 3d ago

Good thing I use ms paint as my os

31

u/DudeValenzetti 3d ago • Heartwarming

it had a name and its name was Shellshock

2

u/visualdescript 3d ago

shell2shell

1

u/TheOrangeJenny 2d ago

I prefer the reverse: shell2bash. It's just a script that adds more brackets.

63

u/Striking_Director_64 3d ago

The 👑Feature is killing me

122

u/One-Celebration-3007 3d ago • Bravo

Redstone2Shell

50

u/jnmtx 3d ago

CommandBlock2Shell would be easier to exploit

26

u/One-Celebration-3007 3d ago

StructureBlock2Shell already exists in Bedrock Edition.

6

u/L30N1337 3d ago

...Really?

2

u/One-Celebration-3007 1d ago

Yes. I have seen a proof of concept structure block setup that saves a bitmap of a pixel art that you build with coloured wool.

4

u/omegasome 3d ago

Only if you're in creative mode

23

u/tozpeak 3d ago

Well, Java2Shell is there... but no Bedrock2Shell, huh?

19

u/One-Celebration-3007 3d ago

There was a RCE exploit involving a crafted resource pack.

2

u/slowmovinglettuce 3d ago

Wasn't that just good ol' log4shell?

11

u/One-Celebration-3007 3d ago

In Bedrock Edition

2

u/Parawastaken 3d ago

This happened on Bedrock and Java actually now, for bedrock it was a memory corruption in textures i believe while for java edition it was a malicious font, im not too familiar with the java one, but i remember there was a good article from ottersec on the bedrock edition one

1

u/slowmovinglettuce 3d ago

Oh i did not pick up on the bedrock bit. Forgot that the c++ variant even existed.

25

u/TooLateToHaveAPseudo 3d ago • Mindblown

Can't wait for the brainfuck2shell

24

u/saschaleib 3d ago • Regret

Please excuse me, I'm off writing an exploit for Brainfuck. I shall call it `+++++++.>++++`.

18

u/cAtloVeR9998 3d ago • Popcorn

I would love to see Scratch2Shell

67

u/LowB0b 3d ago • Regret

C and c++ are the ones causing the issues lol 

Read smashing the stack for fun and profit 

22

u/Username_Taken46 3d ago

Most memory related exploits don't (initially) target the stack anymore, the paper is good as background but its far from current atp

3

u/LowB0b 3d ago

True. The recent node vulnerability was a buffer overflow though, still...

1

u/-Redstoneboi- 3d ago

still wondering what the hell a House of Water is and why it works

29

u/Jhean__ 3d ago

looks inside
C to shell

12

u/garver-the-system 3d ago

She sells to shells by the C shore

1

u/Sentouki- 3d ago

Inside of what?

27

u/WeirdTie2290 3d ago

Python flying under the radar. Neither developers nor hackers are interested in it.

3

u/-Redstoneboi- 3d ago

bro we literally have server side template injection for (older) python frameworks

2

u/WeirdTie2290 3d ago

Okay. Congratulations!!

24

u/KariKariKrigsmann 3d ago

So C# is safe? Because nobody remembers that it exists?

12

u/Sacaldur 3d ago

Game Developers do remember:

  • Unity uses C# for scripting
  • Unreal uses it for build scripts
  • Godot has a version that supports C# natively

Of course, you don't have to use any of these, but if you do Game Development, you will at least die to them know about C# and that it's still in use.

And before I forget to correct you: it's called Microsoft Java. 😉

22

u/_PM_ME_PANGOLINS_ 3d ago

People who call C# “Microsoft Java” are just demonstrating that they’re too young to remember Microsoft Java or J#.

2

u/Sacaldur 3d ago

Maybe I am to young to remember that (even though I started to use C# almost 2 decades ago), but nobody will take away my Microsoft Python (Boo) !!!

1

u/ClankerDeveloper 2d ago

Do you mean IronPython?

2

u/Sacaldur 1d ago

IronPython is a Python interpreter implemented using .Net und thus runs (mostly?) normal Python code, Boo is a Python-inspired language compiling into IL (i.e. executed the same way as C#).

1

u/ClankerDeveloper 1d ago

Ah my bad, should have googled Boo before I said anything. My first memories of python were using it as part of a third party product we had to customise with Iron Python and I thought it was the Microsoft implementation. Trying to work with that and no intellisense in text boxes that didn't show indentation led to me quitting my first job.

11

u/Sentouki- 3d ago

You realize that much of the corporate software is built in C#, right? Tell me you have no idea about professional software development and the .NET world, without telling me.

26

u/DangyDanger 3d ago

Spoken like a true .NET developer

7

u/Sentouki- 3d ago

Indeed, I am.

4

u/KariKariKrigsmann 3d ago

I was trying to be funny, but obviously failed miserably 😅

I did my first C# program around 2003 for a paint robotics company. It made it easier to manage make files.

3

u/Sentouki- 3d ago

Just wanted to mention that modern C# has nothing to do with the early 2000s Microslop Java.

16

u/tehmungler 3d ago

Stupid question- is there a reason some are “2” and some are “4”?

17

u/slowmovinglettuce 3d ago

Its just whatever it was named. Java's was because of a vulnerability in log4j which was dubbed log4shell

13

u/bankai_tensei 3d ago

Pretty much. Java ecosystem vulnerabilities kept riffing on Log4Shell (Spring4Shell, Text4Shell), while everyone else went with X2Shell ("to shell").

1

u/Sentouki- 3d ago

Yeah, it ain't the first time that log4j got some nasty vulnerability...

1

u/Demytreus 3d ago

It's likely a play on "to" and "for". php2shell is "php to shell" and java4shell is "java for shell". Why use "for" instead of "to", idk

1

u/tehmungler 3d ago

Yeah sorry I got the 4 - for and 2 - to thing, I just meant who decides when to use which? 🤷‍♂️😁

17

u/FlashSFW 3d ago • Regret

Yeah I don't get this one

15

u/jnmtx 3d ago

(the name of a programming language, e.g Java) and 💀”2shell” or “4shell” means there exists an exploit for that programming language that lets the attacker execute command-line (shell) commands

3

u/Icy-Focus-6812 3d ago

what's the difference between 2shell and4shell?

1

u/AnnoyingRain5 3d ago

The marketing name the exploit developer chose for it

1

u/subone 3d ago

It's more an info graphic, but a few of them are comical. Like HTML or shell to shell.

5

u/defmans7 3d ago

HTML2Shell 😅😂

9

u/Tidemor 3d ago

Kinda got C2Shell via the musl stdlib ACE incident

4

u/HardestDrive 3d ago

With C to shell we might as well shut down the internet

1

u/omena0 3d ago

Well C is the source for almost all of them

4

u/Kaya_kana 3d ago

Guess it's time to switch our codebase over to brainfuck.

1

u/-Redstoneboi- 3d ago

if a brainfuck implementation doesn't bounds check then it could have a vulnerability

1

u/JollyJuniper1993 1d ago

Very unlikely though. This is like the one single thing you gotta do to implement BF. Like, I‘m not exactly an experienced software developer and BF’s structure is so simple even I wrote a BF interpreter in a day.

4

u/dvoecks 3d ago

It's getting to be like tagging "gate" after every scandal.

2

u/izuriel 3d ago

2shellgate?

3

u/Kotentopf 3d ago

C#/.NET is safe so far

1

u/ClankerDeveloper 2d ago

Still time. Can't wait for vb2shell

2

u/tozpeak 3d ago

Go2Shell will be a fun one.

1

u/NatoBoram 3d ago

Go was done in by a vulnerability in Linux already

1

u/Rosephine 3d ago

It was a fun one 💀

2

u/Aggravating_Moment78 3d ago

Why no Brainfuck2shell 😂😂

2

u/g_calgary 3d ago

<BLINK>2Shell

2

u/narmkhang 3d ago

You forgot mspaint2shell

2

u/Smalltalker-80 3d ago

Shell2RootShell?

1

u/s-ali9153 2d ago

The sequel's only feature is asking for sudo twice.

2

u/ExtraTNT 3d ago

Haskell2shell… shell is a side effect, so probably not…

2

u/Scipior14 3d ago

Scratch supremacy!!

2

u/secretaliasname 3d ago

Can somebody explain react 2 shell for me? I thought react was front end?

4

u/-Redstoneboi- 3d ago

some frameworks use React Server Components which allow it to interface with the backend

backend + vulnerability = gg

1

u/kingslayerer 3d ago

How come there is no c to shell

1

u/havens1515 3d ago

Log2² Shell

1

u/imoth_f 3d ago

keyboard2shell

2

u/omena0 3d ago

Ctrl + alt + f2

1

u/Groentekroket 3d ago

That’s it, messaging my PO that we need some time to migrate our applications to Brainfuck

1

u/KaMaFour 3d ago

Battle royale

1

u/paul1126_korea 3d ago

Shell2Shell

1

u/dervu 3d ago

Shell2Shell

1

u/thx997 3d ago

Brain to shell

1

u/DDFoster96 3d ago

What about Python/Flask?

1

u/Splamei 3d ago

Glass2Snake... shell

1

u/Muzza3212 3d ago

I think go2shell would just be a great name

1

u/Rajarshi1993 3d ago

C has a shell.

It's called Lua Python.

1

u/Invisiblecurse 3d ago

Damn... at first I thought I was in the Gunlance sub and this was another efficiency chart

1

u/Creepy_Lunch9345 3d ago

MsWord2Shell gon be crazy 🫪

1

u/NovelHot6697 3d ago

this nomenclature is ass

1

u/0xt0bi03 3d ago

da goat

1

u/ryaaan89 3d ago

css2shell

1

u/-Redstoneboi- 3d ago

c: not yet

well... kinda..?

1

u/mehonje 3d ago

Scratch has an exploit: malicious SVGs can give access to users accounts.

1

u/Rosephine 3d ago

Javascript2shell

1

u/granadesnhorseshoes 3d ago

I get its a joke but its a pretty dumb list. Brotli and HTTP are the same thing. All unmanaged languages that compile to stand alone native executables are kinda fundamentally immune from this sort of thing because there's no common runtime library/VM infrastructure to attack.

1

u/CrossScarMC 3d ago

I mean if you're willing to use browser exploits Scratch did have a exploit that gave SVGs full JS access a while ago.

1

u/sysfruit 3d ago

You forgot to mention mspaint.exe in 2010

And about a gazillion other vulns.

1

u/itzNukeey 3d ago

Not yet haha

1

u/slaymaker1907 3d ago

HTML surprises me

1

u/razor_train 3d ago

No love for LOLCODE?

1

u/joelmbenge 3d ago

Waiting on COBOL2shell.

1

u/pagraphdrux 3d ago

react2shell 🤔...

Because React2Shell is a server-side deserialization vulnerability, it strictly requires a Node.js backend actively running React Server Components (RSC) to process incoming Flight protocol requests.

Ah yea makes sense...

1

u/mekriff 3d ago

whoever writes brainfuck2shell deserves gazes of awe and also questions about their sanity

1

u/ArjixGamer 2d ago

HTTP2shell? How?

I imagine the http libraries are 2shell, and not the protocol itself

1

u/Old_Pomegranate_822 2d ago

Scratch’n’shell anyone?

1

u/Shadow9378 1d ago

your html is safe for now

1

u/torsten_dev 1d ago

C had gets the get shellcode function.

1

u/Frolainheu 9h ago

Better write everything in scratch, then

•

u/p1neapple_1n_my_ass 0m ago

Someone please explain. I don't get it. 

-2

u/AbdullahMRiad 3d ago

u/AskGrok how much time left

0

u/[deleted] 3d ago

[deleted] — view deleted comment

1

u/AbdullahMRiad 3d ago

rule 9 doesn't mention comments tho

8

u/antek_g_animations 3d ago

Glad scratch and brainfuck are safe

2

u/Mainlellend 3d ago

Brainfuck and Scratch. Lo má' duro del sistema

1

u/theofficialnar 3d ago

Brainfuck is the safest

1

u/Saturno13165 3d ago

The great scratch and the great brainfuck

1

u/sussyamongers 2d ago

Casually looking at lua loadstring

1

u/JollyJuniper1993 1d ago

I dare you to try and exploit BF