r/perl • • 3d ago

question How long before a Perl2Shell exploit?

Just in the past couple of weeks we've had Php2Shell, Java2Shell and now Ruby2Shell.

How long before the AI researchers turn their guns on Perl?

19 Upvotes

16 comments sorted by

31

u/brtastic 🐪 cpan author 3d ago

I have wondered the same and came to the conclusion that camels don't have shells.

16

u/thecavac 🐪 cpan author 3d ago

I can code up some exploitable modules it that's any help getting Perl back in the news cycle 😉

I mean, having your pet project shutting down half the internet seems to be all the rage these days...

4

u/ReplacementSlight413 3d ago

Disruptive 🤣🤣🤣🤣

4

u/scottchiefbaker 🐪 cpan author 3d ago

All the cool kids are doing it.

6

u/grantmnz 3d ago

Once again Perl is ahead of the curve. Matt's Script Archive was delivering shell exploits over CGI back in the 90s.

1

u/heisthedarchness 9h ago

formmail.pl flashbacks intensify

7

u/washtubs 3d ago

Take it one step further. Switch all the backends to awk and you'll be safe.

8

u/sachmet 🐪 cpan author 3d ago

This is the first time I’ve seen someone suggest project should get more awkward…

6

u/readparse 3d ago

My goodness, how did I miss that opportunity for the last 30 years? #awkward

1

u/kentrak 2d ago

Apparently you didn't see the giant CGI security release recently? It already happened, it's just for an older component, but one still in use quite a few places.

https://metacpan.org/release/LEEJO/CGI-5.02/changes

Look at all those CVEs! None are really RCE though, so it wouldn't be a 2Shell type exploit, but given how common CGI is in older perl, this is probably kinda big.

1

u/FarToe1 2d ago

No I hadn't seen that, thank you. But not surprising - it seems that unless an exploit has a fancy name and a dedicated website it gets overlooked in the noise of the relentless exploit disclosures.

3

u/Key_River7180 3d ago

unfortunately a cve is not planned in our agendas

2

u/Gnouc 3d ago edited 3d ago

I havent digged into Ruby2Shell, but there's already existed human reports before Php2Shell and Java2Shell, so I doubt AI could find one easily without a true Perl hacker guiding it.

1

u/gimpwiz 3d ago

I run perl from the shell so you just gotta swap that around, and you're there!

1

u/Grinnz 🐪 cpan author 3d ago

Just throw some 2-arg opens called on user input in your programs, voila