Skip to content
DoS Write-up Advanced

2 Zero-Days in sliver! What if I found your Sliver payload?

Two vulnerabilities in the Sliver C2 framework: a nil pointer dereference that crashes the server when a malformed BeaconRegister message omits a nested field, and an unauthenticated memory exhaustion flaw where the server allocates a buffer based on a length prefix before verifying the message signature. An attacker with a valid implant certificate could crash the entire C2 server or exhaust its memory, disrupting all active sessions.

skoveit Follow

Published on medium.com

I’ve been working on a feature to allow operators to move a running implant between servers on the fly; no fresh builds, no re-execution.

skove, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The server failed to check for a nil nested message before accessing its fields, and it allocated memory based on an unverified length prefix before checking the message signature.

Impact

An attacker with a valid implant certificate could crash the entire C2 server or exhaust its memory, disrupting all active sessions; HTTP transport was protected by Go's built-in recover middleware, but mTLS, WireGuard, and DNS transports were not.

What the attacker needed

Valid implant certificate; network access to C2 server

The fix

The vulnerabilities were fixed according to the official advisories.

How it was found

  1. Craft a BeaconRegister payload with the Register field omitted.
  2. Send the payload over mTLS, WireGuard, or DNS transport.
  3. Observe the server crash and all sessions drop.
  4. Connect with a valid implant certificate.
  5. Open 128 parallel Yamux streams and send a fake length prefix claiming 2 GiB on each.
  6. Watch the server attempt to allocate ~256 GiB and get killed by the OOM killer.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Sliver is a command-and-control (C2) server used by security teams to simulate attackers. The first bug lets someone send a specially crafted message that makes the server crash because it tries to use a missing piece of data. The second bug lets someone trick the server into reserving huge amounts of memory, causing it to run out and be killed by the operating system.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.