fieldwitness/frontends/web/blueprints
Aaron D. Lee 2629aabcc5
Some checks failed
CI / typecheck (push) Waiting to run
CI / lint (push) Has been cancelled
Fix 12 security findings from adversarial audit
CRITICAL:
- #1+#2: Consistency proof verification no longer a stub — implements
  actual hash chain reconstruction from proof hashes, rejects proofs
  that don't reconstruct to the expected root. GossipNode._verify_consistency
  now calls verify_consistency_proof() instead of just checking sizes.
- #3: Remove passphrase.lower() from KDF — was silently discarding
  case entropy from mixed-case passphrases. Passphrases are now
  case-sensitive as users would expect.
- #4: Federation gossip now applies record_filter (trust store check)
  on every received record before appending to the log. Untrusted
  attestor fingerprints are rejected with a warning.
- #5: Killswitch disables all logging BEFORE activation to prevent
  audit log from recording killswitch activity that could survive an
  interrupted purge. Audit log destruction moved to position 4 (right
  after keys + flask secret, before other data).

HIGH:
- #6: CSRF exemption narrowed from entire dropbox blueprint to only
  the upload view function. Admin routes retain CSRF protection.
- #7: /health endpoint returns only {"status":"ok"} to anonymous
  callers. Full operational report requires authentication.
- #8: Metadata stripping now reconstructs image from pixel data only
  (Image.new + putdata), stripping XMP, IPTC, and ICC profiles — not
  just EXIF.
- #9: Same as #6 (CSRF scope fix).

MEDIUM:
- #11: Receipt HMAC key changed from public upload token to server-side
  secret key, making valid receipts unforgeable by the source or anyone
  who captured the upload URL.
- #12: Docker CMD no longer defaults to --no-https. HTTPS with
  self-signed cert is the default; --no-https requires explicit opt-in.
- #14: shred return code now checked — non-zero exit falls through to
  the zero-overwrite fallback instead of silently succeeding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:31:03 -04:00
..
__init__.py Add core modules, web frontend, CLI, keystore, and fieldkit 2026-03-31 14:30:13 -04:00
admin.py Wire up auth, stego routes, and full web UI with login flow 2026-03-31 15:53:58 -04:00
attest.py Implement 6 evidence lifecycle features 2026-04-01 21:04:20 -04:00
dropbox.py Fix 12 security findings from adversarial audit 2026-04-01 23:31:03 -04:00
federation.py Implement live gossip federation server (5 phases) 2026-04-01 22:20:53 -04:00
fieldkit.py Implement 14 power-user feature requests for field deployment 2026-04-01 19:35:36 -04:00
keys.py Fix all 98 ruff lint errors across codebase 2026-04-01 18:30:01 -04:00
stego.py Wire up auth, stego routes, and full web UI with login flow 2026-03-31 15:53:58 -04:00