You are viewing a single comment's thread from:

RE: dPoll development updates: Result filtering and voting audits

in #utopian-io • 8 years ago

Hi! How can I vote for this app in the rank?

I was watching the #89 pull request, maybe if you add a validation before the loop asking for all the variables equal to zero , you could avoid the entire loop (if 0 is the default value of all the field will be usefull).

I dont know python language, and I supous that the cast and try is enough, but is possible to use Sql injection in this kind of forms?

Best regards!

Sort:  

Wait, I was talking about a vulnerability called "sql injection", it's a way to introduce malicious sql code in a human filled form.

If you have a field that is concatenated in a sql query, some like:

query = "SELECT * FROM USERS WHERE SP > " + sp;

If I put this in the field:
[1 select password from users --]

I can execute sql code in your app. Even if you use a read/write connection, the code could contain some "drop table " or "drop database". Take a look of this:

Perfect! Are you able to use linq to retrieve a filtered dataset in python?