Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-7175

Domain Id is exposed in error message when cross domain access is attempted when listing Vms.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.2.0
    • 4.5.0
    • IAM
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      Domain Id is exposed in error message when cross domain access is attempted when listing Vms.

      Steps to reproduce the problem:

      Following listVirtualMachines when passing a domain Id that the caller does not have access permissions that exposes domain Id. In such cases , only uuid of the domain should be presented to the user:

      Scenario 1:

      GET http://<ip>/client/api?command=listVirtualMachines&domainId=ac6dfd54-c1ad-401d-8bbf-de1c77795a60&account=testD1-TestVMList-GEFMGD&listAll=true&apiKey=Hv0VKnmBjXhyRMKZ7ixI51gG-iqHqRVTp1xCCLU2-gTnZwhuUNWsa4zZLYZWWLD5lEhvwe05tJKJVa9NeS5REw&signature=UtajpNj839fVNm8tZkNMdJJoRCM%3D \n\n
      current Time: Fri Apr 11 11:01:23 PDT 2014
      <?xml version="1.0" encoding="UTF-8"?><listvirtualmachinesresponse cloud-stack-version="4.4.0-SNAPSHOT"><errorcode>431</errorcode><cserrorcode>4350</cserrorcode><errortext>could not find account testD1-TestVMList-GEFMGD in domain ac6dfd54-c1ad-401d-8bbf-de1c77795a60</errortext></listvirtualmachinesresponse>Connection to 10.223.49.6 8080 port [tcp/webcache] succeeded!

      GET http://<ip>/client/api?command=listVirtualMachines&domainId=ca50d169-bbb2-4f2d-b61a-963151ade5ed&account=testD1-TestVMList-GEFMGD&listAll=true&apiKey=Hv0VKnmBjXhyRMKZ7ixI51gG-iqHqRVTp1xCCLU2-gTnZwhuUNWsa4zZLYZWWLD5lEhvwe05tJKJVa9NeS5REw&signature=gMDWL4B7jI%2Bm5sDlR47atlJlMao%3D \n\n
      current Time: Fri Apr 11 11:01:23 PDT 2014
      <?xml version="1.0" encoding="UTF-8"?><listvirtualmachinesresponse cloud-stack-version="4.4.0-SNAPSHOT"><errorcode>531</errorcode><cserrorcode>4365</cserrorcode><errortext>Acct[c913ca88-30de-4ce7-9160-cce514314e4f-testD1-TestVMList-3VK254] does not have permission to operate within domain id=9</errortext></listvirtualmachinesresponse>Connection to 10.223.49.6 8080 port [tcp/webcache] succeeded!

      GET http://<ip>/client/api?command=listVirtualMachines&domainId=ca50d169-bbb2-4f2d-b61a-963151ade5ed&listAll=true&apiKey=Hv0VKnmBjXhyRMKZ7ixI51gG-iqHqRVTp1xCCLU2-gTnZwhuUNWsa4zZLYZWWLD5lEhvwe05tJKJVa9NeS5REw&signature=nvUKFsegTkIhdPH39%2BulAYjiCac%3D \n\n
      current Time: Fri Apr 11 11:01:21 PDT 2014
      <?xml version="1.0" encoding="UTF-8"?><listvirtualmachinesresponse cloud-stack-version="4.4.0-SNAPSHOT"><errorcode>531</errorcode><cserrorcode>4365</cserrorcode><errortext>Acct[cf5d6b37-4e26-406c-9b32-15bc3bf71095-testD1-TestVMList-3VK254] does not have permission to operate within domain id=9</errortext></listvirtualmachinesresponse>Connection to 10.223.49.6 8080 port [tcp/webcache] succeeded!

      Attachments

        Activity

          People

            minchen07 Min Chen
            minchen07 Min Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: