javascripthtmlgoogle-chrome-devtoolsonline-store

Choosing "unavailable" pickup point in online shop


just discovered one bug in a "n" online shop. The bug is the possibility to change html code (thanks to inspect element) and make an early unavailable pickup point available. As consequence, I was able to order some stuff, pay, and even get confirmation of my order. My question is, how an owner can prevent something like this?

P.s. During ordering, I was only on the one web page, there was no redirecting to another page or refreshing the current, until payment.

P.s.s. just want to mention, that I'm a total newbie in these "magic" things. So probably you can recommend me books/webpages etc. where I can read more about "server responses".


Solution

  • As you found out, editing the HTML code of a site and/or modifying the data sent to or from your browser is indeed not too difficult. That's part of how a browser is designed and intended to work, so you'll have to deal with this kind of "hacking" on the server side.

    Here's a very superficial (and not complete) list of things to keep in mind when setting up your server and backend application: