Description
BottleCRM through 1.14.5 contains a server-side template injection vulnerability in the send_email Celery task, which compiles the user-supplied AccountEmail message_body with django.template.Template(). Authenticated organization members can submit template tags through POST /api/accounts/<id>/create_mail/ to disclose the rendering context and loaded Python modules, or block the shared Celery worker with nested loops.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MicroPyramid | BottleCRM | ≤ 1.14.5 | — |
References
- https://github.com/Django-CRM/Django-CRM/issues/826 issue-tracking
- https://github.com/Django-CRM/Django-CRM/blob/v1.14.5/backend/accounts/tasks.py#L45 technical-description
- Researcher Disclosure technical-description exploit
- VulnCheck Advisory: BottleCRM through 1.14.5 Server-Side Template Injection via Account Email create_mail third-party-advisory