ews-crack: Exchange Web Services Cracker - TechnoExploit

Breaking

Post Top Ad

Post Top Ad

Friday, August 10, 2018

ews-crack: Exchange Web Services Cracker


EWS Cracker

EWS stands for Exchange Web Services. This is a SOAP-based protocol used for free/busy scheduling and leveraged by third-party clients. It allows a user to read email, send email, test credentials.



Unfortunately, EWS only supports Basic Authentication. If you have multi-factor authentication through a third party provider, such as Ping, Duo or Okta, EWS can be used to bypass MFA. It can also be used to bypass MDM solutions.




Microsoft’s official response is to use Microsoft provided MFA, which produce an application specific password. This leaves an enormous amount of O365 customers in a difficult state. Most customers seem unaware of this issue or choose to ignore it.

Other fun facts about EWS:

  • Logging is not 100%. It may log failed attempts in your audit logs, it may not.
  • It helpfully provides user enumeration. If a user doesn’t exist, a different error is returned.

Update as of July 2018


Turn on Modern Authentication:

Set-OrganizationConfig -OAuth2ClientProfileEnabled $true

This will break legacy clients, but it’s a must. Make sure you watch out for POP3, ActiveSync, other methods of brute forcing your O365 environment.

Installation

sudo apt-get install python-dev sudo apt-get install libkrb5-dev git clone https://github.com/mikesiegel/ews-crack.git pip install -r requirements.txt

Use






Single user test mode

ews-crack.py –mode single –username jsmith –domain contoso.com –password mypassword

Colon-delimited username:password tester

ews-crack.py –mode creds –file user-passwords.txt –domain contoso.com

Spray a single password against a list of user accounts



python ews-crack.py –mode spray –filename users.txt –domain contoso.com –password Winter2018!



No comments:

Post a Comment

Post Top Ad