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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8: Code Access <strong>Security</strong> in Practice 193Privileged CodeWhen you design <strong>and</strong> build secure assemblies, you must be able to identifyprivileged code. This has important implications for code access security. Privilegedcode is managed code that accesses secured resources or performs other securitysensitiveoperations, such as calling unmanaged code, using serialization, or usingreflection. Privileged code is privileged because code access security must grant itspecific permissions before it can function.Privileged ResourcesPrivileged resources for which your code requires specific code access securitypermissions are shown in the Table 8.1.Table 8.1 Secure Resources <strong>and</strong> Associated PermissionsSecure ResourceRequires PermissionData accessSqlClientPermissionOleDbPermissionOraclePermissionNote The ADO.NET OLE DB <strong>and</strong> Oracle-managed providerscurrently require full trust.Directory servicesDNS databasesEvent logEnvironment variablesFile systemIsolated storageMessage queuesPerformance countersPrintersRegistrySockets<strong>Web</strong> services (<strong>and</strong> other HTTPInternet resources)DirectoryServicesPermissionDnsPermissionEventLogPermissionEnvironmentPermissionFileIOPermissionIsolatedStoragePermissionMessageQueuePermissionPerformanceCounterPermissionPrinterPermissionRegistryPermissionSocketPermission<strong>Web</strong>Permission

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

Saved successfully!

Ooh no, something went wrong!