Vulnerable clientaccesspolicy.xml file: How do I properly configure?

Manuel Flores-Bonilla 6 Reputation points
2021-09-15T21:49:29.983+00:00

Hi All,

A scan was recently done on our app server and it showed the vulnerability below (bug described here= https://cwe.mitre.org/data/definitions/942.html )

Cross-domain and Client Access policies.
State: VULNERABLE
A cross-domain policy file specifies the permissions that a web client such as Java, Adobe Flash, Adobe Reader, etc. use to access data across different domains. A client access policy file is similar to cross-domain policy but is used for Silverlight applications. Overly permissive configurations enables Cross-site Request Forgery attacks, and may allow third parties to access sensitive data meant for the user.

http-cross-domain-policy vulnerability source code from web app:

   /clientaccesspolicy.xml:
     <?xml version="1.0" encoding="utf-8" ?> 
     <access-policy>
       <cross-domain-access>
         <policy>
           <allow-from http-request-headers="*">        
             <domain uri="https://server.DOMAIN.com.au"/>        
             <domain uri="https://meeting.DOMAIN.com" />                
           </allow-from>
           <grant-to>
             <resource path="/" include-subpaths="true"/> 
           </grant-to>
         </policy>
         <policy>
           <allow-from http-request-headers="*">
             <domain uri="*" />
           </allow-from>
           <grant-to>
             <resource path="/autodiscover/autodiscoverservice.svc" include-subpaths="true" /> 
           </grant-to>
         </policy>
       </cross-domain-access>
     </access-policy>

Extra information:

Trusted domains:DOMAIN.com.au, DOMAIN.com, *

I'm a system admin so this web development is a bit over my head but I'm taking up the challenge to plug this hole.

What I'm reading is that the clientaccesspolicy.xml file needs to be updated from:

<domain uri="*" /> to explicitly specify a domain and/or domain(s).

So far, I've saved the web page that is the clientaccesspolicy.xml and saved it as a html file and opened in Visual Studio Code for editing. I'm stuck here, however. I'm not confident in changing the values nor how to save the file or even access web folders etc.

May someone provide me with instructions with the following:

  • how to find the xml file that will implement the changes in the environment
  • How to save the file in appropriate directory
  • how to access a web folder (I've never done web development)
  • what tools do I need to conduct this task? I have visual studio and fiddler installed so far
  • what's the right syntax for the file? what values do I change for optimal security?
  • anything else that recommended for best practice

Thanks in advance. I was given this assignment recently and only given 2 days to figure this out so I'm very grateful for any help.

Internet Information Services
{count} vote