Reputation: 19733
I've come across a website which changes it's field names every time it is refreshed, for example
<input value="" name="F337225905055ZJGKBU" type="text">
the second time I refreshed the webpage, it was
<input value="" name="F337225904870IUJ4RI" type="text">
The name of the field (i.e here it was the email field) kept changing its value. This is awesome because
Besides this, what are the other benefits for changing the field names in the form every time it is generated?
I'm a mobile app developer and I'm new to the web arena. I'm looking into the web space currently and am learning jQuery and Rails.
What are the general web security risks should I anticipate from the very beginning.
Upvotes: 0
Views: 158
Reputation: 655369
This could be used to protect against Cross-Site Request Forgery attacks as the attacking site (probably) cannot guess the form fields’ names if they are associated to the user.
Upvotes: 1