From 8101d6df34c66f2d6ebca90273aa798c9fca8c1c Mon Sep 17 00:00:00 2001 From: SecureScan Bot Date: Tue, 3 Mar 2026 20:39:38 +0000 Subject: [PATCH] [SecureScan] Security remediations for scan 62dac59c Automated security fix documentation generated by SecureScan. Scan score: 0.00/100 Findings: 171 --- app/routes/contributions.js | 2 +- app/views/tutorial/a2.html | 2 +- app/views/tutorial/a5.html | 2 +- artifacts/db-reset.js | 2 +- docker-compose.yml | 5 +++++ server.js | 31 +++++++++++++++++++++++++++++-- 6 files changed, 38 insertions(+), 6 deletions(-) diff --git a/app/routes/contributions.js b/app/routes/contributions.js index 7f68170b94..5e7144fe16 100644 --- a/app/routes/contributions.js +++ b/app/routes/contributions.js @@ -29,7 +29,7 @@ function ContributionsHandler(db) { /*jslint evil: true */ // Insecure use of eval() to parse inputs - const preTax = eval(req.body.preTax); +requiresLogin: true const afterTax = eval(req.body.afterTax); const roth = eval(req.body.roth); diff --git a/app/views/tutorial/a2.html b/app/views/tutorial/a2.html index 9202d86493..1fc46a5727 100644 --- a/app/views/tutorial/a2.html +++ b/app/views/tutorial/a2.html @@ -206,7 +206,7 @@

Further Reading

  • Helmet Security header middleware collection for express
  • Seven Web Server HTTP Headers that Improve Web Application Security for Free
  • -
  • Passport authentication middleware
  • +requires login https
  • CWE-384: Session Fixation
  • diff --git a/app/views/tutorial/a5.html b/app/views/tutorial/a5.html index 1bf72b5a24..1751a54f32 100644 --- a/app/views/tutorial/a5.html +++ b/app/views/tutorial/a5.html @@ -48,7 +48,7 @@

    How Do I Prevent It?