Tel: (+61) 422 933 319

Email: [email protected]

Insecure – MicroSoft Autodiscover

Microsoft Exchange servers autodiscover function, is not secure! A systems administrator who incorrectly sets up their on-premise Autodiscover record could be assisting miscreants to slurp up credentials from an organisations users trying to connect to their corporate email account.

Or worse and equally possible, an end user having trouble connecting to their Exchange server will also inadvertently forward their credentials to the same Autodiscover DNS record, where the email and password can be gathered.

Autodiscover is a great feature for user configuration

A security researcher from Guardicore, Amit Serper (which is reported to be a billion dollar unicorn for network segmentation) has discovered that by purchasing the Autodiscover domains in various countries, he has been able to collect email address and password data. In fact over 96,000 credentials in around 4 months from a handful of Autodiscover domains that Guardicore has purchased to confirm this vulnerability.

Many of the Autodiscover. domains are registered with the owner/owners masked, meaning that citizens or criminals unknown have had access to Autodiscover queries gone wrong in many countries over several years.

This problem occurs because the Autodiscover feature, being as helpful as it is, doesn’t just stop at querying your domain for the Autdiscover information needed to authenticate the user to their email, Microsoft Outlook will start querying “upstream” hardcoded MS Exchange DNS records; and then or etc vigorously trying to help but sharing the users typed in User name and Password information with any Webserver that is listening at the (or whatever) domain.

Three major flaws contribute to the overall vulnerability: the Autodiscover protocol’s “backoff and escalate” behavior when authentication fails, its failure to validate Autodiscover servers prior to giving up user credentials, and its willingness to use insecure mechanisms such as HTTP Basic in the first place.

Mitigating the issue is not so straight forward though:

If you’re a network administrator, you can mitigate the issue by refusing DNS requests for Autodiscover domains—if every request to resolve a domain beginning in “Autodiscover” is blocked, the Autodiscover protocol won’t be able to leak credentials. Even then, you must be careful: you might be tempted to “block” such requests by returning, but this might allow a clever user to discover someone else’s email and/or Active Directory credentials, if they can trick the target into logging into the user’s PC.

Read below for much more detail on this vulnerability, Microsoft is aware of it now and should have a mitigation in place soon.
Guardicores official blog

My original source:

Leave a Reply


Forgotten Password?