Our rails application has a feature where admin can from trigger sending verify email to users that haven't been verified yet but not to verified ones.
However, it was pointed out that by intercepting this PUT request and modifying the id to another one it was possible to send verify email even to the already verified users thereby confusing them.
How do I make sure that I can find out that the request was tampered with.
I can keep track of the users sent invites to and how many times but it still doesn't solve the problem that anyone can trigger an email to anyone if the know or guess their user id which again is visible from in the user details page in the format users/17
.
I'm not sure how do I solve this problem.