| Description | This article describes an issue where Man in the Browser (MITB) protection on FortiWeb does not encrypt the password field when accessing Microsoft Exchange OWA (Outlook Web Access). Admin could observe that the password remains in plaintext in the POST request of auth.owa, even though MitB Obfuscation works correctly for both username and password fields. Also, a fetch error may appear in the browser’s developer tools. |
| Scope | FortiWeb. |
| Solution |
Problem description: When enabling Man in the Browser (MITB) Protection for OWA authentication pages, the password encryption may not function as expected.
Symptoms include:
This behavior is due to OWA’s built-in JavaScript form submission method (document.logonForm.submit();), which bypasses MitB’s injected encryption script.
Solution: A configuration adjustment and URL rewrite rule are required for MitB to correctly encrypt credentials on the OWA login form.
Below are the steps:
Avoid using wildcard URLs (such as /owa/*) that may cause MitB to be triggered for multiple unrelated paths. Instead, configure the exact GET and POST URLs as shown below:
OWA’s native script uses a hidden form submission call that prevents MITB’s injected encryption logic from executing. To fix this, a URL rewrite rule must modify this behavior.
Create the following URL Rewrite Rule and assign it to the relevant Server Policy or URL Rewriting Policy protecting Exchange OWA.
This modification ensures that the form’s submit event is properly triggered, allowing MitB’s injected JavaScript to perform encryption of the password field before submission.
Once created, assign the URL rewrite rule (trig_submit) to the URL Rewriting Policy linked to the Exchange OWA Server Policy.
Finally, apply and save the changes.
Verification:
Conclusion: The MitB encryption issue with Microsoft Exchange OWA occurs because OWA’s form submission script bypasses the MitB injection. By explicitly defining the URLs and using a URL Rewrite Rule to adjust form submission behavior, the MitB protection feature successfully encrypts the password field during login. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.