Skip to content

OF-3480: Require CSRF for server-restart on admin console - #3586

Open
akrherz wants to merge 1 commit into
igniterealtime:mainfrom
akrherz:OF-3480_require_csrf
Open

akrherz wants to merge 1 commit into
igniterealtime:mainfrom
akrherz:OF-3480_require_csrf

Conversation

@akrherz

@akrherz akrherz commented Nov 29, 2026

Copy link
Copy Markdown
Member

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-516XH7SG

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-516XH7SG
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The keystore warning’s restart link now includes the current CSRF token. The restart page compares the request parameter with the CSRF cookie before logging or restarting the HTTP server. If the values are missing or differ, the page displays a CSRF error and does not render the automatic redirect. If they match, the page performs the restart and renders the restart information with a five-second redirect.

Suggested reviewers: guusdk, fishbowler

Merge Risk: Minimal · up to 88c35

The server restart action now requires a matching CSRF token, and the keystore warning link supplies it. No actionable merge-blocking risk is evident.

Pre-merge checks: Passed 3

Check name Status Explanation
Description check Passed The description states the change was discovered by Anthropic's OSS Scanner as vulnerability ANT-2026-516XH7SG. It is related to the changeset, which adds CSRF protection to the server-restart flow. L…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description states the change was discovered by Anthropic's OSS Scanner as vulnerability ANT-2026-516XH7SG. It is related to the changeset, which adds CSRF protection to the server-restart flow. Level of detail is not important for this check, so it passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

PMD (7.29.0)

xmppserver/src/main/webapp/security-keystore.jsp

PMD reported a processing error; analysis is incomplete

xmppserver/src/main/webapp/server-restart.jsp

PMD reported a processing error; analysis is incomplete

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 73671e99-4893-49de-a9b6-29682b50732a
Commits

Reviewing files that changed from the base of the PR and between 3ffcd3a and 88c350c.

Files selected for processing: 2

  • xmppserver/src/main/webapp/security-keystore.jsp
  • xmppserver/src/main/webapp/server-restart.jsp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

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.

1 participant