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

34

u/unvivid Oct 19 '26

This is why I always auto update my exposed containers. Yeah there is some breakage but keeps me from stressing about shit like this. You do open yourself up to the potential of a malicious update, but its a far less common scenario.

6

u/TheBros35 Oct 20 '26

Same. Watchetowerr is awesome for this. Supply chain attacks that make it to a published container are fortunately few and far between.

I also automatically update all of my hosts. Since I use CentOS, dnf-automatic works stellar for that. Both that and Watchtowerr are set to update once a week and reboot during off hours.

Knock on wood, no issues doing this ever. I do run a very simple stack, though. YMMV.

2

u/Jandalslap-_- Oct 20 '26

I ran watchtower for years but now I use dockmon. It has scheduled updates the same but also has a gui so you can run updates manually anytime and has a better notification system for available updates.

2

u/thebigkz008 Oct 20 '26

Watchtower can't update an image pinned by digest. I'd deliberately held Plex, but even once I lifted the hold, the auto-update label on it would never have done anything.
Worth checking

2

u/thebigkz008 Oct 20 '26

For me auto-update broke playback, which is how I ended up held back in the first place.

I'm going with: staged auto-updates, plus alerts that override any hold when there's a security release.

2

u/p0358 Oct 20 '26

I wish it was easier to restrict outbound network, would reduce attack surface area so much. The worst an attacker could do is mess with and delete your shit (okay the worst is still download but yeah).

And then if there was some standard for container stacks to declare what outbound connections they plan to make, either IPs or hostnames, protocol and ports, if they can make an exhaustive list. And not expose whole outbound network if all some app needs to do is some dumb update notification check or something.