cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cloudstack] GabrielBrascher opened a new issue #3450: Port 8096 allows unauthenticated access from any IP.
Date Mon, 01 Jul 2019 15:05:12 GMT
GabrielBrascher opened a new issue #3450: Port 8096 allows unauthenticated access from any
IP.
URL: https://github.com/apache/cloudstack/issues/3450
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   master
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking,
etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   CloudStack provides CloudStack API Unauthenticated Access through port 8096. It should
not be open to the Internet in any case. If this port is not propperly blocked by firewall
it could be really serious.
   
   ##### STEPS TO REPRODUCE
   
   **Using 8080:**
   http://<acs-environment>:8080/client/api?command=listClusters&response=json&listAll=true&page=1&pagesize=20&_=1556128046728
   
   ```
   {"listclustersresponse":{"uuidList":[],"errorcode":401,"errortext":"unable to verify user
credentials and/or request signature"}}
   ```
   
   **Using 8096:**
   http://<acs-environment>:8096/client/api?command=listClusters&response=json&listAll=true&page=1&pagesize=20&_=1556128046728
   
   ```
   listed all clusters of the zone
   ```
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   curl: (7) Failed to connect to <acs-environment> port 8096: Connection refused
   [1]   Exit 7                  curl http://<acs-environment>:8096/client/api?command=listClusters
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   listed all clusters of the zone
   ~~~
   
   ##### FIX proposal
   
   I have implemented a fix that binds the port 8096 with the loopback address (127.0.0.1).
Tested and so far it looks all right. Still need to open a PR.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message