Skip to content
Info disclosure Write-up Beginner

Keybase App Vulnerability: Incomplete Cleanup of Messages In Keybase for Android/iOS - CVE-2021-34421

Exploded messages in Keybase mobile clients remained visible if the app was backgrounded when the explosion occurred. An attacker with access to a conversation could recover sensitive data that was supposed to self-destruct.

Olivia O’Hara Follow

Published on oliviaohara.com

How does this work? When the Keybase desktop client is operating, a user can switch out of Keybase’s Chat tab and put their computer to sleep; if a second user explodes a message in a shared chat during that time, the message will still be visible to the original user when they return to the chat.

Olivia O’Hara (@oliviaohara), Jackson Henry (@JacksonHHax), John Jackson (@johnjhacking), Robert Willis (@rej_ex), on oliviaohara.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 mobile app did not properly refresh or clear the chat view when returning from the background, so exploded messages remained in the local cache.

Impact

An attacker with access to a conversation could potentially recover sensitive data that was supposed to be deleted, though the exploitability is low.

What the attacker needed

Access to a shared chat; victim uses mobile app in background; attacker explodes a message

The fix

The vulnerability was fixed in Keybase version 5.8.0.

How it was found

  1. Create a group chat with other testers.
  2. Access the group chat on a macOS Keybase client.
  3. Optional: Change the conversation retention policy to auto-delete messages after 7 days.
  4. Have other users send test messages. Ensure the macOS machine can see the messages.
  5. On the macOS Keybase client, switch out of the Chat tab and put the machine to sleep.
  6. If you've set a 7-day retention policy, ask another tester to explode any one of the previous messages.

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.

Keybase has a feature where messages can 'explode' or self-destruct after a set time. The bug meant that if you put the app in the background, exploded messages didn't actually disappear from your screen. So someone in the chat could still read messages that were meant to be gone.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Keybase

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.