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.

Contents xxixStaying Secure (continued)Perform <strong>Security</strong> Assessments............................................................................. 538Use <strong>Security</strong> Notification Services........................................................................ 538Remote Administration ............................................................................................ 539Securing Terminal Services.................................................................................. 539Summary ............................................................................................................... 540Additional Resources .............................................................................................. 541Chapter 19Securing Your ASP.NET <strong>Application</strong> <strong>and</strong> <strong>Web</strong> Services 543In This Chapter ....................................................................................................... 543Overview ................................................................................................................ 543How to Use This Chapter ......................................................................................... 544Methodology........................................................................................................... 544What You Must Know .............................................................................................. 545ASP.NET Process Model ...................................................................................... 545ASP.NET Account ................................................................................................ 545Aspnet_setreg.exe <strong>and</strong> Process, Session, <strong>and</strong> Identity........................................... 546Impersonation is Not the Default.......................................................................... 546HttpForbiddenH<strong>and</strong>ler, Urlscan, <strong>and</strong> the 404.dll..................................................... 547AppSettings........................................................................................................ 547Machine.Config <strong>and</strong> <strong>Web</strong>.Config Explained ................................................................ 548Hierarchical Policy Evaluation............................................................................... 550.......................................................................................................... 551Machine.Config <strong>and</strong> <strong>Web</strong>.Config Guidelines............................................................... 553ACLs <strong>and</strong> Permissions......................................................................................... 554Trust Levels in ASP.NET........................................................................................... 555 .............................................................................................................. 556Process Identity for ASP.NET.................................................................................... 556................................................................................................. 556Impersonation ........................................................................................................ 558........................................................................................................... 558Authentication ........................................................................................................ 560 ................................................................................................ 560Forms Authentication Guidelines .......................................................................... 560Authorization .......................................................................................................... 563File Authorization ................................................................................................ 563URL Authorization ............................................................................................... 564Session State......................................................................................................... 565 .................................................................................................. 565Securing a SQL Server Session State Store .......................................................... 565Securing the Out-of-Process State Service ............................................................ 568View State.............................................................................................................. 569 ............................................................................................................ 569

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

Saved successfully!

Ooh no, something went wrong!