tududi/backend
antanst f4214c40da Security fixes: Add auth to upload, fix SQL injection, improve error logging
Critical security improvements:
- Add requireAuth middleware to /api/upload/project-image endpoint (prevents unauthenticated file uploads)
- Fix SQL injection vulnerability in tasks.js DELETE route by whitelisting table names
- Add missing resource existence check in shares.js POST endpoint (prevents permissions on non-existent resources)

Code quality improvements:
- Replace all console.error with logError across all route files for consistent logging
- Import logError service in all route modules

All tests passing (597 passed).
2025-10-09 11:38:26 +03:00
..
cmd Admin user management: backend API and frontend UI. 2025-09-22 15:20:46 +03:00
config Disable internal SSL 2025-07-23 12:22:27 +03:00
middleware chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
migrations Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00
models Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00
routes Security fixes: Add auth to upload, fix SQL injection, improve error logging 2025-10-09 11:38:26 +03:00
scripts chore(lint): remove unnecessary try/catch and tighten error handling 2025-09-22 15:20:46 +03:00
seeders Feat/add project states (#354) 2025-09-29 16:04:25 +03:00
services Allow admin to see all projects 2025-10-03 14:43:41 +03:00
tests Merge chrisvel/main into pro/user-perms 2025-10-09 11:15:02 +03:00
utils Fix safeRemoveColumn to properly handle SQLite table recreation 2025-10-02 00:21:26 +03:00
.env.test Express migration (#80) 2025-06-16 21:50:44 +03:00
.prettierignore Add 'dist' paths to git & prettier ignore. 2025-07-22 11:45:14 +03:00
.prettierrc.json Linting cleanup (#99) 2025-07-01 11:40:09 +03:00
.sequelizerc Express migration (#80) 2025-06-16 21:50:44 +03:00
app.js Merge branch 'cleanups' into pro/user-perms 2025-10-02 15:42:42 +03:00
eslint.config.js Sorting fixes (#174) 2025-07-17 17:43:56 +03:00
jest.config.js Fix E2E test breakage (#380) 2025-10-05 16:04:46 +03:00