This repository has been archived on 2026-03-21. You can view files and clone it, but cannot push or open issues or pull requests.
payfrit-biz/api/tasks
John Mizerek 3f15b0c8b6 Fix SQL injection, wrong PK, and hardcoded production URLs
Security:
- orders/submit.cfm: parameterize IN clause (was string-interpolated)
- auth/completeProfile.cfm: fix UserID → ID on Users table PK

Environment-aware URLs:
- Add application.baseUrl to config/environment.cfm
- Replace all hardcoded https://biz.payfrit.com with application.baseUrl in:
  orders/getDetail, tasks/getDetails, auth/completeProfile, auth/avatar,
  stripe/onboard, users/search, workers/onboardingLink, workers/earlyUnlock

Also fix submit.cfm qMeta.ItemID → qMeta.ID (column not in SELECT)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 21:14:19 -08:00
..
accept.cfm Fix TaskID → ID in WHERE clauses on Tasks table (4 files + cron copy) 2026-01-31 21:00:46 -08:00
callServer.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
complete.cfm Fix normalized DB column names across all API files 2026-01-31 16:56:41 -08:00
completeChat.cfm Fix TaskID → ID in WHERE clauses on Tasks table (4 files + cron copy) 2026-01-31 21:00:46 -08:00
create.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
createChat.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
deleteCategory.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
deleteType.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
expireStaleChats.cfm Fix TaskID → ID in WHERE clauses on Tasks table (4 files + cron copy) 2026-01-31 21:00:46 -08:00
getDetails.cfm Fix SQL injection, wrong PK, and hardcoded production URLs 2026-01-31 21:14:19 -08:00
listAllTypes.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
listCategories.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
listMine.cfm Complete DB column normalization: strip redundant table-name prefixes from all SQL queries 2026-01-31 20:03:40 -08:00
listPending.cfm Fix remaining old column names missed by initial batch rename 2026-01-30 22:58:46 -08:00
listTypes.cfm Fix remaining old column names missed by initial batch rename 2026-01-30 22:58:46 -08:00
reorderTypes.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
saveCategory.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
saveType.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
seedCategories.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00
setup.cfm Normalize database column and table names across entire codebase 2026-01-30 15:39:12 -08:00