Re:How we built Hamiltix.net for less than $1 a month on AWS
by veb on Friday March 02, 2018 @07:55AM
(#16501018)
Can also use a negative price! I wonder what would happen if you went ahead with that. Presumably the payment gateway wouldn't pay me $5. Seems a strange choice to be having those parameters in a GET.
[ Parent
| on HN ]
Re:How we built Hamiltix.net for less than $1 a month on AWS
by paulie_a on Friday March 02, 2018 @09:35AM
(#16501600)
> Presumably the payment gateway wouldn't pay me $5
Having dealt with payment gateways, I would not assume that.
Re:How we built Hamiltix.net for less than $1 a month on AWS
by throwaway1909 on Friday March 02, 2018 @08:45AM
(#16501278)
Why stop at $5? Try setting quantity or price to -9e999999999. How will you spend your $∞ dollars?
Re:How we built Hamiltix.net for less than $1 a month on AWS
by badsectorlabs on Friday March 02, 2018 @11:22AM
(#16502819)
I agree, the param passing is not ideal. Session storage/local storage is another option.
Re:How we built Hamiltix.net for less than $1 a month on AWS
by marcc on Friday March 02, 2018 @01:24PM
(#16504263)
This is just obfuscation. Making it harder to hack won't prevent hacks. Anything that can be changed by the client, expect the client to change it.
Re:How we built Hamiltix.net for less than $1 a month on AWS
by stdclass on Friday March 02, 2018 @11:24AM
(#16502832)
Everything that can be modified by the user is not suitable.
The price must be stored on the server side, everything on the client side is subject to modification.
Re:How we built Hamiltix.net for less than $1 a month on AWS
by badsectorlabs on Friday March 02, 2018 @03:55PM
(#16505596)
The price is checked server side. You have to pass the price somehow to the client in order to display it. This is no different than any other ecommerce site, except that you can see it in a GET param.
I can "change the price" of anything on Amazon with dev tools, but that won't help me when I go to buy it. I appreciate the concern because amazingly this has been a real vulnerability on sites before (recently on a crypto exchange I think).