Home Page | Skip to Navigation | Skip to Content | Skip to Search | Skip to Footer

Preemptive Protection against LizaMoon - Mass SQL Injection Attacks

Subscribe

Check Point Reference: CPAI-2011-212
Date Published:
Preemptive Since:
Severity:
Source: IPS Research Center
Protection Provided by: Security Gateway
  • R75
  • R71
  • R70
Who is Vulnerable?
SQL Databases with Web-based front end
Vulnerability Description
LizaMoon is a mass SQL code injection attack, where a Web application vulnerability is exploited to inject malicious code into affected websites. If a Web surfer visits an infested site, he will be redirected to an alternate website that tries to install a rogue anti-malware software. This malicious code performs a fake scan of the system and indicates that there is a large number of detected malware threats in it. By clicking "Remove All" to eradicate the non-existent threats, the user actually downloads the real malware instead. The Rogue AV software that is installed by LizaMoon is called Windows Stability Center.
Vulnerability Details
IPS is able to block the two phases of the LizaMoon attack:

Propagation - The LizaMoon propagation through Web servers can be blocked by activating the IPS SQL injection protection. IPS looks for SQL commands in forms and in URLs. If it finds them, the connection is rejected and a customizable web page can be displayed.

Client infection - The injection plants a redirection to a URL which affects the client. The General HTTP Worm Catcher is able to block this attack through a simple configuration.

Protection Overview
The protections will detect and block the propagation and client infection of the LizaMoon attack. Check Point users have been protected against this type of attack since July 2004: CPSA-2004-02. No update is required to address this issue.

To configure the defense, select your product from the list below and follow the related protection steps.

Security Gateway: R75

How Can I Protect My Network?
In order to block the LizaMoon propagation:
1. In the IPS tab, click Protections > By Protocol > IPS Software Blade Web Intelligence > Application Layer.
2. In the right pane, double-click the SQL Injection protection.
3. In the Protection Details window, click on Edit. Choose the protection's Action (Override IPS Policy with: Prevent/Detect), and apply Additional Settings
4. Install policy on all modules.

In order to block the LizaMoon Client infection: 
1. In the IPS tab, click Protections > By Protocol > IPS Software Blade Web Intelligence > Malicious Code.
2. In the right pane, double-click the General HTTP Worm Catcher protection.
3. In the Protection Details window, click on Edit. Choose the protection's Action (Override IPS Policy with: Prevent/Detect), and apply Additional Settings. You can either choose to apply the protections to all HTTP traffic or only to selected web servers.
4. In the General HTTP Worm Catcher configuration pane, under Worm Patterns, click on Edit.
5. The HTTP General Worm Pattern Definitions pane opens. Click on Add. Give the pattern a name: LizaMoon.
6. Under Pattern string, write the following regular expression: /ur\.php and click OK. The new defined pattern will now appear in the Worm Patterns list.
7. Install policy on all modules.

How Do I Know if My Network is Under Attack?
SmartView Tracker will log the following entries:

Attack Name: SQL Injection
Attack Information: SQL injection detected in URL

Attack Name: HTTP Worm Catcher
Attack Information: LizaMoon

Security Gateway: R70/R71

How Can I Protect My Network?
In order to block the LizaMoon propagation:
1. In the IPS tab, click Protections > By Protocol > Web Intelligence > Application Layer.
2. In the right pane, double-click the SQL Injection protection.
3. In the Protection Details window, click on Edit. Choose the protection's Action (Override IPS Policy with: Prevent/Detect), and apply Additional Settings
4. Install policy on all modules.

In order to block the LizaMoon Client infection: 
1. In the IPS tab, click Protections > By Protocol > Web Intelligence > Malicious Code.
2. In the right pane, double-click the General HTTP Worm Catcher protection.
3. In the Protection Details window, click on Edit. Choose the protection's Action (Override IPS Policy with: Prevent/Detect), and apply Additional Settings. You can either choose to apply the protections to all HTTP traffic or only to selected web servers.
4. In the General HTTP Worm Catcher configuration pane, under Worm Patterns, click on Edit.
5. The HTTP General Worm Pattern Definitions pane opens. Click on Add. Give the pattern a name: LizaMoon.
6. Under Pattern string, write the following regular expression: /ur\.php and click OK. The new defined pattern will now appear in the Worm Patterns list.
7. Install policy on all modules.

How Do I Know if My Network is Under Attack?
SmartView Tracker will log the following entries:

Attack Name: SQL Injection
Attack Information: SQL injection detected in URL

Attack Name: HTTP Worm Catcher
Attack Information: LizaMoon