Skip to content

Harden instructor portal against NoSQL injection - #19

Open
Abishoy wants to merge 2 commits into
Advanced-Computer-Lab-2026:masterfrom
Abishoy:fix/nosql-injection-instructor-portal
Open

Abishoy wants to merge 2 commits into
Advanced-Computer-Lab-2026:masterfrom
Abishoy:fix/nosql-injection-instructor-portal

Conversation

@Abishoy

@Abishoy Abishoy commented Nov 7, 2026

Copy link
Copy Markdown
  • Validate login/search input with Joi (reject operator objects and unknown keys)

  • Add express-mongo-sanitize globally as defense-in-depth

  • Hash passwords with bcrypt; hide password/apiKey/private fields via select:false

  • Return only public fields from login and search

- Validate login/search input with Joi (reject operator objects and unknown keys)

- Add express-mongo-sanitize globally as defense-in-depth

- Hash passwords with bcrypt; hide password/apiKey/private fields via select:false

- Return only public fields from login and search
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