123 points · by mooreds · 2y ago · 48 comments
If I was a user of this plugin, I’d start looking for alternatives pronto.
I'm sure the project would benefit greatly if the community and companies who use it could bolster it up.
Seems a bit like the situation with Wordpress, the core is pretty solid security-wise but the third-party ecosystem isn't as well-tested or maintained.
It is focused on backwards compatibility and simply does not prioritize security very much. All claims about “okay security in the core” come from having even worse plugins, it making a good story and simply an enormous user base.
And if they want to support people then pay them, Caddy is owned by a large company so they should be able to pay maintainers for their most security-critical plugins. I really don't want to be too harsh, it's a great piece of software, but I'm tired of this marketing tendency to wildly exaggerate capabilities and properties of software systems.
Ouch. I was considering switching from oauth2_proxy to Caddy + SSO but this is pretty discouraging..
[1]: https://github.com/greenpau/caddy-security/issues?q=is%3Aiss...
I'll consoder stable code fine without new releases for years even, but security issues? Responses and fixes need to be measured in days, not months.
(Some may say "but what about"..., and note all rhe conditions I listed above. Publicly disclosed + timefame. Doesn't matter who it is, big or small, 6 months means the software maintainers show no serious commitment to security, and one should run to other solutions.)
Better know that up front, than get popped and think "What happened?".
If you put your work in the open, advertise it as an officially supported solution, and advertise it as secure, it had better be supported and secure. You can't just put out broken software and hide behind "but you didn't pay for it so who cares." Even worse when the attitude is "it's not my fault, go fix it yourself and submit a PR."
If that is the intent, why even open source it in the first place and tell people to use it. Just keep the code private and use it for yourself.
Over the last decade I have written hundreds of thousands of lines of code for personal projects that will never see the light of day, precisely for this reason. It's not production-quality software, and it would be horrendously irresponsible for me to put it out in the open, advertise it, and tell people to use it, compromising the security of their homelabs (or worse, enterprise deployments).
Wouldn’t use it even if not for these security issues.
Meaning how will the plugin know how levels deep is it in the infrastructure… and if you really care about warning devs then it should be a caddy level security bug, not this plugin specifically.
So all those spoofing items is really out of scope for this plugin…
unless i am missing something and the plugin overrides default behavior then of course it’s to blame
That definitely is the job of a security plugin author who uses the value.
Whether it's lesson number one or number two... Don't trust your inputs has got to be near the top of things you learn when doing anything with security.
Edit: now I've read the article... Shocked. The vast majority of this is trusting untrusted user input.