Skip to content

Security

Workflow inputs can come from people you do not trust, for example chatbot users. These are the protections the module applies.

File and URL loading

All media nodes load files through SecureFileLoader.

URLs

  • Only http and https are accepted.
  • The hostname is resolved, and private, reserved and cloud metadata addresses are refused. This blocks requests to internal services (SSRF).
  • Requests time out after 30 seconds, with a 10 second connect timeout.
  • Responses over 50 MB are refused.

File paths

  • Paths containing .. are refused.
  • Paths are resolved with realpath() and must sit inside public://, private:// or temporary://.
  • Files over 50 MB are refused.

Every load throws on failure, so a failed read never reaches the provider as FALSE.

Chat history

The Chat node passes only user and assistant messages from its history input to the model. A system message in the history is dropped, so input cannot replace the system prompt that way.

Chat output

Chat replies have disallowed URLs removed. With Plain text response off, the reply is also re-serialized as HTML.

Access

The JSON endpoints need administer flowdrop. Building workflows needs the same permission in FlowDrop. Anyone who can edit a workflow can choose which models it calls and spend provider credit; grant the permission accordingly.

Reporting

Report security issues through the Drupal security team, not the public issue queue.