ConnectWise interview question

explain SQL and Javascript Attacks