Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Calendar event attendee can modify event time without being organizer #15

Open
aaronsb opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working calendar security

Comments

@aaronsb
Copy link
Owner

aaronsb commented Feb 18, 2025

Description

When using the manage_workspace_calendar_event function with action: "update_time", an attendee who is not the event organizer can modify the event time. This should not be possible as only the event organizer should have permission to modify the event.

Steps to Reproduce

  1. Create a calendar event from Account A and invite Account B
  2. Using Account B (an attendee), call manage_workspace_calendar_event with:
    • action: "update_time"
    • Provide new start/end times
    • Use the original event ID

Expected Behavior

  • The API should return an error or permission denied when a non-organizer attempts to modify the event time
  • Non-organizers should only be able to propose new times using action: "propose_new_time"

Actual Behavior

  • The API successfully updates the event time
  • The change is applied immediately without requiring organizer approval
  • The event is modified in all attendees' calendars

Impact

This allows any attendee to modify event times without permission, which could lead to:

  • Unauthorized schedule changes
  • Confusion among attendees
  • Potential abuse of calendar permissions

Suggested Fix

Add permission checking to ensure only the event organizer can use update_time action. Non-organizers should receive an appropriate error message directing them to use propose_new_time instead.

@aaronsb aaronsb added bug Something isn't working calendar security labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working calendar security
Projects
None yet
Development

No branches or pull requests

1 participant