Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats

[Honeypot Alert] FHS Null Byte Attack (CVE-2014-6287) Attempts to Install DDoS Malware (Iptablex)

Our web honeypots picked up some exploit attempts for CVE-2014-6287 which is a command execution vulnerability in the Rejetto HTTP File Server (aks HFS or HttpFileServer) product. Here is PoC vulnerability details from PacketStorm:

8291_20e60002-0493-4cba-9017-fe69fa462362

Honeypot Attack Example

One of our web honeypot systems located in Berlin, Germany received an attack from a system in China:

7955_102c6a17-128c-4444-bfa1-c69cdb324bef

Here is a screenshot from the ModSecurity audit log entry for the attack:

12392_e8411223-d79b-4388-a87e-2c2780d9abfe

The yellow highlighted section shows the Null Byte character being used to initiate the Windows OS command execution payload. The blue highlighted section is the payload of the attack which is using Microsoft VBScripting.

VBScript Exploit Payload

Here is what the VBScript code looks like once it is urldecoded and beautified for readability:

11803_ca7739fe-95ea-4ed3-8dc2-11a1fb78719c

Here is a breakdown of what this attack script is doing:

  • The command uses "cmd.exe" to create a VBScript called "22222.vbs".
  • Script uses XML HTTP Requests (XHR) to try and connect to two different malware repository hosts (123.108.109.100 and 178.33.196.164) on ports 53 (DNS), 80 (HTTP) and 443 (HTTPS). As of this morning, only the 178.33.196.164 host was online. This is a server located in Paris, France.

11868_cd55ae5f-7859-400b-a8b1-7b5ac3108e41

  • The XHR connections try and download a file called "getsetup.exe" and save it locally as a file called "ko.exe".

11109_a955c502-e52c-4d05-9da2-1d74a3148a56

  • The script then tries to execute the "ko.exe" script.
  • Finally the script deletes itself.

getsetup.exe Analysis

I checked the file hash and found that there are details from a previous upload on the Malwr site:

9181_4d9f465f-13ba-4b6b-a917-9f557680ef7a
Fortunately, AV detection rates seem pretty good:

8380_269efddb-6e98-4c13-a59e-f0091733d1a9

In digging a bit deeper, it appears that this program is also known as "Iptables/Iptablex" and is a DDoS botnet tool as outlined in this presentation from Avast:

10287_81bd27dd-f4d3-4151-92ad-1e6d9ee7343e

Mitigations

Update Software

The first step in preventing these types of exploits is to ensure that your software is up to date on patches. You can download the HFS software updates with the patches here.

Scan for Vulnerabilities

If you want to check your systems to see if your FHS version is vulnerable, you can also use this Metasploit module.

Use a Web Application Firewall (WAF)

As we showed from the honeypot alert, using a WAF can help to prevent 0-day exploits such as this one by generically identifying attack payloads that have:

  • Null Bytes
  • OS Command Injections

Verify Network Firewall Egress Rules

The full attack chain sequence will work only if exploited web servers are able to initiate OUTBOUND connections to malware repository sites. Organizations should implement egress firewall rules that prevent web servers from initiating outbound connections (except perhaps to authorized locations).

ABOUT TRUSTWAVE

Trustwave is a globally recognized cybersecurity leader that reduces cyber risk and fortifies organizations against disruptive and damaging cyber threats. Our comprehensive offensive and defensive cybersecurity portfolio detects what others cannot, responds with greater speed and effectiveness, optimizes client investment, and improves security resilience. Learn more about us.

Latest Intelligence

Discover how our specialists can tailor a security program to fit the needs of
your organization.

Request a Demo