Block cookie replay attacks in Dataverse
Prevent session hijacking exploits in Dataverse with IP address-based cookie binding. Let's say that a malicious user copies a valid session cookie from an authorized computer that has cookie IP binding enabled. The user then tries to use the cookie on a different computer to gain unauthorized access to Dataverse. In real time, Dataverse compares the IP address of the cookie's origin against the IP address of the computer making the request. If the two are different, the attempt is blocked, and an error message is shown.
Enable IP address-based cookie binding
Sign in to the Power Platform admin center as an administrator.
Select Environments, and then select an environment.
Select Settings > Product, and then select Privacy + Security.
Under IP address settings, select Enable IP address-based cookie binding.
How does IP address-based cookie binding work?
IP-based cookie binding sets the IP address claim in the session cookie. Each request is evaluated to compare the current IP address with the source IP address that was stored in the cookie when it was created. If the addresses don't match, the user is denied access.
Scenarios in which users will be asked to reauthenticate
- When any VPN client is turned on or off
- When connecting to a wireless hotspot
- When the Internet connection is reset by the Internet service provider
- When a router is reset or restarted
How to test the feature
Clear all the cookies from the browser. This step is important to ensure that a new cookie is generated.
Sign in to a Dynamics 365 environment that has IP-based cooking binding enabled.
Use a client tool such as Fiddler to copy the session cookie.
On a different computer (not in the same network), open Postman.
Fill in the required details along with the copied cookie.
Submit the request. An HTTP 403 code should be returned.
- If the user connects to Dataverse from the same IP address with the old, valid cookie, Dataverse will accept the cookie.
- If the traffic between your network and Power Platform is configured to use reverse proxy having dynamic IP address, IP-based cookie binding won't work.
Is this feature available in Dataverse?
Cookie IP binding is available for the
CrmOwinAuth cookie in Unified Interface.
How soon does the change take effect once it's made in the Power Platform admin center?
The change typically takes effect in about five minutes.
Does this feature work in real time?
The feature evaluates the cookie in real time, except for the initial request that's made after the feature is enabled.
Is this feature enabled by default in all environments?
The cookie IP binding feature is disabled by default. Administrators must enable it in the Power Platform admin center.