Again,

I am looking for how to make the code not vulnerable, and WHY it does so.