module

GitLab GitHub Repo Import Deserialization RCE

Disclosed
2022-10-06
Created
2023-02-15

Description

An authenticated user can import a repository from GitHub into GitLab.
If a user attempts to import a repo from an attacker-controlled server,
the server will reply with a Redis serialization protocol object in the nested
`default_branch`. GitLab will cache this object and
then deserialize it when trying to load a user session, resulting in RCE.

Authors

William Bowling (vakzz)
Heyder Andrade https://infosec.exchange/@heyder
RedWay Security https://infosec.exchange/@redway

Platform

Linux,Unix

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/http/gitlab_github_import_rce_cve_2022_2992
msf exploit(gitlab_github_import_rce_cve_2022_2992) > show targets
...targets...
msf exploit(gitlab_github_import_rce_cve_2022_2992) > set TARGET < target-id >
msf exploit(gitlab_github_import_rce_cve_2022_2992) > show options
...show and set options...
msf exploit(gitlab_github_import_rce_cve_2022_2992) > 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.