Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
2.33/5 (6 votes)
See more:
Does anyone have an idea that how could I check for a website programmatically that whether it is susceptible to sql-injection or not. Any help or suggestions will be appreciated.

[EDIT]: I have to check programatically that any url name provided to my application, has sql injection susceptibility or not. I always use parameterized queries(to avoid such sort of issue), but the task is to check it for all and any url's provided for other websites. This is the service we need to provide to our customers through our application. I hope this is more clear now.

I want to create a service like one provided in the link below:

See this[^]

Thanks and Regards.
Anurag
Posted
Updated 5-Dec-10 22:31pm
v3
Comments
Toli Cuturicu 6-Dec-10 3:36am    
You seem dangerous to me.
@nuraGGupta@ 6-Dec-10 3:50am    
@Toli Cuturicu: You just shut up, and try to understand the problem better before providing your feedback. Didn't you got to read the question completely? I said it programatically (the problem lies there), and I guess you have never done any such sort of work, so please keep yourself out of this.
Dalek Dave 6-Dec-10 4:21am    
You think being rude will prove helpful?
@nuraGGupta@ 6-Dec-10 4:27am    
Yes, that will not be in any case, but was this justified to provide such a comment without even reading the question properly. No offenses from my side.
Ankur\m/ 6-Dec-10 4:39am    
I found Toli's comment humorous rather than rude.
This is not the way you talk to someone in a public forum. Please be polite.

1 solution

Sounds like you want to do somewhere :rolleyes: Ok just change your question & now you can get the following links in CP.

SQL injection attacks[^]

SQL Injection Attacks and Some Tips on How to Prevent Them[^]

So now you can test yourself.

Got it here you go.

URL Encryption in ASP.NET[^]
 
Share this answer
 
v2
Comments
@nuraGGupta@ 6-Dec-10 2:19am    
oh thanks, I will check them. No I am not trying to do it. I need to implement it for my inhouse project.
thatraja 6-Dec-10 2:22am    
ok. Particularly use sql command with parameters to data manipulation which will reduce the issues.
@nuraGGupta@ 6-Dec-10 3:46am    
Oh,now I got to know why I got one vote for my question, as the univoter didn't understood my question. I know this, but I have to check programatically that any url name provided to my application, has sql injection susceptibility or not. I always use parameterized queries, but the task is to check it for all and any url's provided for other websites. This is the service we need to provide to our customers. I hope this is more clear now.
thatraja 6-Dec-10 3:57am    
Ok, for your requirement you can use encrypted urls which will help you to restrict the hackers. I counter vote your question because it's really a good one. I'll update my answer quickly so check it later.
thatraja 6-Dec-10 4:02am    
check my updated answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900