Skip to content

fix: block spoofable IP headers (X-Client-IP, X-Real-IP) from rate limiting - #4001

Open
strehle wants to merge 2 commits into
developfrom
ip-fix
Open

fix: block spoofable IP headers (X-Client-IP, X-Real-IP) from rate limiting#4001
strehle wants to merge 2 commits into
developfrom
ip-fix

Conversation

@strehle

@strehle strehle commented Jul 25, 2026

Copy link
Copy Markdown
Member

fix: block spoofable IP headers (X-Client-IP, X-Real-IP) from rate limiting

Add X-Client-IP and X-Real-IP to the default filteredHeaders list so these headers are stripped from incoming requests before rate-limiting logic reads the client IP, preventing spoofing via untrusted proxy headers.

…miting

Add X-Client-IP and X-Real-IP to the default filteredHeaders list so these
headers are stripped from incoming requests before rate-limiting logic reads
the client IP, preventing spoofing via untrusted proxy headers.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts UAA’s default servlet header-filtering configuration to include X-Client-IP and X-Real-IP, intending to prevent untrusted client-supplied IP headers from influencing rate-limiting identity.

Changes:

  • Extend servlet.filteredHeaders default list to include X-Client-IP and X-Real-IP.
  • Update UaaPropertiesTest to assert the new default header list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
server/src/main/java/org/cloudfoundry/identity/uaa/UaaProperties.java Adds X-Client-IP and X-Real-IP to the default servlet.filteredHeaders list.
server/src/test/java/org/cloudfoundry/identity/uaa/UaaPropertiesTest.java Updates default-value assertion to include the newly filtered headers.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@strehle
strehle requested review from duanemay and fhanik July 27, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants