Skip to content

Commit fd02ecb

Browse files
committed
fix: [security] [ID 004] make blocked sharing groups uuid check case insensitive for events
1 parent 680f4e5 commit fd02ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mispguard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ def check_blocked_event_sharing_groups_uuids(
769769
self, blocked_sharing_groups_uuids: list, event: dict
770770
) -> None:
771771
if blocked_sharing_groups_uuids and "SharingGroup" in event["Event"]:
772-
if event["Event"]["SharingGroup"]["uuid"] in blocked_sharing_groups_uuids:
772+
if event["Event"]["SharingGroup"]["uuid"].lower() in [blocked_sharing_groups_uuid.lower() for blocked_sharing_groups_uuid in blocked_sharing_groups_uuids]:
773773
raise ForbiddenException(
774774
"event has blocked sharing group uuid: %s"
775775
% event["Event"]["SharingGroup"]["uuid"]

0 commit comments

Comments
 (0)