Skip to content

fix(auth): prevent X-Forwarded-For IP spoofing in ApiKeyGuard#121

Open
itsprason wants to merge 1 commit into
rmyndharis:mainfrom
itsprason:fix--prevent-X-Forwarded-For-IP-spoofing-in-IP-whitelist-guard
Open

fix(auth): prevent X-Forwarded-For IP spoofing in ApiKeyGuard#121
itsprason wants to merge 1 commit into
rmyndharis:mainfrom
itsprason:fix--prevent-X-Forwarded-For-IP-spoofing-in-IP-whitelist-guard

Conversation

@itsprason
Copy link
Copy Markdown

Description

Fix IP spoofing vulnerability by ensuring X-Forwarded-For is only trusted
when the request originates from configured trusted proxy IPs. Otherwise,
the server uses the direct connection IP.

Issue POC

image

Testing

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant