Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,163
    • Issues 44,163
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,484
    • Merge requests 1,484
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #16826
Closed
Open
Created Jan 03, 2017 by Adrian@Adrian_G2

Audit log does not show 2-factor failed logins

Summary

This bug happens on GitLab.com

Failed 2-factor logins where the password is correctly entered but the second factor is not valid do not show up in the user-accessible audit log available at https://gitlab.com/profile/audit_log

They should appear because this means a possible security warning is not flagged for an user to inspect - someone knows the account password but doesn't have access to the second factor. This happens for both the traditional Authenticator App as second factor and for FIDO U2F authentication.

i tried on purpose to login with the correct password but to fail the 2-factor login on my account with both a randomly entered code and an unregistered Yubikey and neither of these failures caused an event to appear in the audit log.

Steps to reproduce

  • try to login with a 2-factor enabled account.
  • enter the password correctly but enter random incorrect numbers in the App code field or use a U2F key that's not associated with the account.

Expected behavior

i'd expect to see a failed login event in the audit log that says the password was correct but the second factor was not.

Actual behavior

no failed login events appear in the audit log

Possible fixes

show failed logins in the audit log when the password was correctly entered but the second factor was not correct.

Assignee
Assign to
Time tracking