Skip to content

security: add missing authorization checks to AJAX endpoints and module actions#724

Open
anonymoususer72041 wants to merge 2 commits intoopencats:masterfrom
anonymoususer72041:fix/authorize-ajax-and-module-actions
Open

security: add missing authorization checks to AJAX endpoints and module actions#724
anonymoususer72041 wants to merge 2 commits intoopencats:masterfrom
anonymoususer72041:fix/authorize-ajax-and-module-actions

Conversation

@anonymoususer72041
Copy link
Copy Markdown
Contributor

This PR addresses #720 by adding missing server-side authorization checks to several AJAX endpoints and module actions that previously relied on authentication without enforcing the required permissions.

The changes are intentionally minimal and stay close to the existing authorization patterns already used in the codebase. The goal is to prevent authenticated but unauthorized users from performing sensitive actions while preserving the behavior for properly authorized users.

The affected areas include activity-related AJAX actions, email settings test execution, saved list AJAX actions, import revert, report-related actions and calendar event edit/delete handling.

In the calendar module, the changes also prevent regular users from editing or deleting events they do not own.

@anonymoususer72041 anonymoususer72041 added the security Pull requests that address a security vulnerability label Mar 18, 2026
@anonymoususer72041 anonymoususer72041 marked this pull request as draft April 22, 2026 11:47
@RussH RussH marked this pull request as ready for review April 22, 2026 11:48
@RussH
Copy link
Copy Markdown
Member

RussH commented Apr 22, 2026

Sorry - just checked this, happy with this one being merged as-is. Please let me know - I see you marked it back into draft.

@RussH RussH marked this pull request as draft April 22, 2026 11:51
@anonymoususer72041
Copy link
Copy Markdown
Contributor Author

Sorry - just checked this, happy with this one being merged as-is. Please let me know - I see you marked it back into draft.

I was wondering about the failing tests – just saw it now. But sure, I can revert it back "ready for review" if this is just a bug. Please let me know.

@anonymoususer72041 anonymoususer72041 force-pushed the fix/authorize-ajax-and-module-actions branch from bf1ae61 to b118c48 Compare April 23, 2026 11:21
@anonymoususer72041 anonymoususer72041 marked this pull request as ready for review April 23, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants