Skip to content
Memory corruption Disclosed report Advanced

Linux Desktop application slack executable does not use pie / no ASLR

The Slack Linux desktop binary is built as a non-position-independent executable, so it loads at a fixed address and full ASLR is not available. The reporter argues this makes a memory corruption bug easier to turn into code execution, though no such bug is demonstrated.

hanno Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Triaged in 32 hours
  • Fixed in 13 months
  • Paid in 13 months
  • Disclosed after 14 months

The slack binary from the Linux desktop application is no position independent executable:

$ file usr/lib/slack/slack usr/lib/slack/slack: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped

(pie executables report either "LSB shared object" or "LSB pie executable".)

Position independent executables are required for full ASLR support on Linux. Non-pie-binaries are loaded to a fixed location, thus allowing ROP attacks.

I'm aware that technically this is not a vulnerability, but a lack of a hardening feature. However given that ASLR is generally considered standard practice these days and that lack of it can mean very simple bugs can directly lead to code execution I think it deserves to be fixed.

Impact

A simple memory corruption bug like a buffer overflow can easily lead to a remote code execution bug. With ASLR these bugs are much harder and sometimes impossible to exploit.

The original report as published on HackerOne, by hanno. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the Slack binary was compiled without position-independent executable support, so the loader places it at a fixed base address.

Impact

If a memory corruption bug existed in the binary, the lack of ASLR could make exploitation simpler, but the report does not show such a bug.

What the attacker needed

A memory corruption bug in the binary

The fix

The binary should be rebuilt as a position-independent executable so that full ASLR applies.

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 report has not been written yet. The Original tab links to the source.

When a program starts, the operating system decides where in memory to put it. A hardening feature called ASLR randomises that location so attackers cannot rely on fixed addresses. This report says the Slack program is built in a way that stops that randomisation, which would make certain attacks easier if the program also had a memory bug.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by hanno

View all

13 more disclosed reports, best first.

More from Slack

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.