by petercooper · 3y ago · 0 comments
The idea is you'd publish some sort of manifest that HTTP servers and reverse proxies can use to determine valid URLs and then flat out to refuse to serve anything else. So you might end up with something for a host like:
/.well-known/*
/static/*
/home
/login
/logout
Basically every valid endpoint either specifically or wildcarded.I know apps are meant to deal with all of this themselves, but if you can even stop a reverse proxy sending through invalid URLs to a backend app, it seems like you could avoid a variety of problems. Or am I just being naive?
It would also let you do things like remove files like WordPress's xml_rpc.php (but without actually removing the file) if you don't use that feature at all - no idea about nowadays, but it used to be a very common attack vector that I'd always rename.