PwC Interview Question

How attacks happen like XSS, sql injection and file upload, and how to bypass them.