Skip to content
RCE Write-up Intermediate

1-click RCE on Keybase

Keybase clients allowed chat messages to contain links with arbitrary URL schemes and arbitrary display text. On Windows, an attacker could send a link that looked harmless but, when clicked, executed arbitrary commands on the victim's system.

shielder.com

Published on shielder.com

Keybase clients allowed to send links in chats with arbitrary schemes and arbitrary display text. On Windows it was possible to send an apparently harmless link which, when clicked, could execute arbitrary commands on the victim’s system.

The author, on shielder.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

Likely the client accepted arbitrary URL schemes in chat links and displayed attacker-controlled text instead of the real destination, so a dangerous scheme could be disguised as a harmless link.

Impact

An attacker could achieve remote code execution on a Windows victim who clicked a crafted link in a chat message.

What the attacker needed

Keybase client on Windows; attacker can send a chat message; victim clicks the link

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.

A chat app let people put links in messages, and it did not check what kind of link it was or whether the text shown matched the real destination. On Windows, a link could point to a special system handler that runs programs, so clicking a link that looked safe could start malicious code. The attacker only needed to send a message and get the victim to click.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.