Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Document situations where one needs smokescreen.

Tim Abbottd58931e2b5a5
diff --git a/docs/production/requirements.md b/docs/production/requirements.md
index 39881ce9ef8..99792c930f9 100644
--- a/docs/production/requirements.md
+++ b/docs/production/requirements.md
@@ -80,9 +80,7 @@ on hardware requirements for larger organizations.
that Zulip can properly manage image and website previews and mobile
push notifications. Outgoing Internet access is not required if you
[disable those
- features](https://zulip.com/help/allow-image-link-previews), or
- configure an [existing outgoing HTTP
- proxy](../production/deployment.html#using-an-outgoing-http-proxy).
+ features](https://zulip.com/help/allow-image-link-previews).
* Outgoing SMTP access (usually port 587) to your [SMTP
server](../production/email.md) so that Zulip can send emails.
* A domain name (e.g. `zulip.example.com`) that your users will use to
@@ -93,7 +91,13 @@ on hardware requirements for larger organizations.
address as its external hostname (though we don't recommend that
configuration).
* Zulip supports [running behind a reverse proxy][reverse-proxy].
+* Zulip servers running inside a private network should configure the
+ [`smokescreen` integration][smokescreen-proxy] to protect against
+ [SSRF attacks][SSRF], where users could make the Zulip server make
+ requests to private resources.
+[SSRF]: https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
+[smokescreen-proxy]: ../production/deployment.html#using-an-outgoing-http-proxy
[reverse-proxy]: ../production/deployment.html#putting-the-zulip-application-behind-a-reverse-proxy
[email-mirror-code]: https://github.com/zulip/zulip/blob/master/zerver/management/commands/email_mirror.py
diff --git a/docs/production/security-model.md b/docs/production/security-model.md
index 56fecd2998b..69b2ad4c244 100644
--- a/docs/production/security-model.md
+++ b/docs/production/security-model.md
@@ -195,7 +195,7 @@ strength allowed is controlled by two settings in
organization owners. They can only be created on the command
line (via `manage.py change_user_role can_forge_sender`).
-## User-uploaded content
+## User-uploaded content and user-generated requests
* Zulip supports user-uploaded files. Ideally they should be hosted
from a separate domain from the main Zulip server to protect against
@@ -243,6 +243,18 @@ strength allowed is controlled by two settings in
messages when a message contains a link to an image. You can
control this using the `INLINE_IMAGE_PREVIEW` setting.
+* A Zulip server can make outgoing HTTP requests through features like
+ outgoing webhooks and embedded video previews. End users have
+ (limited) control the content of these HTTP requests. As a result,
+ Zulip supports routing these outgoing requests [through
+ `smokescreen`][smokescreen-setup] to ensure that Zulip cannot be
+ used to execute [SSRF attacks][SSRF] against other systems on an
+ internal corporate network. The default `smokescreen` configuration
+ denies access to all non-public IP addresses, including 127.0.0.1.
+
+[SSRF]: https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
+[smokescreen-setup]: ../production/deployment.html#using-an-outgoing-http-proxy
+
## Final notes and security response
If you find some aspect of Zulip that seems inconsistent with this