Security audit and readme #27

Merged
quoije merged 2 commits from cursor/security-audit-and-readme-0bd2 into 2026 2025-12-21 15:21:12 -05:00
quoije commented 2025-12-21 15:19:09 -05:00 (Migrated from github.com)

Fixes critical privilege escalation and resource exhaustion vulnerabilities, updates dependencies, and adds multer installation instructions to README.

The /api/users/register endpoint allowed clients to specify their role, leading to trivial admin privilege escalation. A "zip bomb" protection was added to the DB restore process to prevent resource exhaustion during gzip decompression. Additionally, npm audit fix was run to address reported dependency vulnerabilities.


Open in Cursor Open in Web

Fixes critical privilege escalation and resource exhaustion vulnerabilities, updates dependencies, and adds `multer` installation instructions to README. The `/api/users/register` endpoint allowed clients to specify their `role`, leading to trivial admin privilege escalation. A "zip bomb" protection was added to the DB restore process to prevent resource exhaustion during gzip decompression. Additionally, `npm audit fix` was run to address reported dependency vulnerabilities. --- <a href="https://cursor.com/background-agent?bcId=bc-e0d1ada5-d268-4d07-ba11-574631910c1c"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-e0d1ada5-d268-4d07-ba11-574631910c1c"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a>
cursor[bot] commented 2025-12-21 15:19:10 -05:00 (Migrated from github.com)

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Cursor Agent can help with this pull request. Just `@cursor` in comments and I'll start working on changes in this branch. <sub>[Learn more](https://cursor.com/docs/background-agent/web-and-mobile) about Cursor Agents</sub>
Sign in to join this conversation.