An introduction to xss attacks, Origin Policy, SQL and cookies