Fixed
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
RilwanRilwanPriority
BlockerFix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Affects versions
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Rilwan
RilwanPriority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Affects versions
Created 3 March 2021 at 12:20
Updated 14 February 2025 at 11:30
Resolved 14 February 2025 at 11:30
We are currently using Lucee 5.3.6.68.
We are migrating from Adobe CF to Lucee.
Configuration
<cfset THIS.SessionManagement = true />
<cfset THIS.ClientManagement = true />
<cfset THIS.LoginStorage = "session" />
<cfset THIS.setClientCookies = true />
Issue
sessionRotate() changes the previously generated CSRF Token, so csrfVerifyToken() is now always false.
Reproduce
We login
We generate a CSRF Token with csrfGenerateToken() we set it to a session variable (to later be referenced).
Invoke sessionRotate()
Return a form page and add csrf token we previously generated
Invoke csrfVerifyToken (as we did in Adobe ColdFusion), which returns false
Expected
Invoke csrfVerifyToken, should be true
Workaround
Replace session variable with csrfGenerateToken(<key>, false)
Please may we know, why this behavior differs between Adobe ColdFusion and Lucee? or maybe we have misconfigured something?