Skip to content

[Security Risk] The X-Forwarded-* and Forwarded headers will be considered when determining the proxy address. #25751

Answered by darius-m
Tim-Schwalbe asked this question in Q&A
Discussion options

You must be logged in to vote

I think it simply implies that Keycloak may trust either of the headers and the reverse proxy must be sure to override all X-Forwarded-* headers and the Forwarded header before sending the request to the backend, to ensure that the headers are not forged by malicious clients. These headers are used to log (and possibly filter based on the) requests' IP addresses, and as such it may be an issue if they are spoofed.

Some of them are lists of IPs. By default, in the case of X-Forwarded-For, each reverse proxy will add an IP to the list (i.e., if you have two reverse proxies between the client and the backend, you will have the client's IP and the address of the first reverse proxy in the lis…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Sieboldianus
Comment options

@Tim-Schwalbe
Comment options

@Tim-Schwalbe
Comment options

@sschu
Comment options

@Sieboldianus
Comment options

Answer selected by Tim-Schwalbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants