Hotfix: Fixing Security Issues (#2848)
* Fixing Privilege Escalation * Fixing critical obj ref in availability * Fixing reschedule security issue Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
3 files changed
+20
No files matched your search
@@ -91,6 +91,8 @@ const handler = async (
|
||||
},
|
||||
});
|
||||
|
||||
if (bookingToReschedule.userId !== userOwner.id) throw new Error("UNAUTHORIZED");
|
||||
|
||||
if (bookingToReschedule && userOwner) {
|
||||
let event: Partial<EventType> = {};
|
||||
if (bookingToReschedule.eventTypeId) {
|
||||
|
||||
Reference in new issue
Block a user