FirstBlood-#63Open redirect on logout



On 2021-05-09, 0xn00b reported:

Summary:

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

POC:

http://firstbloodhackers.com:<PORT>/drpanel/logout.php?ref=//https://google.com/.

P4 Low

Endpoint: /drpanel/logout.php?ref=

Parameter: ref=

Payload: http://firstbloodhackers.com:<PORT>/drpanel/logout.php?ref=//https://google.com/


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.