Exploit database

Vulnerability

CVE-2013-4490

Vulnerability details

Score
6.5
Severity
medium

CVSS 2.0 · NVD

Vector string

AV:N/AC:L/Au:S/C:P/I:P/A:P

Description

The SSH key upload feature (lib/gitlab_keys.rb) in gitlab-shell before 1.7.3, as used in GitLab 5.0 before 5.4.1 and 6.x before 6.2.3, allows remote authenticated users to execute arbitrary commands via shell metacharacters in the public key.

CVE Program

Exploit source choices

2 sources
Gitlab-shell Code Execution
MSF-multi--http--gitlab_shell_execMetasploitLinux,Python,Unix / remote

This module takes advantage of the addition of authorized ssh keys in the gitlab-shell functionality of Gitlab. Versions of gitlab-shell prior to 1.7.4 used the ssh key provided directly in a system call resulting in a command injection vulnerability. As this relies on adding an ssh key to an account, valid credentials are required to exploit this vulnerability.

2013-11-04gitlab_shell_exec.rb