Commit Graph

11 Commits

Author SHA1 Message Date
3nd3r a0a96addb6 Fix #4: Don't broadcast PM invite when target is Violet
- Only emit pm_invite when target_sid exists (real user)
- Violet has no socket session, so emitting to None would broadcast
  to all connected clients, leaking who is chatting with the AI
2026-04-12 12:51:55 -05:00
3nd3r be3503b31b Fix #3: Remove client-exploitable payment endpoint
- Payment endpoint no longer uses @_require_auth (not client-callable)
- Identifies user from webhook payload user_id instead of client JWT
- Removed hardcoded payment secret from chat.js
- Client now shows placeholder message directing to admin
- Webhook secret + user_id must come from payment provider server
2026-04-12 12:51:31 -05:00
3nd3r 8da91ebf70 Fix #2: Validate PM room join authorization
- Track pending PM invitations per socket session
- pm_accept now rejects room joins unless user has a valid invite
- Clean up pending invites on disconnect
- Prevents eavesdropping on other users' PM conversations
2026-04-12 12:50:47 -05:00
3nd3r 99859f009f Fix #1+#8: Extract shared config module, unify JWT secret
- Create config.py with shared constants, AES-GCM helpers, and JWT helpers
- app.py and routes.py now import from the single source of truth
- Eliminates JWT secret mismatch (routes.py had hardcoded default)
- Removes all duplicate _issue_jwt, _verify_jwt, _aesgcm_encrypt,
  _aesgcm_decrypt definitions
- start.py also uses shared config loader
2026-04-12 12:49:44 -05:00
3nd3r 1c17a9bcf0 Add detailed README with full security audit 2026-04-12 12:31:27 -05:00
Antigravity c514c5fb73 Fix Lobby tab switching and message submission logic 2026-04-12 18:15:44 +01:00
computertech312 698737cb5e Fix Lobby tab switching and message submission logic 2026-04-12 17:14:18 +00:00
Antigravity bff5afc366 Implement JSON config system and AI PM integration 2026-04-12 18:09:05 +01:00
Antigravity 1537d8518e Fix syntax error in pm_message 2026-04-12 18:05:42 +01:00
Antigravity 2a3f22a051 Update AI model to valid Ollama path 2026-04-12 18:04:21 +01:00
ComputerTech ad510c57e1 Initial commit: SexyChat (Aphrodite) v1.0 2026-04-12 17:55:40 +01:00