mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 09:19:51 +00:00
The engine runs with the service-role client (bypassing RLS) and the public POST /api/automations/engine endpoint accepts contact_id from the request body. Without a user_id filter on the contacts lookup, an authenticated user could fire their own automations against another tenant's contact UUID and send via their own WhatsApp config to that contact's phone. UUIDs are unguessable so practical risk is low, but this is cheap defense-in-depth. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| hooks | ||
| lib | ||
| types | ||
| middleware.ts | ||