skip to main | skip to sidebar

ASP.NET / SQLSERVER

All I have learned.

Sunday, November 4, 2007

Security Tip

Never pass any value received as a user input to the Control Channel i.e in Command Object in ADO.NET, always build a parameter list i.e. Data Channel. This way one can avoid sql injection.
I.e. if some malicious user passes a drop table statement to the input it won't get executed.
Posted by Madhusudan Gohil at 6:40 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2014 (1)
    • ►  March (1)
  • ►  2009 (5)
    • ►  September (2)
    • ►  March (2)
    • ►  January (1)
  • ►  2008 (12)
    • ►  November (1)
    • ►  August (6)
    • ►  July (1)
    • ►  June (4)
  • ▼  2007 (45)
    • ►  December (5)
    • ▼  November (11)
      • SECUTIL to retrieve public key from assembly.
      • User friendly name of the owner of the file.
      • Tools for Interoperability between the.NET Framewo...
      • Windows Forms ActiveX Control Importer (Aximp.exe)
      • Assembly Registration Tool (Regasm.exe)
      • Attachement as a Linked Resource
      • CultureInfo & RegionInfo
      • Send mail using dot net
      • Security Tip
      • ManagementObjectSearcher
      • Dot Net Questions
    • ►  October (12)
    • ►  May (1)
    • ►  April (7)
    • ►  March (9)

About Me

Madhusudan Gohil
Systems Analyst
View my complete profile