phpGACL return_page redirection open redirect vulnerability
The phpGACL library's return_page function redirects users to a URL taken from the return_page query parameter without validation. An attacker could craft a link that, when clicked by an admin, redirects them to an arbitrary site for phishing.
Originally disclosed on Cisco Talos
An open redirect vulnerability exists in the returnpage redirection functionality of phpGACL 3.3.7. A specially crafted HTTP request can redirect users to an arbitrary URL.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 return_page function uses the user-supplied URL in a Location header without any sanitisation or validation.
Impact
An attacker could redirect an admin user to an arbitrary site, which could be used for phishing attacks and credential theft.
What the attacker needed
Victim clicks a crafted link; victim is an admin user
The fix
The return_page function should validate or sanitise the URL before using it in a Location header, and should call exit() or die() after redirecting.
How it was found
- An attacker crafts a link to the phpGACL admin page with a return_page parameter pointing to an arbitrary site.
- The attacker sends this link to an admin user.
- The admin clicks the link, and the application redirects them to the attacker-controlled site.
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 when a website sends you to another site based on a link you click, without checking if that other site is safe. Here, the phpGACL software takes a web address from the link and uses it to redirect the user, so an attacker can make the link point to a fake login page. The victim might not notice and enter their password on the attacker's 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.