Partially blocked form with javascript results in a security vulnerability

51 Views Asked by At

I have a huge form, with tons of input fields that should be filled by the system users. Some of those fields are blocked by a Javascript function, cause they are filled automatic by the system in some cases. Let me give you an example:

User code
Name
Surname
Address
SSN
Contact info

If the user provides a User code, contact infos are filled and blocked with disabled="disabled". If someone with wrong intentions access the page code and just erase disabled="disabled" he can fill blocked fields with wrong data. Theres any way that I can prevent this from happen only using Javascript?

0

There are 0 best solutions below