Skip to content
RCE Disclosed report Intermediate

Arbitrary local code execution via DLL hijacking from executable installer

The Brave installer for Windows loads a DLL named version.dll from the user's Downloads folder instead of the system directory, allowing an attacker who places a malicious DLL there to execute arbitrary code when the installer runs.

skanthak Follow

Originally disclosed on HackerOne

Medium 5.6 View original
  • Disclosed after 9 months

NOTE! Thanks for submitting a report! Please fill all sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to verify and then potentially issue a bounty.

Summary:

The executable installer BraveSetup-ia32.exe is vulnerable to DLL hijacking: it loads (at least) version.dll from its application directory (which is typically the user's "Downloads" directory %USERPROFILE%\Downloads) instead Windows' system directory %SystemRoot%\System32

Products affected:

Windows 7 and newer versions, Brave version 0.18.36

Steps To Reproduce:

Place the attached version.dll in %USERPROFILE%\Downloads, download the current BraveSetup-ia32.exe and execute it: version.dll displays message boxes showing its caller.

Supporting Material/References:

See https://skanthak.homepage.t-online.de/sentinel.dll

The original report as published on HackerOne, by skanthak. 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

The installer uses a DLL search path that includes the application directory before the system directory, so a DLL placed alongside the executable is loaded.

What the attacker needed

Write access to the user's Downloads folder; user runs the installer

How it was found

  1. Place the malicious version.dll in the user's Downloads folder.
  2. Download the current BraveSetup-ia32.exe.
  3. Execute the installer, which loads the DLL and displays message boxes.

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, it often loads extra code from DLL files. This installer looks for one such file in the folder it was run from, which is usually the Downloads folder. If an attacker can put a fake DLL with the same name there, their code runs with the installer's permissions.

What is RCE?

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

More by skanthak

View all

1 more disclosed report, best first.

More from Brave Software

View all

The newest disclosed reports for this program.

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.