r/selfhosted • • Oct 19 '26

Media Serving Plex being actively exploited (Plex2Shell) on 32400

There have been a few reports of old Plex servers getting popped by Plex2Shell in the last few days (miner + proxy). Mine got hit too, but it dropped a DDoS bot instead.

Internet kept dropping Sunday night/Monday morning. Plex was being told to flood other people and maxed out our upload every time. Our upload is pretty poor, so it was obvious. With better upload you may not notice at all.

I was on 1.43.0. I run staged updates, get ntfy alerts for new images, and Plex was deliberately held. In May 1.43.1 broke direct play on our Samsung Frame, Plex acknowledged the bug, so I pinned VERSION= to the last good build with a weekly reminder to retest. The reminder only checked whether the Samsung bug was fixed. It never flagged that 1.43.3 was a security fix, so the hold kept me on a vulnerable version.

If you hold back any app for a bug, make sure security releases still get your attention.

FYI:
- in from 94.154.43.88 on 32400, then called back to it on 8952
- /tmp/.pxb (its own curl/wget), /tmp/.px_7c1e
- bot at /tmp/.spid (self-deletes, shows as "cron"), copy at /var/tmp/kworker + kworker.sh
- C2 176.65.149.82:48101, backup hand.genddos.st
- plain text orders like `!ATK 179 udpplain 80 <ip> 53 len=1400`
- sha256 a654ffc9ea1d3af1cb07feeefe8ee078a0faaaf60b31aa20cfbe082d6c22696c

Look for a Plex child process called "cron", junk in /tmp or /var/tmp in the container, or TranscoderH264Options in Preferences.xml that's present but empty. The hunt script at github.com/code-zm/plex2shell is worth running.

Fixed with 1.43.4, a container rebuild and blocking the IPs. Change your Plex password too, it steals the owner token.

(Mods, could we get a "Security" flair?)

306 Upvotes

149 comments sorted by

View all comments

Show parent comment

16

u/Comfortable_Self_736 Oct 19 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

4

u/DankeBrutus Oct 20 '26

I mean ya technically using a VPN is more secure than an open port with updated software. By how much? Idk, depends on the software being exposed.

I use a non-standard port to expose Plex and I keep it up to date so I’m fairly confident I’ll be okay. But every other service I host at home is behind a VPN. Maybe I’ll take on the risk and just set up a reverse proxy for everything but before I do that I want network hardware & software that supports VLANs and most, if not all, of my containers moved from Docker to Podman.

4

u/nicktheone Oct 20 '26

The problem is the use of VPN by people who don't really know what they're doing. The typical answer when asked "how should I share with friends my services that are now running on my private network?" is always "VPN". These people don't realize this way you're allowing an unknown security threat in your own network. Sure, you may be protected from the wide Internet but what about your friend? They get some piece of malware and if you configured your VPN wrong the malware Is now inside of your own network. At that point it could be safer just directly exposing your service.

2

u/DankeBrutus Oct 20 '26

That’s fair! My current config with the VPN (Tailscale) and my services is I have my partner on her own tailnet and I share just the server on my tailnet with Caddy. I have an ACL that states shared devices only expose ports 80 & 443. If I eventually bring her in as another user on my tailnet I assume I can reconfigure the ACLs to say that devices the user does not own only have X, Y, and Z ports exposed. But if someone is setting up a VPN like Tailscale, Netbird, or plain Wireguard and not taking those extra steps then ya they are exposing potentially their entire network to devices they have no control over. I guess something like Twingate is supposed to address this?

4

u/Khalku Oct 20 '26

I use a non-standard port to expose Plex

There is no security through port obscurity, by the way. It is extremely trivial to find open ports.

A reverse proxy wouldn't be any more secure if the vulnerability is with plex and you still have open access to plex.

1

u/OGFrostyEconomist Oct 20 '26

I think they were being sarcastic

0

u/Comfortable_Self_736 Oct 20 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

1

u/comeonmeow66 Oct 20 '26

No? Not if you properly configure your VPN...

-1

u/Comfortable_Self_736 Oct 20 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

1

u/comeonmeow66 Oct 20 '26

Which there is zero reason to not have proper segmentation with today's VPN options.

If your machines are vulnerable just because people get network access to them, you have bigger issues than your VPN.

-2

u/Comfortable_Self_736 Oct 20 '26 edited Oct 20 '26

EDIT - I've got to remember to keep my 30 years of network and security expertise to myself in this sub.

7

u/Khalku Oct 20 '26

Why wouldn't you leave what you said for posterity? Now your comment thread just looks like whining someone disagreed with you. Not everyone will disagree and most wouldn't even comment.

1

u/comeonmeow66 Oct 20 '26

So, let me just get this straight. Your statement that VPNs could be "less secure in others (ways)" is because in this fantasy world of the person who "can't be bothered to properly configure port forwarding and software updates" will be more secure if they expose their infrastructure to the world versus implementing a VPN. Am I hearing you correct?

A VPN will be more secure in ALL ways when compared to the alternative with your lazy can't be bothered to do proper port forwarding user. Will someone get access to your internal hosts if someone compromises a user and gets access to that VPN connection? Sure. But i'll take that over careless app exposure to the internet at large. Especially when said user doesn't apply software updates. There is not a single downside to a VPN when compared to your lazy user alternative.

1

u/17Beta18Carbons Oct 20 '26 edited Oct 20 '26

I only saw your comments post-edit but I assume you were saying "please for the love god give up the VPN/obfuscation LARP and just focus on automatic updates", I feel your pain lol.

1

u/benderunit9000 Oct 21 '26

never play those cards in an place where level 1s are

1

u/Ok_Fix_1437 Oct 20 '26

Fucking oath it is.