Skip to content
Open redirect Advisory Beginner CVE-2020-13565

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.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Medium 6.1 View original

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.

Claudio Bozzato, on Cisco Talos

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

  1. An attacker crafts a link to the phpGACL admin page with a return_page parameter pointing to an arbitrary site.
  2. The attacker sends this link to an admin user.
  3. 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.

More by Claudio Bozzato

View all

185 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.