News for hackers. Stuff that matters.
Re:I recorded user behaviour on my competitor’s websites by veddan on Tuesday October 25, 2022 @01:34PM (#33333689)
We actually had an accidental back button hijack at a place I used to work at. It was an SPA, where if you navigated to / it would check if you were logged in. If so, you would be redirected (client-side) to /home, otherwise you were sent to /login. This was done with pushState() instead of replaceState(), so going back from /home would take you to / which would immediately see that you were logged in and send you back to /home.

There are no comments on this comment yet.