Major security risks of ASP. NET virtual hosts (III)
Source: Internet
Author: User
Solution
The FSO component and the method of deleting or renaming are not described too much. There are many articles on this solution network.
There is also a solution for the FSO component vulnerability of ASP, that is, setting permissions based on the user. In IIS, you can set the account used for anonymous access to each site. The default value is IUSR _ HostName. The principle of this method is to set a Windows account for each shared host user, for example, IUSR_HostName1 and IUSR _ HostName 2, and then restrict each user to their respective Web directories.
After studying this solution carefully, we can find that this solution cannot truly achieve security. Because the system does not use the IUSR _ HostName account when running ASP, but the IWAM _ HostName account, just like ASP. NET. That is to say, the permissions of each ASP program are not the IUSR _ HostName permission, but the permissions of IWAM_HostName users. In this way, the file system access permissions of each shared host user cannot be restricted to their respective virtual sites, and each user can still access others' code. Therefore, this method cannot truly implement security between users in ASP. NET.
In ASP.. NET. the account of the NET program is ASPNET, which is similar to the solution mentioned above in ASP. We can only restrict this user from accessing other directories such as system directories, however, it cannot prevent users from accessing the program code of other shared host users and fundamentally prevent such problems.
Are there any real solutions?
Yes! This is a new feature of. NET Framework.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service