Top Banner
Chapter 13 – Site Chapter 13 – Site Security Security
28

Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Chapter 13 – Site Chapter 13 – Site SecuritySecurity

Page 2: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

InternetInformation

Server

ASP.NETApplications

.NETFramework

Windows NT/2000Operating System

FormsPassportWindowsCertificates

AnonymousStandardWindowsDigest

Code Access Security

Active DirectoryFile Permissions

WebClients

SSL

Page 3: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

WebClients

Get Default.aspx

SecurityAuthority

WindowsForms

PassportCustom

user id=GlennJ password=hi2u2!

Who are you? Provide proof.

Ok, here is Default.aspx

AuthenticationAuthentication

Page 4: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

WebClients

GlennJ says: Select * from Orders

Is GlennJAuthorized to

retrieve theOrders?

Here are the Orders.

AuthorizationAuthorization

Page 5: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

WorkgroupClient

WorkgroupClient

WorkgroupClient

WorkgroupClient

Directory UsersAdministratorRandyGarySueDirectory GroupsUsersManagers

Directory UsersAdministratorRandyGarySueDirectory GroupsUsersManagers

Directory UsersAdministratorRandyGarySueDirectory GroupsUsersManagers

Directory UsersAdministratorRandyGarySueDirectory GroupsUsersManagers

Page 6: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Local User Account CreationLocal User Account Creation

Page 7: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

DomainWorkstation

DomainWorkstation

DomainWorkstation

DomainWorkstation

Active Directory UsersAdministratorRandyGarySueActive Directory GroupsDomain UsersManagers

DomainController

Directory GroupsUsersPrinter Users

Directory GroupsUsersScanner Users

Directory GroupsUsersFile System Users

Directory GroupsUsersHR Users

Page 8: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Discretionary Access Control List (DACL)Discretionary Access Control List (DACL)ManagersManagers Read and Execute, WriteRead and Execute, Write

UsersUsers Read and ExecuteRead and Execute

SueSue Full Control, Member of UsersFull Control, Member of Users

GlennGlenn Deny Write, Member of Users, ManagersDeny Write, Member of Users, Managers

SalesData.xml

Glenn

Sue

Effective Permissions

Read and Execute

Effective PermissionsFull Control

Access Control Entries(ACEs)

Page 9: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

IIS SecurityIIS Security

Page 10: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

BrowserClient

Web SiteServer

Initiate Conversation - Can we talk?

Here is an encrypted session key

Hi - here's my certificate containing the public key, signed by CA's private key

Communication with session key

ValidateDigital

Certificate

Page 11: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

IIS Certificate WizardIIS Certificate Wizard

Page 12: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Certificate BackupCertificate Backup

Page 13: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Certificate RestoreCertificate Restore

Page 14: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

SSL ConfigurationSSL Configuration

Page 15: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

ASP.NETAuthentication

Run asUser Account

or IUSR

Run Using<processModel>

Account (ASPNET)

Internet Information Server

Authentication

IP and DomainAcceptable?

UserAuthentication

ImpersonationEnabled?

Yes

No

PerformASP.NET

Security Checks

Check WindowsDACL forResource

Permissions

Request is Authorized - Respond to User

Page 16: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

BrowserClient

Web SiteServer1. Request protected resource

GET mydoc.aspx

3. Get login page - login.aspx?RETURNURL=/mydoc.aspx

5. POST login.aspx?RETURNURL=/mydoc.aspx

2. Redirect to login page http://www.site.com/login.aspx?RETURNURL=/mydoc.aspx

4. login.aspx

7. Redirect to mydoc.aspx with authentication cookie

6.Authenticate User

8. Request protected resource with authentication cookieGET mydoc.aspx

9. mydoc.asmx

Page 17: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Login PageLogin Page

Page 18: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

machine.configmachine.config

allow users="*"allow users="*"

Web.config at / ( root )Web.config at / ( root )

( no entries )( no entries )

Web.config at /customersWeb.config at /customers

allow users="Joe"allow users="Joe"

deny users="*"deny users="*"

Web.config at /customers/salesWeb.config at /customers/sales

allow users="Mary"allow users="Mary"

Web.config at Web.config at /customers/sales/reports/customers/sales/reports

allow users="Mary,Joe"allow users="Mary,Joe"

deny users="*"deny users="*"

Page 19: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

AuthenticationTypeNameIsAuthenticated

IIdentity

AuthenticationTypeNameIsAuthenticatedTicket

FormsIdentityAuthenticationTypeNameIsAuthenticatedIsGuestIsSystemTokenGetAnonymous( )GetCurrent( )Impersonate( )

WindowsIdentityAuthenticationTypeNameIsAuthenticatedHasTicketGetProfileObject( )

PassportIdentityAuthenticationTypeNameIsAuthenticated

GenericIdentity

Page 20: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

IdentityIsInRole( )

IPrincipal

IdentityIsInRole( )

WindowsPrincipalIdentityIsInRole( )

GenericPrincipal

Page 21: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Forms Authentication UsingForms Authentication UsingDatabase AccessDatabase Access

Page 22: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Populated DatabasePopulated Database

Page 23: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Database AccessDatabase Access

Page 24: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Permissions

Permissions

Permissions

Retrieve EvidenceFrom Assembly

Retrieve EvidenceFrom Assembly

Code Groups 3

Strong Name

My_Computer_Zone

Assign into Code Groups

UNIONed Permissions

Intersect Policy Permissions

• Enterprise• Machine• User• Application Domain

Code Access SecurityCode Access Security

Page 25: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Security Policy AdministrationSecurity Policy Administration

Page 26: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Testing Code Access SecurityTesting Code Access Security

Page 27: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

Testing Code Access SecurityTesting Code Access Security

Page 28: Chapter 13 – Site Security. Internet Information Server ASP.NET Applications.NET Framework Windows NT/2000 Operating System Forms Passport Windows Certificates.

LabLab

Require Login to Customer siteRequire Login to Customer site