azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Why does "az --version" try to connect to "example.org"?

Open jms1voalte opened this issue 6 years ago • 9 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az --version

Errors:

Attempts to connect to example.org port 443/tcp.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Install "Little Snitch" or some other mechanism to observe outbound traffic.
  • az --version

Expected Behavior

Software reports its version numbers without trying to connect to any outside servers.

Environment Summary

macOS-10.15.4-x86_64-i386-64bit
Python 3.8.2
Installer: HOMEBREW

azure-cli 2.5.1

Additional Context

jms1voalte avatar May 07 '20 21:05 jms1voalte

hi @arrownj could you pls have a look? thanks

yungezz avatar May 07 '20 23:05 yungezz

Hi @jms1voalte , CLI use it to check whether it can access the internet. We will consider change it to an official website in the future.

arrownj avatar May 11 '20 03:05 arrownj

Thanks for reporting the issue. To use the url is to just check network connectivity without real connection. Actually the url is configurable inside CLI code. Hope this clarifies. Would like to close the issue for now, feel free to open issue if any other ask. thanks.

yungezz avatar Aug 03 '20 13:08 yungezz

Why was this closed? This should be pointed to an MS site. How do we know example.org is not collecting IP addresses to attack. This is a real security issue and should be fixed yesterday.

tkoestler avatar Dec 01 '20 18:12 tkoestler

make sense. @fengzhou-msft could you pls help take care of the fix? thanks.

yungezz avatar Dec 02 '20 06:12 yungezz

Any update on this issue? I think it's better to use some azure related domain (e.g. https://azure.microsoft.com) to check the connection as suggested by limingu in original PR.

I am not concerned that this communication will be abused because "example.org" is reserved by IANA as in RFC2606. However, users in monitored corporate network will prefer more explainable domain to clarify the purpose of each communication.

shunkino avatar Feb 08 '21 23:02 shunkino

hi @BigCat20196 can you help on this? thanks

yungezz avatar Apr 06 '21 06:04 yungezz

hi @shunkino Thank you for your advice.

I also think it is necessary to change the address of the test network connection to the Microsoft address. BTW, I am considering fixing it.

BigCat20196 avatar Apr 08 '21 07:04 BigCat20196

Hi @BigCat20196, glad to see this change merged! Thank you.

shunkino avatar Apr 17 '21 05:04 shunkino