Summary
An open redirect exists in the application via the redir parameter on .within.website when Weblate is configured with Anubis and REDIRECT_DOMAINS is not set. An attacker can craft a URL on the legitimate domain that redirects a victim to an attacker-controlled site. The redirect can also be used to initiate drive-by downloads (redirecting to a URL that serves a malicious file), increasing the risk to end users.
Details
The documented Docker configuration didn't specify REDIRECT_DOMAINS to work around TecharoHQ/anubis#390, but the workaround was not removed once the issue had been addressed.
Patches
- WeblateOrg/docker@7651834 exposes the full request URL to Anubis to allow validation
- 6b3d73a documents configuring REDIRECT_DOMAINS for Anubis
- ec3b900 further clarifies configuring Anubis with Weblate
PoC
Proof of Concept (Open Redirect): https://hosted.weblate.org/.within.website/?redir=https://google.com
Impact
- Phishing: Attackers can make malicious links appear to originate from the trusted domain, increasing the likelihood of credential theft.
- Drive-by download: Redirecting victims to an attacker-controlled host can cause automatic file downloads or landing pages that trigger client exploits, potentially leading to malware installation or remote code execution. This substantially raises confidentiality/integrity/availability impact compared to a “pure” redirect (in short: downloading a malicious file/s).
Summary
An open redirect exists in the application via the redir parameter on .within.website when Weblate is configured with Anubis and REDIRECT_DOMAINS is not set. An attacker can craft a URL on the legitimate domain that redirects a victim to an attacker-controlled site. The redirect can also be used to initiate drive-by downloads (redirecting to a URL that serves a malicious file), increasing the risk to end users.
Details
The documented Docker configuration didn't specify REDIRECT_DOMAINS to work around TecharoHQ/anubis#390, but the workaround was not removed once the issue had been addressed.
Patches
PoC
Proof of Concept (Open Redirect):
https://hosted.weblate.org/.within.website/?redir=https://google.comImpact