2FA

1. 2FA Setup

2FA Secret Cannot be Rotated [P4]

  • 1. Login to the application
    2. Setup two factor authentication
    3. After the 2FA secret is created, observe that there is no way in which the secret can be rotated
    
    - <https://bugcrowd.com/disclosures/0c8a87aa-f10f-4174-b6d8-56c365062910/2fa-secret-is-not-rotated>
    - <https://zofixer.com/what-is-weak-2fa-implementation-2fa-secret-cannot-be-rotated-vulnerability/>

2FA Secret Remains Obtainable After 2FA is Enabled [P4]

  • If Target allows using 2FA authenticator like google authenticator or Microsoft authenticator etc...
    
    Try to Find a path that leaks QR code Or the secret that shows when enable the 2fa authentication
    
    Analyze JS Files and try to understand how the target generate the secret
    
    test if the 2FA secret is still retrievable even after the 2FA feature has been activated by Replay Attacks or something
    
    - <https://bugcrowd.com/vulnerability-rating-taxonomy>
    - <https://github.com/bugcrowd/vulnerability-rating-taxonomy/issues/203>

2FA Setup Logic Flaw [Variant]

Old session does not expire after setup 2FA [P4]

Enable 2FA without verifying the email [ P3 ]

IDOR Leads To ATO [ P2, P3 ]

2. 2FA Bypass

2FA Code is Not Updated After New Code is Requested [ P5 ]

Old 2FA Code is Not Invalidated After New Code is Generated [ P5, P4 ]

2FA Code Leakage in Response [ P3 ]

Lack of Brute-Force Protection [ P4 ]

Missing 2FA Code Integrity Validation [ P3 ]

  • Bypass 2FA with null or 000000 or Blanc [ P3 ]

2FA Referrer Check Bypass | Direct Request [ P2, P3 ]

Misconfiguration of Session permissions [ P4, P3 ]

Lack of rate limit in the user's account when logged in [ P4 ]

Changing the 2FA mode Leads to Bypass the code [ P3 ]

Bypass Using OAUTH [ P5 ]

Random timeout issue on a Two-Step Verification endpoint [ P3 ]

  • Remove the part of the cookie that is responsible for 2FA authentication

3. Disable 2FA

Lack of Brute-Force Protection Disable 2FA [ P4 ]

Disable 2FA via CSRF (Leads to 2FA Bypass) [ P4 ]

Password Reset/Email Check → Disable 2FA [ P5,P4 ]

Logic Bug Disable 2FA [ P3 ]

Backup Code Abuse [ Varient ]

Password not checked when 2FA Disable [ P5, P4 ]

Clickjacking on 2FA Disabling Page [ P4 ]

Last updated