Programming Question

Question: Consider the following line of code, taken from the login routine of a web-based application: result = sql.exeuteQuery("SELECT uid FROM Users WHERE user = '" + username + "' AND pass = '" + pword + "';"); -- username and pword are strings returned from a form on the application's login page. Based on this code, what security problems do you see with this application? What techniques would you use to fix them?

From: Programming Interviews Exposed

Subject: Knowledge Based

Load Another Question


Select a Subject