Rapid7 Vulnerability & Exploit Database

GitLens Git Local Configuration Exec

Back to Search

GitLens Git Local Configuration Exec

Disclosed
11/14/2023
Created
04/19/2024

Description

GitKraken GitLens before v.14.0.0 allows an untrusted workspace to execute git commands. A repo may include its own .git folder including a malicious config file to execute arbitrary code. Tested against VSCode 1.87.2 with GitLens 13.6.0 on Ubuntu 22.04 and Windows 10

Author(s)

  • h00die
  • Paul Gerste

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/fileformat/gitlens_local_config_exec
msf exploit(gitlens_local_config_exec) > show targets
    ...targets...
msf exploit(gitlens_local_config_exec) > set TARGET < target-id >
msf exploit(gitlens_local_config_exec) > show options
    ...show and set options...
msf exploit(gitlens_local_config_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;