I'm attempting Form Based authentication on
https://wmx.staging.benchprep.com/login using ZAP 2.11.0
I've set up my Authentication Session Properties properly including the Login Request POST data, set the username and password parameters and also the Regex for logged out identifier. I've also set up a Forced User with the correct credentials.

When I attempt to access
https://wmx.staging.benchprep.com/login with the forced user enabled, I see an attempted authentication in the History log of ZAP. I see a GET and then a POST followed by another GET for the login page which seems unusual. The request for the POST appears to be passing in the correct username and password credentials. The forced user does not actually get logged in on screen.
I paired with a developer within my organization to attempt to troubleshoot this issue. After troubleshooting for a bit and checking the logs in the backend we believe that ZAP is failing to detect our authenticity_token that is also passed in on the POST data. ZAP should be able to detect this anti-CSRF token and sub in the current one for the forced user to use. Instead, it appears that ZAP continues to pass in the same authenticity_token that was used to set up Form Based Auth Login Request. Thus, our site is failing to log in.
We attempted to do some troubleshooting with the Fuzz tool, but we were not able to find any changes to make that weren't already applied. So we ultimately believe we may have found a bug here with Anti-CSRF tokens.
Thanks,
Hector