@
@
@ _ @2022-01-29 03:02:59
JavaScript
@ _ @, 2022-01-29 03:02:59

Are hash parameters passed to nested links in the url?

I have the following link, which has the next parameter

https://ac541fd81e537666c047920d00e60013.web-security-academy.net/oauth-callback/../post?next=https%3A%2F%2Fexploit-ac571fcc1e2f765bc0d9920e018d0054.web-security-academy.net%2Fexploit#access_token=yjodXOF6vqIg-9fbhSyynloq---95PIDXswoRrImuOG&expires_in=3600&token_type=Bearer&scope=openid%20profile%20email

After a redirect occurs on the link from the next parameter , will everything that comes after the '#' be passed along with this link to the url? Or does it belong exclusively to this link and in no way relate to what is written in the next parameter ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekssamos, 2022-01-29
@alekssamos

See.
If the hash is encoded in URLEncode, it will be passed.
If it is separate, clean, not encoded, it will remain on the last page.
That is:
http://example.org/login?next=profile#asdfg
Only on login and that's it.
http://example.org/login?next=profile%23asdfg
Only on profile and that's it.

http://example.org/login?next=profile%23asdfg#asdfg

here and there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question