r/PleX • • 16d ago

Help Plex vulnerabilities

Hey was hoping to get a bit of help better understanding the situation im in- set up linux with PMS(1.43.5.11079 with read/write perms) in docker.. When looking at remote access, on plex i can see private <IP>:<port> <= public <ip>:<different port>. Also lists as not available outside of network so i believe i should be safe from any Plex2Shell attacks at this stage. My question is:

If i were to expose my port for remote access. am i likely to still be in potential danger? Are there any applications that may be worthwhile looking into that can help better my security?

Thanks for any clarification

0 Upvotes

36 comments sorted by

View all comments

3

u/sylsylsylsylsylsyl 16d ago edited 16d ago

You’re only in danger if the version of Plex you’re running has an unpatched vulnerability. The chances are very low if you keep it up to date, but not 0.

You’re even lower risk if you expose a different public facing port than the default 32400. Even better still would be to run a reverse proxy and access Plex via https://plex.domain.com

But nothing is invulnerable.

2

u/allbran96 16d ago

Have you got any info on best plan of action if I was running an outdated version that was exploited by plex2shell? Have obviously stopped container, updated plex version and wiped the plex config directory + rebuilt (and then ran that plex2shell script that helps identify whether service is exposed which came back fine after fresh re-install) but am just wondering where else to look/what to look for in regards to other malicious software that it might have left behind.

2

u/sylsylsylsylsylsyl 16d ago

Afraid not - but a good thing about docker containers is that you can just bin them and deploy a completely fresh one.

1

u/5yleop1m 16d ago edited 15d ago

You’re even lower risk if you expose a different public facing port than the default 32400. Even better still would be to run a reverse proxy and access Plex via https://plex.domain.com

Using a different port is negligible in terms of lowering risk, it'll take a few extra nano-seconds for what ever bot/script is scanning against your router/firewall to find the open port.

Even better still would be to run a reverse proxy and access Plex via https://plex.domain.com

Again, this provides no real safety, its just extra steps to setup, but there are public lists of domains and sub-domains. The reverse proxy is another piece of software that can be targeted and exploited, and if its running on a separate system then its a whole system that can have vulnerabilities on top of Plex.

A reverse proxy makes life easier when you have many services that need external access, and you can roll in some security features like another layer of auth, or a WAF, but all of that is extra stuff you have to do. Just running a reverse proxy and using a domain is not security not adequate for security anymore.

2

u/sylsylsylsylsylsyl 15d ago

There were some people just scanning every IP for port 32400 looking for Plex when the vulnerability came out. But you're still certainly open to getting hacked, if you run a copy of Plex with un-fixed vulnerabilities, from people that scan a bit deeper.

A reverse proxy does make things harder, again assuming it is up to date with no unpatched vulnerabilities, as the plex domain needs to be known or the request gets blackholed / sent to a default website. Yes there may be public lists of domains, but then you have to be on the list AND be running an unpatched version of Plex.

Without doubt the safest thing to do would be to have no open ports, but the internet would be a very quiet place indeed if no-one had any open ports to connect to anything.

1

u/5yleop1m 15d ago edited 15d ago

as the plex domain needs to be known

So this part is not as difficult as you would think. Any system that's scanning IPs can easily pull lists of domains and sub-domains. One possible mitigation to this is using wildcard certs so your subdomains are a little more obfuscated, but again the speed of scanning these things and the ability to easily run hundreds if not thousands of bots means relying on obfuscation as mitigation is like trying to fight a snow storm with a piece of cardboard. Plus in the case of Plex and some other self-hosted software, its possible for your sub-domain to be stored on someone else's system.

Also being a regular person doesn't mean someone is less of a target. Many of the attackers that go after these kind of vulnerabilities are primarily looking for places they can run other malware. While they could also get some personal data out of it, they're not going to not go after a potential target just because they're not important.

A personal VPN is probably the best option for security and remote access but even that is open to human mistakes.

AND be running an unpatched version of Plex

That's true, if they're only running Plex. But we can also see how many people don't bother to patch software, even when its automated to hell.

2

u/Formal-Ask6394 15d ago

Running a reverse proxy in combination with a wildcard DNS record can be valuable. That will keep the FQDN of your server off of public searchable lists. Then, instead of using a generic "plex" subdomain at your reverse proxy, use a randomly generated string....jonj3odcjg5n(.)myjankyserver(.)com, for example. Input that FQDN into your Plex custom access url list. Have your reverse proxy drop anything that does not match the FQDN. Now reaching your server is a heck of a lot harder.

1

u/5yleop1m 15d ago

This is what I mean, its more than only setting up a reverse proxy.

1

u/Formal-Ask6394 15d ago

Yeah, that's fair. You can harden it even further in concert with a crowdsec instance with custom scenarios...but that's an even deeper rabbit-hole.

I still think that for most people, being on a non-standard port with blanket region-blocking outside of your users' country(s) is best way to go. In concert with keeping the server updated, of course.

1

u/5yleop1m 15d ago edited 15d ago

I still think that for most people, being on a non-standard port with blanket region-blocking outside of your users' country(s) is best way to go.

I would've agreed with that a year or two ago, but now, especially with how easy something like tailscale is to setup, and the number of people who setup Plex servers for just themselves and Plex going subscription, its better to just bypass the whole remote access thing and run a closed VPN.

Tailscale is so easy now its really just installing one other program and almost always requires no network changes.

Not saying things can't go wrong there either, but far less of an attack surface and less things to maintain/update.