FirstBlood-#63Open redirect on logout

On 2021-05-09, 0xn00b reported:


The ?ref= parameter on /drpanel/logout endpoint is vulnerable to open redirect, normally if you try and go to<PORT>/drpanel/logout.php?ref= you get redirected to an invalid page so i tried prepending // to the redirect uri and finally i got a redirect to different origin.


P4 Low

Endpoint: /drpanel/logout.php?ref=

Parameter: ref=


FirstBlood ID: 1
Vulnerability Type: Open Redirect

There is an open url redirect vulnerability on /logout.php. The code expects it to start with / and does not allow to redirect to external domains but this can be bypassed.

Respect Earnt: 1000000
RESPECT ($RSP) is an experimental cryptocurrency based on the Ethereum blockchain with the mission to show respect to those who deserve it. We are testing it out on our FirstBlood hackevent.