mirror of https://github.com/zulip/zulip.git
0c2cc41d2e
A bug in Zulip's new user signup process meant that users who registered their account using social authentication (e.g. GitHub or Google SSO) in an organization that also allows password authentication could have their personal API key stolen by an unprivileged attacker, allowing nearly full access to the user's account. Zulip versions between 1.7.0 and 2.0.6 were affected. This commit fixes the original bug and also contains a database migration to fix any users with corrupt `password` fields in the database as a result of the bug. Out of an abundance of caution (and to protect the users of any installations that delay applying this commit), the migration also resets the API keys of any users where Zulip's logs cannot prove the user's API key was not previously stolen via this bug. Resetting those API keys will be inconvenient for users: * Users of the Zulip mobile and terminal apps whose API keys are reset will be logged out and need to login again. * Users using their personal API keys for any other reason will need to re-fetch their personal API key. We discovered this bug internally and don't believe it was disclosed prior to our publishing it through this commit. Because the algorithm for determining which users might have been affected is very conservative, many users who were never at risk will have their API keys reset by this migration. To avoid this on self-hosted installations that have always used e.g. LDAP authentication, we skip resetting API keys on installations that don't have password authentication enabled. System administrators on installations that used to have email authentication enabled, but no longer do, should temporarily enable EmailAuthBackend before applying this migration. The migration also records which users had their passwords or API keys reset in the usual RealmAuditLog table. |
||
---|---|---|
.. | ||
ci | ||
circleci | ||
documentation_crawler | ||
droplets | ||
i18n | ||
lib | ||
linter_lib | ||
setup | ||
test-install | ||
tests | ||
zulip-export | ||
README.md | ||
__init__.py | ||
build-docs | ||
build-release-tarball | ||
cache-zulip-git-version | ||
check-capitalization | ||
check-frontend-i18n | ||
check-issue-labels | ||
check-openapi | ||
check-provision | ||
check-templates | ||
clean-branches | ||
clean-repo | ||
commit-message-lint | ||
commit-msg | ||
conf.ini-template | ||
coveragerc | ||
create-test-api-docs | ||
deploy-branch | ||
diagnose | ||
django-template-graph | ||
do-destroy-rebuild-database | ||
do-destroy-rebuild-test-database | ||
documentation.vnufilter | ||
fetch-pull-request | ||
fetch-rebase-pull-request | ||
find-add-class | ||
find-unused-css | ||
get-handlebar-vars | ||
html-grep | ||
js-dep-visualizer.py | ||
lint | ||
pre-commit | ||
pretty-print-html | ||
provision | ||
push-to-pull-request | ||
release-tarball-exclude.txt | ||
renumber-migrations | ||
replacer | ||
reset-to-pull-request | ||
review | ||
run-dev.py | ||
run-mypy | ||
run-tsc | ||
run-yarn-deduplicate | ||
setup-git-repo | ||
show-profile-results | ||
stop-run-dev | ||
test-all | ||
test-api | ||
test-backend | ||
test-documentation | ||
test-emoji-name-scripts | ||
test-help-documentation | ||
test-js-with-casper | ||
test-js-with-node | ||
test-locked-requirements | ||
test-migrations | ||
test-queue-worker-reload | ||
test-run-dev | ||
test-tools | ||
update-authors-json | ||
update-locked-requirements | ||
update-prod-static | ||
update-zuliprc-api-field | ||
webpack | ||
webpack-helpers.ts | ||
webpack.assets.json | ||
webpack.config.ts | ||
zanitizer | ||
zanitizer_config.pm.sample |
README.md
This directory contains scripts that are used in building, managing,
testing, and other forms of work in a Zulip development environment.
Note that tools that are also useful in production belong in
scripts/
or should be Django management commands.
For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.