- Posted by Admin on June 27, 2009
Why shouldn’t we allow any domain to run Asp.Net application under the Full Trust level? Below are the reasons:
If the Asp.Net application is allowed to run under Full Trust level then it can:
1. Browse(create/edit and delete too) files in the Windows directory using the System.IO namespace.
2. Browse(create/edit and delete too) folders in the Program Files directory using the System.IO namespace.
3. Browse(create/edit and delete too) files in the System32 directory using the System.IO namespace.
4. Output of the OS name and version number using the System.Environment class.
5. Output of the server's local IP address using server variables, etc.
In short, full trust Asp.Net application can do anything with the server since it gains the full access of the server when run under the Full Trust.
Therefore, do not ever offer any domain a full trust level in the shared server if your are a shared hosting provider. :)