I thought Atlassian products were well trusted. Is that not the case?
https://confluence.atlassian.com/doc/confluence-security-adv...
Each time, they patch the particular vulnerable script, but they don't seem to have done anything systematic which would eliminate the entire class of vulnerabilities (like, say, adding taint-checking for unquoted, client-supplied content before running code as an OGNL script). So they keep coming up.
See "Figure 1. Process tree in Volexity Volcano Server from the infected Confluence server"
https://www.volexity.com/wp-content/uploads/2022/06/Figure1....
I didn't mean running as non-root would fix the problem, just that a remote root RCE was worse than a normal RCE.
I usually try and make this so, but it is often very hard to impossible. Vendors do not make it easy.
Let's also admit that setting up iptables is harder than it needs to be. I mean, not after the first twenty times... you eventually remember all the arcane logic and expect everyone else to as well.
Most people don't know that you can have systemd bind to the privileged ports for you, and hand over the fd to the port to your (unprivileged) process.
Same goes for docker/containerd btw, if you run docker as root nowadays, you are doing it wrong.
[1] https://www.freedesktop.org/software/systemd/man/systemd.soc... [2] https://www.freedesktop.org/software/systemd/man/systemd-soc...