PrincipalPermissionAttribute and Static ctor Leads to DoS
...leads to the previous exception being rethrown ( Brumme, 2003 ). So, if the first caller to use the class doesn't satisfy the permission demand, no callers in the entire AppDomain will be able to use that class
Here's a simple console app you can compile that demonstrates the danger
using System
using System.Security.Principal
using...
