Merge branch 'fix_critical_issues' into 'master'

fix sql injections and path traversals

See merge request !173
1 job for master in 14 seconds (queued for 1 second)
Name Stage Failure
failed
deploy-master Deploy

node_modules/@types/node/globals.d.ts(347,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.
node_modules/@types/express-session/index.d.ts(17,13): error TS2687: All declarations of 'session' must have identical modifiers.
node_modules/@types/express-flash-2/index.d.ts(13,13): error TS2687: All declarations of 'session' must have identical modifiers.
node_modules/@types/express-flash-2/index.d.ts(13,13): error TS2717: Subsequent property declarations must have the same type. Property 'session' must be of type 'Session & Partial<SessionData>', but here has type 'Session | undefined'.
routes/account.ts(5,28): error TS7016: Could not find a declaration file for module 'uuid'. '/var/lib/gitlab-runner/builds/W7wyyvW-/0/gitlab/m4lab_tv1/user-account/node_modules/uuid/dist/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/uuid` if it exists or add a new declaration (.d.ts) file containing `declare module 'uuid';`
Cleaning up project directory and file based variables
ERROR: Job failed: exit status 1