Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(check): Include more action names in various checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Apr 4, 2016
1 parent 92a0008 commit a8f5892
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,34 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// Actions that, if allowed, would allow an attacker
// to try a candidtate password against an account.
var PASSWORD_CHECKING_ACTION = {
accountLogin: true,
accountDestroy: true,
passwordChange: true,
}

// Actions that, if allowed, would allow an attacker
// to check whether an account exists for a particular user.
// Basically any unauthenticated endpoint that takes
// an email address as input.
var ACCOUNT_STATUS_ACTION = {
accountCreate: true,
accountLogin: true,
accountDestroy: true,
accountLock: true,
accountUnlockResendCode: true,
passwordChange: true,
passwordForgotSendCode: true,
accountStatusCheck: true
}

// Actions that send an email, and hence might make
// us look like spammers if abused.
var EMAIL_SENDING_ACTION = {
accountCreate: true,
accountUnlockResendCode: true,
recoveryEmailResendCode: true,
passwordForgotSendCode: true,
passwordForgotResendCode: true
Expand Down

0 comments on commit a8f5892

Please sign in to comment.