Skip to content
GitLab
Next
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,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and 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
  • #337591
Closed
Open
Issue created Aug 04, 2021 by Philippe Lafoucrière@plafoucriereMaintainer0 of 6 checklist items completed0/6 checklist items

Notification emails for Personal Access Token creation

Release notes

The creation of Personal Access Tokens is a critical event that should be carefully reviewed by users. They can allow read-write actions on all the projects the user has access to if the scope is api for example. GitLab will now send notifications to the user every time a token is created for their account.

Problem to solve

It's a basic security best practice. As demonstrated by @dcouture in his (great) video (internal), attackers can leverage vulnerabilities to create PATs for accounts visiting a page with a crafted comment. The victim doesn't have to do anything apart from visiting the page, and they won't notice anything suspicious unless they keep the network view of their browser open (of course, no one does that on a daily usage).

Proposal

Sending notifications would at least let the user know something happened with their account, and they can report the malicious activity faster, and revoke the created token right away.

Edited Aug 04, 2021 by Philippe Lafoucrière
Assignee
Assign to
Time tracking