“email” MFA mode allows bypassing MFA from victim’s device when the device trust is not expired

Program: grammarly Bug Type: MFA Bounty: 2500 Date: 2019-08-02
2FA MFA-bypass

Summary

The researcher found a vulnerability in grammarly that lets an attacker login by skipping the 2FA step. This exploitation could only be done based on certain conditions. When a user performs a signin/signup, the device from which the action was performed becomes trusted. These devices identify themselves by tdi cookies. The vulnerability allowed bypassing MFA when the following conditions are met:

  1. Login request was made from the device with the same tdi cookie and UserAgent header.
  2. Login request was made when the device's trust wasn't expired.

Due to the complexity of the exploitation, the report was triaged as a Medium.

References