Skip to content
SSRF Write-up Advanced

How This Team Accidentally Found A Ssrf In Slack Exposing Aws Credentials A 4000 Bug Bounty

A server-side request forgery (SSRF) vulnerability in Slack's spreadsheet processing allowed an attacker to embed a remote OLE object that caused LibreOffice to fetch an external file, exposing AWS credentials. The researchers demonstrated this by retrieving the contents of a local file containing secret keys.

Roberto Follow

Published on infosecwriteups.com

This is an inspiring story for all bug bounty hunters of how a SSRF vulnerability was discovered in Slack, along with potentially many other web applications, by Brett Buerhaus, Cody Brocious, Sam Erb, and Olivier Beg’s. I will be detailing a more user-friendly version of their detailed “A Tale of Exploitation in…

Roberto, on infosecwriteups.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

Impact

An attacker could read local files on the server, including AWS credentials, potentially leading to further compromise of Slack's infrastructure; Slack confirmed no customer data was accessed.

What the attacker needed

Ability to upload a spreadsheet to Slack; Slack uses LibreOffice for conversion

The fix

The vulnerability was fixed within 24 hours of the report, likely by sandboxing or disabling automatic external link updates during file conversion.

How it was found

  1. Fingerprint the application to identify that it uses LibreOffice for spreadsheet processing.
  2. Create a malicious spreadsheet with an embedded OLE object that contains an external link (xlink-href) pointing to a local file.
  3. Upload the spreadsheet to the target application (Slack) to trigger conversion.
  4. Retrieve the converted output, which includes the contents of the local file (e.g., AWS credentials).

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.

When you upload a spreadsheet to Slack, Slack uses a program called LibreOffice to convert it. The researchers found that they could put a special link inside the spreadsheet that made LibreOffice fetch a file from the server itself, like a password file. This is called SSRF: tricking a server into making requests to internal resources. Because Slack's servers had AWS keys stored in a file, the attackers could read those keys and potentially access Slack's cloud infrastructure.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Roberto

View all

10 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.