Skip to main content
Menu
Advisories

Open redirect: redirect() sanitizer bypassed by a backslash or tab

GHSA-456C-5FGM-92X2Published Updated GitHub

Description

Qwik Router’s RequestEvent.redirect() incompletely normalizes protocol-relative redirect targets. Its sanitizer handles forward slashes but does not account for backslashes or control characters normalized by URL parsers. Consequently, some targets that appear relative can resolve to an external origin.

Impact

Applications that pass untrusted redirect targets to RequestEvent.redirect() and rely on its built-in normalization may be vulnerable to open redirects. This can undermine restrictions intended to keep navigation within the application and facilitate phishing through links on a trusted domain. Disclosure of sensitive redirect parameters depends on the application’s authentication flow and additional redirect validation.

Credits

  • Thai Son Dinh (sondt) from VinSOC Labs

Affected versions

References

GitHub · QwikDev/qwik