Skip to content

Conversation

tomako
Copy link
Contributor

@tomako tomako commented Feb 6, 2025

This PR is about to prevent werkzeug exception if next URL parameter has newline characters.
We have been receiving such suspicious requests more often recently, mostly trying to inject some malicious code.
For example https://indico.un.org/login/?next=/event/1010969/%0D%0D or something similar but on the logout endpoint.
This PR is just applying the same checking werkzeug does.

@tomako tomako force-pushed the fix_next_url_abuse branch from e987a81 to 5113b1f Compare February 6, 2025 00:53
@tomako tomako force-pushed the fix_next_url_abuse branch from 5113b1f to 1642d7c Compare February 6, 2025 12:21
They make no sense, and fail on the werkzeug level when used in a
redirect. By failing the validation we avoid an ugly exception.
@ThiefMaster ThiefMaster enabled auto-merge (squash) February 9, 2025 11:50
@ThiefMaster ThiefMaster merged commit bfe72c7 into indico:master Feb 9, 2025
6 checks passed
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