11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

530 Part IV: Securing Your Network, Host <strong>and</strong> <strong>Application</strong>Use a Strong sa (System Administrator) PasswordThe default system administrator (sa) account has been a subject of countless attacks.It is the default member of the SQL Server administration fixed server role sysadmin.Make sure you use a strong password with this account.Important The sa account is still active even when you change from SQL authentication toWindows authentication.Apply strong passwords to all accounts, particularly privileged accounts such asmembers of the sysadmin <strong>and</strong> db_owner roles. If you are using replication, alsoapply a strong password to the distributor_admin account that is used to establishconnections to remote distributor servers.Remove the SQL Guest User AccountWhen you install SQL Server, a guest user account is created if the Windows 2000guest account is enabled. A login assumes the identity of guest if the login has accessto SQL Server but does not have access to a database through a database useraccount.It is a good idea to disable the Windows guest account. Additionally, remove theguest account from all user-defined databases. Note that you cannot remove guestfrom the master, tempdb, <strong>and</strong> replication <strong>and</strong> distribution databases.Remove the BUILTIN\Administrators Server LoginBy default, the BUILTIN\Administrators local Windows group is added to thesysadmin fixed server role to administer SQL Server. This means that domainadministrators who are members of BUILTIN\Administrators have unrestrictedaccess to the SQL Server database. Most companies differentiate the role of domainadministrator <strong>and</strong> database administrator. If you do this, remove theBUILTIN\Administrators SQL Server login. It is a good idea to create a specificWindows group containing specific database administrations in its place <strong>and</strong> addedto SQL server as a server login as shown in the following procedure. To add a new login for database administrators1. Start Enterprise Manager.2. Exp<strong>and</strong> Microsoft SQL Server, exp<strong>and</strong> SQL Server Group, <strong>and</strong> then exp<strong>and</strong> yourSQL Server.3. Exp<strong>and</strong> the <strong>Security</strong> folder, select <strong>and</strong> right-click Logins, <strong>and</strong> then clickNew Login.4. In the Name field, enter a custom Windows group that contains only databaseadministrators.5. Click the Server Roles tab, <strong>and</strong> then select System Administrators.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!