module

GitLens Git Local Configuration Exec

Disclosed
Nov 14, 2023
Created
Apr 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

Authors

h00die
Paul Gerste

Architectures

cmd

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

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.