Re: Solving the ' issue

From: Eric Sabine (mopar41_at_hyottmail.com)
Date: 12/05/03


Date: Fri, 5 Dec 2003 11:48:47 -0500

Is this a SQL Server issue? I ask because you use the & (AND) operator, not
+. If you're trying to prevent something like SQL Injection, you'll have to
rewrite code to trap injection.
http://www.sqlsecurity.com/DesktopDefault.aspx?tabindex=2&tabid=3

is this what you're asking about?

Eric

"PL" <pblse2@yahoo.se> wrote in message
news:e56kf$zuDHA.2520@TK2MSFTNGP10.phx.gbl...
>
> What do you do when you inherit hundreds of pages of badly
> written code with queries that has:
>
> WHERE [ID Number] = '" & Request("ID") & "'"
>
> all over the pages, I counted 555 matches just in one folder :-(
>
> If it was just Request("ID") I could do a search and replace but there
> are other parameters.
>
> What can I do on the SQL Server side to secure it up so nothing really
> can happen if they enter a single qoute in a parameter ?
>
> Any suggestions appreciated.
>
> PL.
>
>



Relevant Pages

  • Re: stop sql injection
    ... If you need to do this, you are probably letting anonymous users write your ... as a query terminator is ignored in SQL Server, ... use the principle of least privilege. ... The risk of SQL injection is great when you allow ...
    (microsoft.public.sqlserver.programming)
  • [REVS] More Advanced SQL Injection Paper Released
    ... Microsoft SQL Server/IIS/Active Server Pages environment, ... Advanced SQL Injection". ... conversations around the subject of SQL injection in a SQL Server ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • Re: Yet another SQL injection framework (file corruption)
    ... facilitating the exploitation of SQL Injection vulnerabilities. ... Blind SQL Injection. ... servers using MS SQL Server, MySQL, and PostgresSql DBMSs. ...
    (Bugtraq)
  • Re: Yet another SQL injection framework (file corruption)
    ... facilitating the exploitation of SQL Injection vulnerabilities. ... Blind SQL Injection. ... servers using MS SQL Server, MySQL, and PostgresSql DBMSs. ...
    (Vuln-Dev)