try another color scheme:


Go Back   TECH6.0 > Get Techie > Programming > ASP/ASP.NET


SQL injection..

This is a discussion on SQL injection.. within the ASP/ASP.NET section, part of the Programming category; Hai...here some information about sql injection SQL injection is a technique that exploits a security vulnerability occurring in the database ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 04-06-2008, 06:27 PM
Spec_tray's Avatar

Moderator
 
Join Date: Feb 2008
Posts: 147
Spec_tray will become famous soon enoughSpec_tray will become famous soon enough
Default SQL injection..

Hai...here some information about sql injection

SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.

from wikipedia:

* SQL Injection can be accomplished by manipulating the query string..
* SQL Injection isn't just used against username/password authentication.
* SQL Injection can be executed anywhere input is being returned from the client, whether it is in a form, URL, hidden etc....

I am adding two links here which may be useful to others...:thumbup:

1 : http://www.securiteam.com/securityre...DP0N1P76E.html

2: http://www.unixwiz.net/techtips/sql-injection.html

One useful function to prevent sql injection :

Code:
Function Escinjection(Strinput)
    IF len(Strinput)=0 or ISnull(Strinput) then
    Else
    Strinput = Replace (Strinput,"%","")
    Strinput = Replace (Strinput,"'","")
    Strinput = Replace (Strinput,"*","")
    Strinput = Replace (Strinput,"--","")
    Strinput = replace(Strinput, "'", "''" )
    Strinput = replace( Strinput, """", "" )
    Strinput = replace( Strinput, ")", "" )
    Strinput = replace( Strinput, "(", "" )
    Strinput = replace( Strinput, ";", "" )
    Strinput = replace( Strinput, "-", "" )
    Strinput = replace( Strinput, "|", "" )
    Escinjection = Strinput
    End IF
End Function
happy coding

Spec_tray
__________________
" There are no failures - just experiences and your reactions to them.

New members Please read before u post
General Tech6 Rules !!!

CSS Validator | Markup Validator | RSS Validator

Last edited by Spec_tray; 04-06-2008 at 06:42 PM.
Reply With Quote
  #2  
Old 06-06-2008, 12:31 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

thanks for this interesting info spec_tray .. keep it up !!
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 12-06-2008, 01:30 PM
Spec_tray's Avatar

Moderator
 
Join Date: Feb 2008
Posts: 147
Spec_tray will become famous soon enoughSpec_tray will become famous soon enough
Default sql injection..

Glad you like it Wbwizzy..

Find an interesting link about programming help against those SQL Injection attacks!. and it also creating a log file you will get info on the hacker ...


http://www.cheergallery.com/SQLInjectionHelp.html



happy coding

Spec_tray
__________________
" There are no failures - just experiences and your reactions to them.

New members Please read before u post
General Tech6 Rules !!!

CSS Validator | Markup Validator | RSS Validator
Reply With Quote
  #4  
Old 28-03-2011, 08:23 PM
No Avatar

Techie
 
Join Date: Mar 2011
Posts: 26
sidharthbanyal is on a distinguished road
Default

Thanks for sharing...good informtion
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 06:59 PM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top