Skip to content

Commit 0ee3aff

Browse files
authored
Address security
1 parent c9d4b16 commit 0ee3aff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ Here is a link you can use to invite a public instance run by [@frozolotl](https
4040

4141
Note: the bot may be limited from joining more servers because we require the message content (since slash commands don't support code blocks) and Discord denied verification, so we are limited to 100 servers. Accordingly, we request that you remove the bot from your servers if you are not using it anymore.
4242

43+
### Is it safe to host? Is it true that Typst allows arbitrary code execution?
44+
45+
Typst is fundamentally a sandboxed, interpreted language so there is no such thing as "arbitrary code execution".
46+
However, Typst documents/code can access the host environment in a limited capacity.
47+
In CLI usage, documents can read files (e.g., images) inside the project directory and download packages from the typst packages repo.
48+
For the bot, only the latter is allowed. Resource exhaustion and DOS attacks are also somewhat addressed with timeouts and automatic restarting on crash.
49+
If you are paranoid, I suggest to set up adequate sandboxing on the host (which you should do for everything anyway) -- for example with Docker or systemd sandboxing.
50+
4351
## License
4452

4553
AGPL. Use `?source` to get a link to the source from deployments of the bot.

0 commit comments

Comments
 (0)