module

GitLab GitHub Repo Import Deserialization RCE

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

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 RedWay Security

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 /(2) > show actions
        ...actions...
    msf /(2) > set ACTION < action-name >
    msf /(2) > show options
        ...show and set options...
    msf /(2) > run
  
Title
NEW

Explore Exposure Command

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