Skip to content

[Bug] Parent Grade Submission Endpoint Allows Unauthorized Academic Record Modification #3571

Description

@KRUSHAL2956

Description

The grade submission endpoint under the parent workflow appears to validate institute ownership but does not consistently enforce role restrictions before creating or modifying academic grade records.

This may allow parent accounts to submit or modify grades for students belonging to the same institute.

Academic grade creation should be restricted to authorized teaching or administrative roles only.

Steps to Reproduce

  1. Log in using a parent account.
  2. Navigate to the grade submission endpoint.
  3. Submit a valid grade payload for a student within the same institute.
  4. Observe that the grade record is accepted.

Expected Behavior

Only teachers and administrators should be able to create or modify grade records.

Screenshots

N/A (backend authorization issue).

Environment

  • OS: Any
  • Browser: Any
  • Version: Current master branch

Metadata

Metadata

Assignees

Labels

GSSoC'26Part of GirlScript Summer of Code 2026bugSomething isn't workingmentor:Ayushh-SharmaaGSSoC: Mentor — @Ayushh-Sharmaa

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions