recon patch
This commit is contained in:
@@ -20,3 +20,17 @@ This reconciliation adds Context System 1.0 and Workflow 2.0 documentation only.
|
||||
## Known limitations of this record
|
||||
|
||||
Application behavior, deployment, and local database state have not been verified. Record confirmed issues here when supported by evidence; do not turn unverified concerns into accepted tasks.
|
||||
|
||||
## Static-source review: potential security/functionality gaps (2026-11-04)
|
||||
|
||||
These observations are based on the supplied ZIP source, **not runtime exploit tests**:
|
||||
|
||||
- `api/routes/user_routes.py`: GET list/detail check admin, but POST create, PATCH update, and DELETE do not check `is_admin`; any authenticated account may be able to modify accounts. Treat as release-blocking until verified/fixed. `get_user` also lacks a missing-user guard.
|
||||
- `api/routes/file_routes.py`: POST `/api/file` accepts client-supplied `path` and `filename`, without an explicit user-root containment check; this risks unauthorized file download. This endpoint must not be exposed as-is.
|
||||
- `api/models/user.py`: `get_file_list()` and the admin root listing expose absolute/server paths in tree data; the configured root is formed by string concatenation, without demonstrated canonical containment checks. Symlink handling and filesystem boundaries need review.
|
||||
- `api/auth.py` / `api/models/user.py` / `api/routes/token_routes.py`: disabled-account/token-refresh behavior needs explicit security tests. Review refresh-cookie `Secure` and `SameSite` settings and token revocation on disable/delete.
|
||||
- `react/src/components/FileBrowser/FileBrowser.jsx`: download icon is rendered but has no click handler; `apiBaseUrl` is hard-coded to a development URL and unused. End-to-end download flow is unverified.
|
||||
- `api/routes/file_routes.py`: a nested-quote f-string in the 404 handler may cause a syntax error on some supported Python versions; run syntax/import checks early.
|
||||
- Tests and production deployment are still unverified. The ZIP is not a live Git repository; its HEAD/branch are historical snapshot metadata.
|
||||
|
||||
No source-code security fixes or runtime validation are part of this reconciliation patch.
|
||||
|
||||
Reference in New Issue
Block a user