Skip to content

Fix instructor NoSQL injection vulnerabilities - #11

Open
a1yyS wants to merge 3 commits into
Advanced-Computer-Lab-2026:masterfrom
a1yyS:codex/task5-instructor-security
Open

a1yyS wants to merge 3 commits into
Advanced-Computer-Lab-2026:masterfrom
a1yyS:codex/task5-instructor-security

Conversation

@a1yyS

@a1yyS a1yyS commented Nov 7, 2026

Copy link
Copy Markdown

Summary

  • Validate instructor login input and sanitize database requests.
  • Hash instructor passwords with bcrypt and keep secret fields out of API responses.
  • Limit search to public fields and supported filters.
  • Update instructor seeding and remove the API key from the dashboard.

Testing

  • npm exec --workspace server -- jest --runInBand — 13 tests passed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant