pour application android simpl-liste
  • TypeScript 78.5%
  • JavaScript 19.3%
  • Python 2%
  • Dockerfile 0.1%
  • CSS 0.1%
Find a file
le king fu 97f5a6bad6 fix(security): whitelist sync data columns and check ownership of references
POST /api/sync copied the client's `data` into `.set()` for list, task
and tag updates, so an authenticated client could rewrite `userId`
(moving its rows into another account), `id`, `createdAt` or
`deletedAt`. Task-tag links, task `listId`/`parentId` and list creation
did not check that the referenced rows belong to the caller.

- web/src/lib/syncData.ts: one zod schema per entity and action. Unknown
  keys are stripped rather than rejected, because the app marks its
  outbox as synced on HTTP 200 and a skipped operation would be lost.
  Strings are truncated to the mobile limits (notes 10000). Null maps
  to undefined for NOT NULL columns.
- processOperation writes only the parsed output; taskTag create and
  delete verify the task and the tag; task create/update verify
  listId; parentId and list create ids are refused when taken by
  another account (a missing parent passes, since initialMerge can push
  a subtask before its parent).
- vitest 4.1 (vitest 5 requires @types/node >= 22, web is on 20) with
  tests built from the payloads the app sends today.
- REVIEW.md: rules and pitfall updated, npm test added, syncData.ts in
  the Haut table (review-levels.py --check passes).

Refs #142

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:11:49 -04:00
.claude docs(eas-build): document APK upload retry pattern for transient 502/504 2026-05-01 07:17:51 -04:00
.vscode Initial commit 2026-02-20 19:08:56 -05:00
app feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
assets feat: add custom app icon and adjust medium widget to 2x4 2026-02-21 14:12:22 -05:00
patches perf(widget): cut expand/collapse tap latency (native patches + light headless path) 2026-07-19 16:41:47 -04:00
scripts fix(security): whitelist sync data columns and check ownership of references 2026-10-19 22:11:49 -04:00
src feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
tests fix(security): raise postcss-selector-parser floor to 6.1.5 2026-10-19 20:09:12 -04:00
web fix(security): whitelist sync data columns and check ownership of references 2026-10-19 22:11:49 -04:00
.gitignore chore: ignore .next/ and reports/ 2026-09-27 15:52:56 -04:00
app.json chore: bump version to 1.6.6 (versionCode 18) 2026-08-12 14:20:59 -04:00
babel.config.js feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
CLAUDE.md docs(review): add REVIEW.md with review levels and calibration script 2026-10-19 21:00:13 -04:00
drizzle.config.ts feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
eas.json feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
index.js feat: add Android widget for task overview (3 sizes) 2026-02-21 09:47:15 -05:00
masterplan.md docs: add CLAUDE.md and masterplan for project reference 2026-02-20 21:50:45 -05:00
metro.config.js fix: list navigation, crypto polyfill, SQL transformer, dark mode priorities 2026-02-20 20:15:49 -05:00
nativewind-env.d.ts feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
package-lock.json fix(security): raise postcss-selector-parser floor to 6.1.5 2026-10-19 20:09:12 -04:00
package.json fix(security): raise postcss-selector-parser floor to 6.1.5 2026-10-19 20:09:12 -04:00
REVIEW.md fix(security): whitelist sync data columns and check ownership of references 2026-10-19 22:11:49 -04:00
SECURITY.md docs(security): seed STATE.md and SECURITY.md after vuln remediation 2026-04-24 07:30:41 -04:00
spec-simpl-liste-web.md docs: archive spec-simpl-liste-web (milestone 12/12 done) 2026-04-19 15:57:00 -04:00
sql-transformer.js fix: list navigation, crypto polyfill, SQL transformer, dark mode priorities 2026-02-20 20:15:49 -05:00
STATE.md state: sync after #140 (PR #141) 2026-10-19 21:00:44 -04:00
tailwind.config.js feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00
tsconfig.json fix: resolve Logto auth crash on web — remove illegal cookie set in layout 2026-04-08 13:12:59 -04:00