Skip to content

Missing Content Validation on Message Send #140

Description

Severity: Medium Description: In the sendMessage controller, there is no validation to ensure that a message actually has content. The code blindly extracts text and image and saves the document. Impact: A user (or a malicious script) can send completely empty messages (where both text and image are undefined or empty strings). This leads to database clutter and can potentially break the frontend UI if it doesn't know how to render an empty message bubble.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions