Skip to content

fix: block NoSQL injection in the instructor portal - #23

Open
minoosama wants to merge 1 commit into
Advanced-Computer-Lab-2026:masterfrom
minoosama:master
Open

minoosama wants to merge 1 commit into
Advanced-Computer-Lab-2026:masterfrom
minoosama:master

Conversation

@minoosama

Copy link
Copy Markdown
  • add express-mongo-sanitize to strip "$" and "." keys from requests
  • validate login and search input with Joi
  • hash instructor passwords with bcrypt and compare on login
  • mark password, apiKey and private contact fields as select: false
  • return only public fields from login, search and the directory
  • add the injection test suite and the CI workflow

- add express-mongo-sanitize to strip "$" and "." keys from requests
- validate login and search input with Joi
- hash instructor passwords with bcrypt and compare on login
- mark password, apiKey and private contact fields as select: false
- return only public fields from login, search and the directory
- add the injection test suite and the CI workflow

Co-Authored-By: Claude <noreply@anthropic.com>
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