Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Test for URL Allowlist Bypass Prevention #1687

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
Loading
from

Conversation

Anirudha619
Copy link
Contributor

@Anirudha619 Anirudha619 commented May 15, 2025

This PR introduces a new test to ensure that the URL allowlist functionality is properly enforced, specifically preventing navigation to disallowed URLs. The test verifies that attempts to redirect to https://www.google.com are blocked when the domain is not in the allowed list.

@pirate @LarsenCundric
currently anyone can bypass the allowed_domains using redirection. (i think there are other methods as well).


Summary by mrge

Added a new test to make sure the URL allowlist blocks navigation to disallowed domains, even when a page tries to redirect.

  • Tests
  • Verifies that redirects to https://www.google.com are blocked if the domain is not in the allowed list.

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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.