Click here to Skip to main content
15,887,907 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to pass a parameter to windows application form the way we can do in a web form Pin
vaghelabhavesh8-Feb-09 10:36
vaghelabhavesh8-Feb-09 10:36 
AnswerRe: How to pass a parameter to windows application form the way we can do in a web form Pin
MohammadAmiry8-Feb-09 19:31
MohammadAmiry8-Feb-09 19:31 
QuestionError in Update & Insert Statement Pin
Vikash Yadav7-Feb-09 21:20
Vikash Yadav7-Feb-09 21:20 
GeneralRe: Error in Update & Insert Statement Pin
Luc Pattyn8-Feb-09 4:39
sitebuilderLuc Pattyn8-Feb-09 4:39 
GeneralRe: Error in Update & Insert Statement Pin
Vikash Yadav8-Feb-09 17:01
Vikash Yadav8-Feb-09 17:01 
AnswerRe: Error in Update & Insert Statement Pin
Dave Kreskowiak8-Feb-09 5:21
mveDave Kreskowiak8-Feb-09 5:21 
GeneralRe: Error in Update & Insert Statement Pin
paas8-Feb-09 8:08
paas8-Feb-09 8:08 
GeneralRe: Error in Update & Insert Statement Pin
Dave Kreskowiak8-Feb-09 13:18
mveDave Kreskowiak8-Feb-09 13:18 
paas wrote:
if his UserID was being passed as a string, you can not concatenate queries in Access


Excuse me, but what do you think he was doing in his code? That is EXACTLY string concatentation, building a query by piecing together strings! And YES, this is a HUGE injection concern. There data being fed is is, most likely, not being scrubbed, so it cannot be trusted to get copied directly into an SQL query.

And I suggested searching the articles for "SQL Injection" because there is a very good article on SQL Injection attacks AND, at the point of the question, it shows many examples of using parameterized queries.


paas wrote:
And, since UserID is actually being passed as an integer, I do not see how a nefarious user would be able to sneak an 'Or' conditional into the where command that will automatically make the result True.


The UserID was being passed in as an integer, but, if you go back to his posted code, the password was not. What is the password entered started with a "'" character?? I'll leave it up to you to do the very same search I told the OP to do, and read the articles as to why this is a very bad practice.


paas wrote:
but that can also be handled easily with a Replace statement, and without the use of parameterized queries.


An insufficient technique that only targets a single attack. This is another bad technique that employs the equally bad philosophy of "enumerating badness". Google that little phrase and you'll see what I mean.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Error in Update & Insert Statement Pin
Vikash Yadav8-Feb-09 18:25
Vikash Yadav8-Feb-09 18:25 
GeneralRe: Error in Update & Insert Statement Pin
Dave Kreskowiak9-Feb-09 1:45
mveDave Kreskowiak9-Feb-09 1:45 
AnswerRe: Error in Update & Insert Statement Pin
Vimalsoft(Pty) Ltd8-Feb-09 22:22
professionalVimalsoft(Pty) Ltd8-Feb-09 22:22 
Questioncan anyone help me in making an application of blood donors information service. Pin
neetu1497-Feb-09 10:04
neetu1497-Feb-09 10:04 
AnswerRe: can anyone help me in making an application of blood donors information service. Pin
vaghelabhavesh7-Feb-09 11:17
vaghelabhavesh7-Feb-09 11:17 
GeneralRe: thankyou so much. Pin
neetu14910-Feb-09 8:04
neetu14910-Feb-09 8:04 
AnswerRe: can anyone help me in making an application of blood donors information service. Pin
vigylant7-Feb-09 11:33
vigylant7-Feb-09 11:33 
AnswerRe: can anyone help me in making an application of blood donors information service. Pin
Christian Graus8-Feb-09 9:14
protectorChristian Graus8-Feb-09 9:14 
GeneralRe: can anyone help me in making an application of blood donors information service. Pin
Jon_Boy9-Feb-09 7:18
Jon_Boy9-Feb-09 7:18 
GeneralRe: thankyou so much. Pin
neetu14910-Feb-09 8:07
neetu14910-Feb-09 8:07 
AnswerRe: can anyone help me in making an application of blood donors information service. Pin
EliottA8-Feb-09 13:50
EliottA8-Feb-09 13:50 
AnswerRe: can anyone help me in making an application of blood donors information service. Pin
Tom Deketelaere9-Feb-09 0:24
professionalTom Deketelaere9-Feb-09 0:24 
GeneralRe: can anyone help me in making an application of blood donors information service. Pin
EliottA9-Feb-09 2:03
EliottA9-Feb-09 2:03 
GeneralRe: thankyou so much. Pin
neetu14910-Feb-09 8:09
neetu14910-Feb-09 8:09 
QuestionChange my IP with New IP Pin
ivo757-Feb-09 7:55
ivo757-Feb-09 7:55 
AnswerRe: Change my IP with New IP Pin
vaghelabhavesh7-Feb-09 11:21
vaghelabhavesh7-Feb-09 11:21 
AnswerRe: Change my IP with New IP Pin
Ranjit Viswakumar8-Feb-09 6:02
Ranjit Viswakumar8-Feb-09 6:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.