Skip to content

Fix idor movies - #329

Open
Sairaj2033 wants to merge 4 commits into
SRV30:mainfrom
Sairaj2033:fix-idor-movies
Open

Fix idor movies#329
Sairaj2033 wants to merge 4 commits into
SRV30:mainfrom
Sairaj2033:fix-idor-movies

Conversation

@Sairaj2033

Copy link
Copy Markdown
Contributor

Linked Issue

Fixes #251

Description

Critical Security Patch: Resolved an Insecure Direct Object Reference (IDOR) vulnerability across multiple movie controllers (releaseMovie, getMovieDetails, getMovieTracking, and addMarketingCampaign).

Previously, these controllers fetched documents using only findById(), failing to verify if the requesting user actually owned the target movie. This allowed authenticated users to read, manipulate, and even run marketing campaigns on movies belonging to other studios. The queries have been updated to enforce ownership checks at the database level by requiring matching studioId fields.

Type of Change

  • Security patch
  • Bug fix

Contributor for ECSoC & ELUSOC 2026

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

@Sairaj2033 is attempting to deploy a commit to the srv30's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Sairaj2033

Copy link
Copy Markdown
Contributor Author

@SRV30 U can review

@SRV30 SRV30 added elusoc Official ELUSOC 2026 issue. Contributions on these issues are eligible for ELUSOC participation. adventurer Intermediate difficulty tasks requiring some project understanding. (25 XP) ECSoC26 Mandatory tracking label for ECSoC Sentinel scoring ECSOC2026 Issues open for ECSOC 2026 contributors good-pr 15XP labels Jul 20, 2026
@SRV30

SRV30 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

@SRV30 U can review

Hey @Sairaj2033 , please resolve the merge conflicts

@SRV30

SRV30 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

@SRV30 U can review

Hey @Sairaj2033 , please resolve the merge conflicts

I'll do it tomorrow @SRV30

@Sairaj2033

@SRV30

SRV30 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Hi @Sairaj2033 , any progress?

@SRV30

SRV30 commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Hey @Sairaj2033 , please resolve the merge conflicts

@Sairaj2033

Sairaj2033 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Hey @Sairaj2033 , please resolve the merge conflicts

@SRV30 Okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adventurer Intermediate difficulty tasks requiring some project understanding. (25 XP) ECSoC26 Mandatory tracking label for ECSoC Sentinel scoring ECSOC2026 Issues open for ECSOC 2026 contributors elusoc Official ELUSOC 2026 issue. Contributions on these issues are eligible for ELUSOC participation. good-pr 15XP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ECSoC_2026 & ELUSOC_2026 Security: IDOR allows unauthorized access to private movie data

2 participants