Open Redirect in django-spirit
The django-spirit application did not validate the 'next' parameter on several user authentication endpoints, allowing an attacker to redirect users to an arbitrary external site after login or logout. This could be used for phishing or other malicious purposes.
nitely/spirit
Originally disclosed on huntr
django-spirit prior to version 0.12.3 is vulnerable to open redirect. In the /user/login endpoint, it doesn't check the value of the next parameter when the user is logged in and passes it directly to redirect which result to open redirect. This also affects /user/logout, /user/register, /user/login, /user/resend-activation.
From the GitHub Advisory Database (GHSA-5p9j-w2wx-qx4c, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application failed to validate the 'next' parameter before using it in a redirect.
Impact
An attacker could redirect users to malicious sites, potentially leading to phishing or credential theft.
What the attacker needed
Victim clicks a crafted link; user must be logged in
The fix
The vulnerability was fixed in version 0.12.3 by validating the 'next' parameter.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
An open redirect is a flaw where a website takes a user-supplied address and sends the user there without checking if it is safe. Here, after logging in, the site would send you to any address given in the 'next' parameter, even a bad site. Attackers can use this to trick people into visiting fake pages that look like the real site.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.