Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security: Add URL validation and logging for unsanitized URLs #81

Open
coderabbitai bot opened this issue Feb 18, 2025 · 0 comments
Open

Security: Add URL validation and logging for unsanitized URLs #81

coderabbitai bot opened this issue Feb 18, 2025 · 0 comments
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2025

Background

When URL sanitization is disabled (introduced in #80), we should still implement basic security measures:

  1. Add basic URL validation for unsanitized redirect URLs
  2. Add logging when URL sanitization is bypassed

References

Requirements

  • Implement basic URL validation using URL constructor
  • Add warning logs when sanitization is bypassed
  • Handle invalid URLs appropriately with clear error messages

/cc @DanielRivers

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

No branches or pull requests

1 participant