Skip to content

PD-6031 PD-6030 PD-6020 spring security 6 is trailing slash sensitive and caused the request to fail, CSRF token race condition - #2896

Merged
amontenegro merged 2 commits into
mainfrom
camelia-orcid/PD-6031
Aug 4, 2026
Merged

PD-6031 PD-6030 PD-6020 spring security 6 is trailing slash sensitive and caused the request to fail, CSRF token race condition#2896
amontenegro merged 2 commits into
mainfrom
camelia-orcid/PD-6031

Conversation

@Camelia-Orcid

Copy link
Copy Markdown
Contributor

No description provided.

@amontenegro

Copy link
Copy Markdown
Member

Could be reproduced in qa by revoke access for a trusted individual first call is a 403 the subsequent calls are 200 . It is a CSRF bootstrap race.
First POST to revokeDelegate is sent before the XSRF header is available, so Spring rejects with 403.
After that first attempt, the token cookie is materialized.
Second identical POST includes token/header and succeeds with 200. This commit fixes it.
@Camelia-Orcid Camelia-Orcid changed the title PD-6031 spring security 6 is trailing slash sensitive and caused the request to fail PD-6031 PD-6030 spring security 6 is trailing slash sensitive and caused the request to fail, CSRF token race condition Aug 4, 2026
@amontenegro

Copy link
Copy Markdown
Member

@Camelia-Orcid Camelia-Orcid changed the title PD-6031 PD-6030 spring security 6 is trailing slash sensitive and caused the request to fail, CSRF token race condition PD-6031 PD-6030 PD-6020 spring security 6 is trailing slash sensitive and caused the request to fail, CSRF token race condition Aug 4, 2026
@amontenegro

Copy link
Copy Markdown
Member

@amontenegro
amontenegro merged commit 4523079 into main Aug 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants