HomePhabricator

Consistently require MFA on the actual user creation flow

Description

Consistently require MFA on the actual user creation flow

Summary:
See https://hackerone.com/reports/351361. We currently require MFA on the screen leading into the user create flow, but not the actual create flow.

That is, /people/create/ (which is just a "choose a type of account" page) requires MFA, but /people/new/<type>/ does not, even though this is the actual creation page.

Requiring MFA to create users isn't especially critical: creating users isn't really a dangerous action. The major threat is probably just that an attacker can extend their access to an install by creating an account which they have credentials for.

It also isn't consistently enforced: you can invite users or approve users without an MFA check.

So there's an argument for just removing the check. However, I think the check is probably reasonable and that we'd likely prefer to add some more checks eventually (e.g., require MFA to approve or invite) since these actions are rare and could represent useful tools for an attacker even if they are not especially dangerous on their own. This is also the only way to create bot or mailing list accounts, so this check does something on its own, at least.

Test Plan:

  • Visited /people/new/standard/ as an admin with MFA configured.
  • Before patch: no MFA prompt.
  • After patch: MFA prompt.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D19448

Details

Provenance
epriestleyAuthored on May 14 2018, 1:55 PM
epriestleyPushed on May 14 2018, 7:03 PM
Reviewer
amckinley
Differential Revision
D19448: Consistently require MFA on the actual user creation flow
Parents
rP26d0862f4f6f: Apply the new patch byte size limit to mail patch generation in Differential
Branches
Unknown
Tags
Unknown
Build Status
Buildable 20331
Build 27609: Run Core Tests