Here's the scenario:
On every non-shopping-cart page a new md5(rand()) session variable is generated. This variable is then inserted into the url for shopping cart links. Clicking the cart link would be the point at which a user is transferred from http to https so I understand that this is a crucial transaction to secure in order to prevent a man in the middle from injecting himself between the server and the user.
In order to access the shopping cart the current session variable must match the string in the url (eg "/shopping_car_url/{random_string}/"), otherwise a 404 error is sent.
- Should this be effective as long as the session is not compromised?
- Would using a POST variable (or the same or different random strings in both session and post) be as or more effective (or ineffective)?
- If this is effective, is there any benefit to doing the same thing through the rest of the cart editing / checkout process or would this be pointless since the user is already connected to SSL at this point?
md5(rand())is supposed to be accepted / avoided? - samayo