Click here to Skip to main content
15,881,882 members
Home / Discussions / Database
   

Database

 
QuestionRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
User 110609791-Aug-16 2:07
User 110609791-Aug-16 2:07 
AnswerRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Member 126624485-Aug-16 1:04
Member 126624485-Aug-16 1:04 
AnswerRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Richard Deeming1-Aug-16 2:21
mveRichard Deeming1-Aug-16 2:21 
GeneralRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Eddy Vluggen1-Aug-16 10:55
professionalEddy Vluggen1-Aug-16 10:55 
GeneralRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Member 126624485-Aug-16 1:21
Member 126624485-Aug-16 1:21 
GeneralRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Richard Deeming5-Aug-16 1:56
mveRichard Deeming5-Aug-16 1:56 
GeneralRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Member 126624485-Aug-16 1:20
Member 126624485-Aug-16 1:20 
GeneralRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Richard Deeming5-Aug-16 1:53
mveRichard Deeming5-Aug-16 1:53 
For testing, you can either manually try entering single quotes in various form fields, or use an automated tool like sqlmap[^].

NB: Make sure you have permission from the site owner before testing the site - preferably in writing.

Testing for SQL Injection (OTG-INPVAL-005) - OWASP[^]


To secure the site, you need to modify the code. You'll need to find every place where it issues a SQL query, and make sure it's using parameters. If it's using string concatenation, or string interpolation, or any other means of inserting data directly into the query text, then that's a potential vulnerability.

If your database has any stored procedures that build and execute a dynamic query, you'll also need to update those to use parameters. In Microsoft SQL Server, you would use sp_executesql[^]; other databases probably have something similar.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Is this SQL query about getting information from all forum users' unread PMs? Pin
Member 126624485-Aug-16 9:14
Member 126624485-Aug-16 9:14 
QuestionSearching for the right database Pin
Kogs-7927-Jul-16 3:04
Kogs-7927-Jul-16 3:04 
SuggestionRe: Searching for the right database Pin
Richard MacCutchan27-Jul-16 4:56
mveRichard MacCutchan27-Jul-16 4:56 
GeneralRe: Searching for the right database Pin
Kogs-7927-Jul-16 23:42
Kogs-7927-Jul-16 23:42 
QuestionRe: Searching for the right database Pin
User 1106097927-Jul-16 20:33
User 1106097927-Jul-16 20:33 
AnswerRe: Searching for the right database Pin
Kogs-7927-Jul-16 23:56
Kogs-7927-Jul-16 23:56 
AnswerRe: Searching for the right database Pin
Bernhard Hiller27-Jul-16 21:11
Bernhard Hiller27-Jul-16 21:11 
GeneralRe: Searching for the right database Pin
Kogs-7927-Jul-16 23:37
Kogs-7927-Jul-16 23:37 
GeneralRe: Searching for the right database Pin
Jörgen Andersson31-Jul-16 5:27
professionalJörgen Andersson31-Jul-16 5:27 
Questioncannot use "dynamic" Connection String with Excel? Pin
Vinny Ardhya20-Jul-16 22:29
Vinny Ardhya20-Jul-16 22:29 
AnswerRe: cannot use "dynamic" Connection String with Excel? Pin
Victor Nijegorodov23-Jul-16 9:27
Victor Nijegorodov23-Jul-16 9:27 
GeneralRe: cannot use "dynamic" Connection String with Excel? Pin
Vinny Ardhya24-Jul-16 15:58
Vinny Ardhya24-Jul-16 15:58 
AnswerRe: cannot use "dynamic" Connection String with Excel? Pin
Peter_in_278024-Jul-16 16:36
professionalPeter_in_278024-Jul-16 16:36 
GeneralRe: cannot use "dynamic" Connection String with Excel? Pin
Vinny Ardhya24-Jul-16 17:15
Vinny Ardhya24-Jul-16 17:15 
GeneralRe: cannot use "dynamic" Connection String with Excel? Pin
Richard MacCutchan24-Jul-16 20:54
mveRichard MacCutchan24-Jul-16 20:54 
QuestionEncrypt email address to 6-8 digit alphanumeric Pin
sumit703418-Jul-16 22:55
sumit703418-Jul-16 22:55 
AnswerRe: Encrypt email address to 6-8 digit alphanumeric Pin
Richard MacCutchan19-Jul-16 3:14
mveRichard MacCutchan19-Jul-16 3:14 

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.