Skip to main content

Posts

Showing posts from November, 2011

Stop SQL Injection Attacks Before They Stop You

This includes How SQL injection attacks work Testing for vulnerabilities Validating user input Using .NET features to prevent attacks Importance of handling exceptions Armed with advanced server-side technologies like ASP.NET and powerful database servers such as Microsoft ® SQL Server ™ , developers are able to create dynamic, data-driven Web sites with incredible ease. But the power of ASP.NET and SQL can easily be used against you by hackers mounting an all-too-common class of attack—the SQL injection attack. The basic idea behind a SQL injection attack is this: you create a Web page that allows the user to enter text into a textbox that will be used to execute a query against a database. A hacker enters a malformed SQL statement into the textbox that changes the nature of the query so that it can be used to break into, alter, or damage the back-end database. How is this possible? Let me illustrate with an example. ...

Configure Database Mail

By default we will use port 25 to configure database mail, which is usually blocked by windows firewall for security reason, try the following. 1 . Disable firewall and test if databasemail sends email. 2 . Make an exception in the windows firewall. Or this also happens when you use wrong port numbers, Just as an example use these values when setting up a database mail feature: You need to have a gmail account, which can be created free if you go to gmail.com, you can send email using gmail service free of cost :) So you can try this example and it works perfect. In database mail, first create profile, and when you create an account, use these values. Give Account name: SQL Server Alerts System Description: XYZ Outgoing mail Server ( SMTP) email id: youremailid#gmail.com ( should have gmail.com) Display Name : SQL Server Reply email : can leave blank Server name : smtp.gmail.com ( this is really important) port no : 587 ( on many website this is given as 465 which is wrong, use 58...