CVE-2024-39930
CRITICALGogs < 0.13.0 - Authenticated Remote Code Execution via SSH --split-string Argument Injection
Title source: llmExploitation Summary
EIP tracks 5 public exploits for CVE-2024-39930. PoCs published by cybersploit, adminlove520, laachy.
AI-analyzed exploit summary This exploit leverages an SSH argument injection vulnerability in Gogs (CVE-2024-39930) to achieve remote code execution. It automates the process of obtaining an API token, creating a repository, adding an SSH key, and executing arbitrary commands via a crafted SSH session.
Description
The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution. Authenticated attackers can exploit this by opening an SSH connection and sending a malicious --split-string env request if the built-in SSH server is activated. Windows installations are unaffected.
Exploits (5)
This exploit leverages an SSH argument injection vulnerability in Gogs (CVE-2024-39930) to achieve remote code execution. It automates the process of obtaining an API token, creating a repository, adding an SSH key, and executing arbitrary commands via a crafted SSH session.
The repository contains functional exploit code for CVE-2024-39930, including a Python script (`exploit.py`) that demonstrates the vulnerability. The exploit targets an authentication bypass in TOTOLINK devices by manipulating the `authCode` parameter.
This repository contains a functional PoC for CVE-2024-39930, which mitigates ptrace-based detection by intercepting and denying specific execve syscalls. The code uses ptrace to monitor and manipulate process execution, particularly targeting commands with split-string options.
This repository contains a functional exploit for CVE-2024-39930, targeting Gogs versions <= 0.13.0. The exploit leverages SSH argument injection to achieve remote code execution by uploading an SSH key and executing commands via the git-upload-pack mechanism.
This repository contains a functional exploit for CVE-2024-39930, targeting Gogs' SSH server to achieve remote code execution (RCE) via argument injection. The exploit automates API token acquisition, repository creation, SSH key management, and command execution through a crafted SSH session.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H