Skip to content

fix(security): restrict localhost auth bypass to loopback only#516

Open
dumko2001 wants to merge 1 commit intovivekchand:mainfrom
dumko2001:fix-010
Open

fix(security): restrict localhost auth bypass to loopback only#516
dumko2001 wants to merge 1 commit intovivekchand:mainfrom
dumko2001:fix-010

Conversation

@dumko2001
Copy link
Copy Markdown
Contributor

Summary

Fix localhost authentication bypass that allowed non-loopback connections.

Changes

  • Verify localhost bypass only applies to actual loopback addresses (127.0.0.1, ::1)
  • Rejects X-Forwarded-For spoofing attempts

Testing

tests/test_localhost_auth_bypass.py - verifies loopback-only enforcement

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