I have come across a huge issue on my website that I have spent months and months working on. The issue being the fact that users are able to use tools like firebug and other similar methods to change the HTML of my website. The issue is that if a user changes a part of forms, they could change who the message/post/etc.. goes to.
I currently have comments, messsages, posts and other forms for the most part set up like this (as far as sending user information to use:
<form rel="1"></form>
I use the rel
as a place to store the userID that the content is going to. So this would go to the user with the ID of 1. The problem then is if the user changes this in the html to like 5, then submits the form it will then go to user 5. How would it be possible to double check this when the information gets to the server so it wouldn't go through if it has been changes or whatever.
The only thing I can think of is hashing the users ID or something and storing that value in the rel. This wouldn't solve the issue, however it may make it a little more difficult for someone to figure it out.