News for hackers. Stuff that matters.
Re:How to store your app's entire state in the url by BurningFrog on Monday January 09, 2023 @02:26PM (#34314772)
The possible advantage of the encoding is that it that it can be encrypted and make parameter hacking impossible.
Re:How to store your app's entire state in the url by hot_gril on Monday January 09, 2023 @02:38PM (#34314926)
Would have to do the signing server-side, predicated on the server checking the entire state to ensure validity. Such effort being put into preventing parameter-hacking would suggest there are serious vulnerabilities in that website. The URL is meant to be modified by the client.
Re:How to store your app's entire state in the url by hot_gril on Monday January 09, 2023 @05:06PM (#34316908)
> The URL is meant to be modified by the client.

Clarification, the human user probably won't want to modify the URL, but the client will.

Re:How to store your app's entire state in the url by thomasahle on Monday January 09, 2023 @07:09PM (#34318419)
With something nice like the Google url, I would happily modify it myself.
Re:How to store your app's entire state in the url by PetahNZ on Monday January 09, 2023 @02:32PM (#34314852)
You don't need to encode it to do that though. You can just sign the URL
Re:How to store your app's entire state in the url by A4ET8a8uTh0 on Monday January 09, 2023 @02:37PM (#34314912)
Harder. Not impossible. Harder. I don't want to make it sound like I am being disagreeable just for the sake of being disagreeable. If there is one thing the past decade has shown, it is that hacking is just a matter of time and whether a determined person is willing to direct resources at it.
Re:How to store your app's entire state in the url by rsync on Monday January 09, 2023 @03:05PM (#34315259)
I see you, and raise you:

What if they encrypted the parameters with a one-time pad ?

Re:How to store your app's entire state in the url by A4ET8a8uTh0 on Monday January 09, 2023 @03:39PM (#34315679)
Hmm. Most likely ( if not only ) way to counter that would be social hacking ( because I assume the pad is generated automatically from some source ), which seems like the best way to obtain it. Then again.. I am not an expert in this field ( but we do sometimes use parameters from link for some projects ). Is it refreshed after some time passes ( if so, maybe there is an easier way to just observe what changes )?
Re:How to store your app's entire state in the url by naasking on Tuesday January 10, 2023 @08:17AM (#34324370)
One-time pads have to be stored server-side. If you're going to do that, you might as well just store the data itself under a GUID server-side so you avoid network transfers and then put the GUID in the URL.
Re:How to store your app's entire state in the url by rattlesnakedave on Monday January 09, 2023 @05:58PM (#34317756)
Yeah, why not just base64 encode, shove that into a db with a shorter key? I'm pretty positive this is how tiktok works for sharing videos.
Re:How to store your app's entire state in the url by StevenNunez on Monday January 09, 2023 @06:20PM (#34317977)
Probably don't want to pay for space for unauthed users.