Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static PostCard of(Post post, List<String> imageUrls) {
imageUrls == null?0:imageUrls.size(),
post.getExhibition().getExhibitionId(),
imageUrls,
post.isDeleted()
post.getExhibition().getIsDeleted()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-medium medium

The change to populate PostCard's isDeleted field solely with the Exhibition's deleted status introduces a security risk. Deleted posts may be incorrectly marked as active if their parent Exhibition is still active, potentially leading to unauthorized data exposure and broken access control. The PostCard's deleted status should logically consider both the Post's and Exhibition's deletion status. If either is deleted, the PostCard should be considered deleted.

Suggested change
post.getExhibition().getIsDeleted()
post.isDeleted()

);
}
}
Loading