Skip to content
Access control Write-up Beginner

Vulnerability Summary#

Signal Desktop on Windows executed a binary from a world-writable path (c:\node_modules\.bin\wmic.exe) during startup. A low-privileged local user could place a malicious executable there, which would then run with the privileges of any user who launched Signal.

blog.mirch.io

Published on blog.mirch.io

Signal Desktop v1.29 on Windows is vulnerable to an elevation of privilege vulnerability. During the startup the application will execute the c:\nodemodules\.bin\wmic.exe binary if it exists.

rich, on blog.mirch.io

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 application searched for and executed a binary from a directory writable by low-privileged users without validating its origin or integrity.

Impact

A low-privileged local user could execute arbitrary code with the privileges of any other user who starts Signal Desktop, potentially leading to full system compromise.

What the attacker needed

Local access to the Windows machine; ability to create folders at the root of a drive

The fix

The vulnerability was fixed in version 1.29.1 by commit 2da39c.

How it was found

  1. Create the folder c:\node_modules\.bin
  2. Copy a test executable (e.g., calc.exe) into that folder and name it wmic.exe
  3. Open Signal Desktop as any user; the copied executable runs

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.

On Windows, some folders like the root of the C: drive can be created by any user. Signal Desktop looked for a program called wmic.exe in such a folder and ran it automatically when it started. A normal user could put their own program there, and it would run with the rights of whoever opened Signal, letting them do more than they should.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.