I am currently developing a web application in Laravel PHP framework to handle all the data input using HTML form.
Creating new entry in database is not an issue as it uses POST
method, which the ID
is hidden from the user, and there is validation on the server side.
However, when it comes to updating or modifying the entry in the database row, I am using the PATCH
method to send the data to the URI /form/{ID}
, for example /form1/1
. I performed data and user validation at server side to prevent unwanted input from user. However, sometime some user with HTML knowledge can simply modify the URI
of the form from /form1/1
to /form1/2
to PATCH
the data to ID=2
instead of ID=1
which is counted as unwanted bypass.
Is there any way to prevent this from happening as this possess a potential security risk.