python-zulip-api/zulip_botserver/tests
Robert Hönig f4e0808a87 botserver: Validate token before accepting message.
Previously, the botserver would accept any message sent
to it. This was a security hazard, since an attacker could
impersonate arbitrary users with arbitrary messages. We only
want the Zulip instance where a bot is registered to be able
to send out messages for that bot. To do this, this commits
adds a check for the security token associated with each
outgoing webhook bot. For each bot, its token is stored in
the botserverrc file. The server sends the token along with
each message.
2018-05-30 09:37:33 -04:00
..
__init__.py mypy: zulip_botserver: Fix errors in tests/__init__.py. 2017-10-27 00:56:16 -04:00
server_test_lib.py botserver: Strip messages like we do in zulip-run-bot. 2018-05-29 10:05:19 +02:00
test.conf botserver: Validate token before accepting message. 2018-05-30 09:37:33 -04:00
test_server.py botserver: Validate token before accepting message. 2018-05-30 09:37:33 -04:00