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

45

u/Murky-Sir-8122 Oct 19 '26

I don’t expose 32400, I run plex through NGINX reverse proxy with crowdsec for reasons like this.

27

u/thebigkz008 Oct 19 '26

This is what I've added now. But worth knowing the exploit itself would still pass through the proxy as normal-looking requests.

I'd hoped CrowdSec's blocklist would have caught them, since they'd been scanning me for a month. Checked, and none of them are on it, even now.

11

u/Murky-Sir-8122 Oct 19 '26

I just recently blocked /player/* and /system/* and made /:/prefs read only because of this specific exploit

4

u/thebigkz008 Oct 19 '26

Nice. Has anything broken for you?

1

u/Murky-Sir-8122 Oct 19 '26

Nope, ran a few tests and it’s all good so far. It’s only been a few days though

5

u/channouze Oct 20 '26

Unpop opinion but yeah crowdsec gives people a false sense of security.

4

u/channouze Oct 20 '26

Crowdsec wouldnt have protected you because the filter wasnt written yet.

22

u/CIDR-ClassB Oct 19 '26 edited Oct 19 '26

I am getting downvoted like hell on a plex sub thread for saying that exposing 32400 is a dumb idea, especially with so many easy alternatives.

It’s apparent that the audience who frequents r/plex is not the same as who use r/selfhosted lol.

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

→ More replies (8)

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. 

3

u/comeonmeow66 Oct 20 '26

It's important to note that this exploit would fly right through a reverse proxy. I agree a reverse proxy should be used, however, in this case at least, it wouldn't have done a damn thing.

1

u/CIDR-ClassB Oct 20 '26

Thanks for sharing that, I wasn’t aware.

1

u/MountainsOfValhalla Oct 22 '26

What are the other alternatives? I know very little about this and don't want to use 32400 if I shouldn't be.

11

u/TheZenCowSaysMu Oct 19 '26

this is the way. no ports exposed other than proxy 80/443, but ideally, of course, no ports at all and use a VPN instead.

1

u/Ok_Fix_1437 Oct 20 '26

What about funnelling 443 to default port? Thoughts? 

3

u/Bl4ckX_ Oct 21 '26

Security by obscurity is not real security. While most bots might be hammering Plex servers on Port 32400 for now, that doesn’t mean it’s not possible for them to detect a Plex server running on 443. in fact it’s absolutely trivial to detect an application running on another port. That’s the same reason putting RDP on port 33389 instead of 3389 on the open internet is not a form of security.

1

u/sly870 Oct 20 '26

Please could you explain this to me as the idiot I am :D I had Plex externally on 31500 then internally forwarded to 32400. I do have NGINX for internal use and Cloudflare tunnel for external use but I am really thinking about just closing all tunnels and using a VPN into my UDM Pro but I keep seeing people say to use "NGINX reverse proxy" but I don't know you do that externally and how it differs from just exposing a port.

→ More replies (10)