7-Hour Window for Patch

Tuesday, November 4, 2014 @ 12:11 PM gHale

Drupal-based websites that did not patch in seven hours after the disclosure of a “highly critical” SQL injection (SQLi) hole disclosed October 15 should consider themselves compromised, the content management tool’s developers said.

Attacks against the vulnerability (CVE-2014-3704) in version seven of the content management system began “hours” after news detailing how the easily exploitable bug granted full control including the execution of malicious code to attackers.

Bypassing an Air Gap via Radio
Air Gap Beaten by Printer
ICS Attack Responses
Espionage Group Targets NATO, EU

The flaw allowed remote unauthenticated attackers to inject arbitrary SQL queries through an API designed to prevent SQLi attacks, said SektionEins, who discovered the flaws in a blog post.

Drupal Security Engineers Michael Hess and Bevan Rudge said because they assumed hackers compromised sites, patching was now not enough and restoring only from backups would ensure security.

“You should proceed under the assumption that every Drupal 7 website was compromised unless updated or patched before Oct 15, 11pm UTC, that is seven hours after the announcement,” Drupal’s security engineers said in an advisory.

“Updating to version 7.32 or applying the patch fixes the vulnerability but does not fix an already compromised website. Removing a compromised website’s backdoors is difficult because it is not possible to be certain all backdoors have been found. The Drupal security team recommends if your (hosting provider) did not patch Drupal for you or otherwise block the SQL injection attacks within hours of the announcement, restore your website to a backup from before 15 October 2014.”

The two engineers warned system administrators to stop reading the announcement mid-way, patch, and continue reading.

“If you have not updated or applied this patch, do so immediately, then continue reading this announcement.”

They warned that sites unexpectedly patched to Drupal version 7.32 could indicate compromise since attackers had been applying the fixes to lock out rivals.

Drupal Offers Remediation Tips:
1. Take the website offline by replacing it with a static HTML page
2. Notify the server’s administrator emphasizing that other sites or applications hosted on the same server might have been compromised via a backdoor installed by the initial attack
3. Consider obtaining a new server, or otherwise remove all the website’s files and database from the server. (Keep a copy safe for later analysis)
4. Restore the website (Drupal files, uploaded files and database) from backups from before 15 October 2014
5. Update or patch the restored Drupal core code
6. Put the restored and patched/updated website back online
7. Manually redo any desired changes made to the website since the date of the restored backup
8. Audit anything merged from the compromised website, such as custom code, configuration, files or other artifacts, to confirm they are correct and have not been tampered with
9. While recovery without restoring from backup may be possible, this is not advised because backdoors can be extremely difficult to find. The recommendation is to restore from backup or rebuild from scratch

Leave a Reply

You must be logged in to post a comment.