fix(lib): block XSS attacks via nonstandard URLs (#904)

* fix(lib): block XSS attacks via nonstandard URLs

This could allow an attacker to craft an Anubis pass-challenge URL that
forces a redirect to nonstandard URLs, such as the `javascript:` scheme
which executes arbitrary JavaScript code in a browser context when the
user clicks the "Try again" button.

Release-status: cut
Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-07-24 10:05:00 -04:00 committed by GitHub
parent 21f570962c
commit d40e9056bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 98 additions and 1 deletions

View file

@ -3,4 +3,5 @@ https
ssh
ubuntu
workarounds
rjack
rjack
msgbox