Skip to content

Conversation

@jonathanaustin
Copy link
Member

To improve the robustness of the session token parameter (wc_t), which is used to prevent CSRF attacks, the following changes have been made:

  • The session token is no longer included on any GET URLs and only posted in the body for POSTS.
  • Modified the session token interceptors to only accept a session token on a POST and throw an exception if provided on a GET.
  • Modified Targetable components to use the new createTargetUrl method in WebUtilites that centralises the logic for
    creating the URLs for Targetable components and excludes the session token.
  • Moved the adding of the hidden parameters onto the AJAX url from the XSL into the WApplicationRenderer so the session
    token can be excluded.

@sonarqubecloud
Copy link

@jonathanaustin jonathanaustin merged commit 34886ec into georgie Nov 27, 2025
4 checks passed
@jonathanaustin jonathanaustin deleted the feature/session-token-url branch November 27, 2025 04:35
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