So the user gets an email with an order someone just placed, and he receives a link with 2 parameters to confirm the order without necessarily being logged in into the application. The url will contains the order ID and a confirmation key which is randomly and unique, created when the order has been placed. e.g
http://shop.com/confirm-order/12345/ksjdjJsjjJHDHHS2773mhhd
Is there any security concerns by passing the order id and the confirmation key, taking the fact the user will not be logged in so checking for permission is out of the question?
My main concern is if an attacker starts to recreate the parameters randomly could he possibly get a guess on an order that hasn't been confirmed yet and confirm it by mistake or will those parameters help him hacking the database?
Thank you