A caution regarding Jetty and proxying with the IdP
Scott Cantor
scott at restingparrotsoftware.com
Wed Nov 25 14:59:17 UTC 2026
This is a copy of something I posted to our members channel in Slack after it was noted by a community member, and asked me to raise awareness of it.
A lot of people using Jetty and its “forwarded” module to proxy in the client address, port, etc. are failing to recognize that it supports both the standard Forwarded header and the proprietary X-Forwarded-* headers by default. Many people insist on using the latter, particularly because Apache has never adopted the standard, but the Forwarded header is still checked by Jetty, so if you don’t “unset” it in your proxy, you have a hole.
This can expose your IdP's admin endpoints that default to localhost connections by smuggling in a 127.0.0.1 client address in that header.
This is easy to fix if you just unset the header (Apache makes that very simple) but of course if you’re dealing with load balancers, you probably need a committee meeting to fix it.
There are numerous steps you can take to harden those endpoints against mistakes like this, among them making them “password based” by turning on authentication for them and using basic-auth to feed in a service account password (and you can do that “locally” using the IdP’s htpasswd validator so the account doesn’t have to really exist in the enterprise). Together with changing the access policy to check for a service account’s username, that would harden things.
I’ve added a note about this to the Jetty plugin docs and the latest of the "older" Jetty example pages in the wiki.
Note that we don’t ship any defaulted settings that enable the module, so this isn’t a Shibboleth vulnerability, I’m just noting it as a courtesy. Proxying to web servers is NOT the casual “fix all” people like to think it is, it takes real work and is hard to get right.
The IdP doesn’t have any endpoints exposed by default that are a huge risk, but probably the worst are the reload features of course, just in terms of mucking with the system. Status and metrics aren't ideal but they aren’t generally full of secrets or anything like that.
Anyway, if you're vulnerable, it's not hard to fix.
(And no, I don't know anything about Tomcat's equivalent features either way.)
-- Scott
More information about the users
mailing list