The first rule of programming
The first rule of programming should always be to assume someone will abuse the system. So you must always think about how the software can be hacked and what can happen if it was hacked. You must work around security, and never assume nobody will bother to hack the software.