SlideShare a Scribd company logo
Hong Kong Drupal User Group 
Drupal 7.32 Security Vulnerability 
Edison Wong 
2014 Nov 08th
Edison Wong 
● CEO, PantaRei Design 
– hswong3i@pantarei-design.com 
● Drupal developer & contributor 
– https://drupal.org/user/33940 
● HKDUG Co-founder 
– https://groups.drupal.org/drupalhk 
● Startup founder 
– 2009 - PantaRei Design founded 
– 2010 - YBHK applicant 
– 2011 - ITF SERAP applicant 
– 2011 - HKSTP Incu-Tech applicant
PantaRei Design 
● Hong Kong based Free and Open Source Software (FOSS) service 
provider 
– Content Management System (CMS) with Drupal 
– Cloud hosting with Amazon Web Services (AWS) 
● Business Partnership 
– 2012 - AWS Consulting Partner 
– 2013 - Acquia Partner 
– 2013 - Atlassian Experts 
– 2014 - Rackspace Hosting Partner 
● FOSS Contributor 
– 2008 - Hong Kong Drupal User Group Co-founder 
– 2012 - Drupal Services Provider
Hong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8th
Outline 
● What's Happened with Drupal 7.32? 
● Technical Details 
● OMG! So What Should I Do for It? 
● How to Restore My (Hacked) Drupal Site? 
● How to Update My Drupal Site? 
● Any Follow Up Action Required? 
● Is Drupal Secure? 
● Security Tips
What's Happened with Drupal 
7.32? 
● Vulnerability: SQL Injection 
● Security risk: 25/25 (Highly Critical) 
● Unless updated or patched to Drupal 7.23 before 2014 Oct 
15th, 23:00 UTC (i.e. 7 hours after the announcement), you 
should assume your sites was compromised. 
● Simply updating to Drupal 7.32 will NOT remove backdoors. 
● Attackers may have copied all data out of your site and 
could use it maliciously. 
● There may be no trace of the attack.
Hong Kong Drupal User Group - Nov 8th
Technical Details 
● Drupal uses prepared statements in all its SQL queries. 
To handle IN statements there is an expandArguments() 
function to expand arrays. 
● The function assumes that it is called with an array 
which has no keys. Example: 
– db_query("SELECT * FROM {users} where name IN 
(:name)", array(':name'=>array('user1','user2'))); 
● Which results in this SQL Statement with the parameters 
name_0 = user1 and name_1 = user2: 
– SELECT * from users where name IN (:name_0, :name_1)
Technical Details (cont.) 
● The Problem occurs, if the array has keys, 
which are no integers. Example: 
– db_query("SELECT * FROM {users} where name IN 
(:name)", array(':name'=>array('test -- ' => 
'user1','test' => 'user2'))); 
● This results in an exploitable SQL query with 
parameters :name_test = user2: 
– SELECT * FROM users WHERE name = 
:name_test -- , :name_test AND status = 1
Technical Details (cont.) 
● Since Drupal uses PDO, multi-queries are allowed. So this 
SQL Injection can be used to insert arbitrary data in the 
database, dump or modify existing data or drop the whole 
database. 
● With the possibility to INSERT arbitrary data into the 
database an attacker can execute any PHP code through 
Drupal features with callbacks. 
● Attackers may have created access points for themselves 
(sometimes called “backdoors”) in the database, code, files 
directory and other locations. Attackers could compromise 
other services on the server or escalate their access.
Hong Kong Drupal User Group - Nov 8th
OMG! So What Should I Do for It? 
● 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 that you 
consult with your hosting provider. If they did 
not patch Drupal for you or otherwise block the 
SQL injection attacks within hours of the 
announcement of Oct 15th, 4pm UTC, restore 
your website to a backup from before 15 
October 2014.
How to Restore My (Hacked) 
Drupal Site? 
● Take the website offline by replacing it with a static HTML 
page 
● 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. 
● 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.) 
● Restore the website (Drupal files, uploaded files and 
database) from backups from before 15 October 2014
How to Update My Drupal Site? 
● Update or patch the restored Drupal core code, e.g. 
– cd public_html 
– curl -sL https://www.drupal.org/files/issues/SA-CORE- 
2014-005-D7.patch | patch -p1 
● Put the restored and patched/updated website back 
online. 
● Manually redo any desired changes made to the 
website since the date of the restored backup.
Any Follow Up Action Required? 
● 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. 
● 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.
Is Drupal Secure? 
● All software has security vulnerabilities and Drupal is no 
exception. In a study by WhiteHat Security, 86% of websites 
across a variety of platforms both Open Source and proprietary 
had a serious vulnerability. 
● Drupal aims to provide a framework with built-in security features 
that make it easier for site-builders and developers to build a 
secure website. 
● Over the years the mix of security issues found in Drupal has 
changed. The OWASP project lists injection issues such as SQL 
Injection as the #1 issue based on how often it is found and the 
risk exposure. By providing rich APIs and developer education, 
Drupal has reduced the frequency of SQL Injection vulnerabilities.
Hong Kong Drupal User Group - Nov 8th
Security Tips 
● Keep Your Drupal Install Updated 
● Always Keep Maintained Plug-ins And Modules 
● Making Strong Passwords 
● Authorize Website Accounts 
● Setup Firewall Settings 
● Make A Security Strategy For Your Independent Modules 
● Think Like A Hacker 
● Audit Your Drupal Security 
● Get In Touch With the Drupal Community And Security Team
References 
● https://www.drupal.org/drupalsa05FAQ 
● https://www.drupal.org/SA-CORE-2014-005 
● https://www.drupal.org/PSA-2014-003 
● https://www.drupal.org/files/issues/SA-CORE-2014-005-D7.patc 
h 
● https://www.drupal.org/node/2365547 
● https://www.sektioneins.de/en/advisories/advisory-012014-drupal-pre- 
auth-sql-injection-vulnerability.html 
● http://drupal.stackexchange.com/questions/133795/what-kind-of 
-attacks-does-the-patch-for-sa-core-2014-005-drupal-7-32-prev 
ent
Q & A
I Need More Help! 
● Read documents from Drupal Community 
– https://drupal.org/documentation 
● Join Hong Kong Drupal User Group 
– Event organizing: http://www.meetup.com/drupalhk 
– Technological discussion: https://groups.drupal.org/drupalhk 
– Business connection: 
http://www.linkedin.com/groups/?gid=6644792 
– General sharing: https://www.facebook.com/groups/drupalhk 
● Contact us for one (1) month free-trial support service 
– http://pantarei-design.com/services/support/#support-service-plan 
s
Thank You 
● Please feel free to contact us: 
– Unit 207, 2/F IC Development Centre, No.6 Science 
Park West Avenue, Hong Kong Science Park, 
Shatin, N.T. 
– +852 3576 3812 
– http://pantarei-design.com/ 
– sales@pantarei-design.com

More Related Content

Viewers also liked (6)

PDF
BarCamp Hong Kong 2015 - AuthBucket - Open Source Identity Management System
Wong Hoi Sing Edison
 
PDF
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
Wong Hoi Sing Edison
 
PDF
CUHK CSCI 4140 2015 Spring Guest Lecture - Agile Development
Wong Hoi Sing Edison
 
ODP
Drupal in 5mins + Previewing Drupal 8.x
Wong Hoi Sing Edison
 
PPTX
The World We Live In
Caio Jobim
 
PDF
[20160314][CUHK][CSCI4140]Life of an Agile Team]
Wong Hoi Sing Edison
 
BarCamp Hong Kong 2015 - AuthBucket - Open Source Identity Management System
Wong Hoi Sing Edison
 
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
Wong Hoi Sing Edison
 
CUHK CSCI 4140 2015 Spring Guest Lecture - Agile Development
Wong Hoi Sing Edison
 
Drupal in 5mins + Previewing Drupal 8.x
Wong Hoi Sing Edison
 
The World We Live In
Caio Jobim
 
[20160314][CUHK][CSCI4140]Life of an Agile Team]
Wong Hoi Sing Edison
 

Similar to Hong Kong Drupal User Group - Nov 8th (20)

PDF
Open Innovation Lab (OIL) - 2014 Sep 26th
Wong Hoi Sing Edison
 
PPTX
Becoming A Drupal Master Builder
Philip Norton
 
ODP
Drupal 7 training
Ravi Yelluripati
 
PDF
Bgoug 2019.11 building free, open-source, plsql products in cloud
Jacek Gebal
 
PDF
Drupal 8 DevOps . Profile and SQL flows.
Andrii Podanenko
 
PDF
Drupal in-depth
Kathryn Carruthers
 
PDF
Modernize Your Drupal Development
Chris Tankersley
 
PDF
Drupal 8 improvements for developer productivity php symfony and more
Acquia
 
PDF
From Drupal 7 to Drupal 8 - Drupal Intensive Course Overview
Italo Mairo
 
PPTX
Drupal Development Tips
Chris Tankersley
 
PDF
Cloudera hadoop installation
Sumitra Pundlik
 
PDF
Doing Drupal security right
Gábor Hojtsy
 
PDF
Choosing Drupal as your Content Management Framework
Mediacurrent
 
PDF
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
Wong Hoi Sing Edison
 
PDF
Drupal Continuous Integration (European Drupal Days 2015)
Eugenio Minardi
 
PPTX
Drupal Security: What You Need to Know
Mediacurrent
 
PDF
Building and Maintaining a Distribution in Drupal 7 with Features
Nuvole
 
PDF
Lupus Decoupled Drupal - Drupal Austria Meetup - 2023-04.pdf
WolfgangZiegler6
 
ODP
Drupal Security Hardening
Gerald Villorente
 
Open Innovation Lab (OIL) - 2014 Sep 26th
Wong Hoi Sing Edison
 
Becoming A Drupal Master Builder
Philip Norton
 
Drupal 7 training
Ravi Yelluripati
 
Bgoug 2019.11 building free, open-source, plsql products in cloud
Jacek Gebal
 
Drupal 8 DevOps . Profile and SQL flows.
Andrii Podanenko
 
Drupal in-depth
Kathryn Carruthers
 
Modernize Your Drupal Development
Chris Tankersley
 
Drupal 8 improvements for developer productivity php symfony and more
Acquia
 
From Drupal 7 to Drupal 8 - Drupal Intensive Course Overview
Italo Mairo
 
Drupal Development Tips
Chris Tankersley
 
Cloudera hadoop installation
Sumitra Pundlik
 
Doing Drupal security right
Gábor Hojtsy
 
Choosing Drupal as your Content Management Framework
Mediacurrent
 
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
Wong Hoi Sing Edison
 
Drupal Continuous Integration (European Drupal Days 2015)
Eugenio Minardi
 
Drupal Security: What You Need to Know
Mediacurrent
 
Building and Maintaining a Distribution in Drupal 7 with Features
Nuvole
 
Lupus Decoupled Drupal - Drupal Austria Meetup - 2023-04.pdf
WolfgangZiegler6
 
Drupal Security Hardening
Gerald Villorente
 
Ad

More from Wong Hoi Sing Edison (20)

PDF
[HKOSCON][20220611][AlviStack: Hong Kong Based Kubernetes Distribution]
Wong Hoi Sing Edison
 
PDF
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
Wong Hoi Sing Edison
 
PDF
[HKOSCON][20200613][ Ansible: From VM to Kubernetes]
Wong Hoi Sing Edison
 
PDF
[HKOSCON][20190615][DevOps with Ansible, From Native to Kubernetes]
Wong Hoi Sing Edison
 
PDF
[BarCamp2018][20180915][Tips for Virtual Hosting on Kubernetes]
Wong Hoi Sing Edison
 
PDF
[HKOSCON][20180616][Containerized High Availability Virtual Hosting Deploymen...
Wong Hoi Sing Edison
 
PDF
[HKDUG] #20180512 - Fix Hacked Drupal with GIT
Wong Hoi Sing Edison
 
PDF
[HKDUG] #20161210 - BarCamp Hong Kong 2016 - What's News in PHP?
Wong Hoi Sing Edison
 
PDF
DruStack- a mobile-friendly web content management system (cms
Wong Hoi Sing Edison
 
PDF
drustack a mobile-friendly web content management system (cms)
Wong Hoi Sing Edison
 
ODP
Open Innovation Lab (OIL) - 20150227 - GIT Intro Workshop
Wong Hoi Sing Edison
 
PDF
IT Entrepreneurship Talk - City University of Hong Kong
Wong Hoi Sing Edison
 
PDF
OSS Community Meeting - OSS Community Management for Dummy
Wong Hoi Sing Edison
 
PDF
Barcamp Hong Kong 2014 - Introduction to GIT
Wong Hoi Sing Edison
 
PDF
Barcamp Hong Kong 2014 - Commercial Use of OSS Web Content Management System
Wong Hoi Sing Edison
 
PDF
Entrepreneurship Talk
Wong Hoi Sing Edison
 
PDF
Open Source.HK Workshop - 2014 Oct 11th
Wong Hoi Sing Edison
 
PDF
Barcamp Macau 2014 - Introduction to GIT
Wong Hoi Sing Edison
 
PDF
Barcamp Macau 2014 - Introduction to AWS
Wong Hoi Sing Edison
 
PDF
Hong Kong Drupal User Group - Sep 13th
Wong Hoi Sing Edison
 
[HKOSCON][20220611][AlviStack: Hong Kong Based Kubernetes Distribution]
Wong Hoi Sing Edison
 
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
Wong Hoi Sing Edison
 
[HKOSCON][20200613][ Ansible: From VM to Kubernetes]
Wong Hoi Sing Edison
 
[HKOSCON][20190615][DevOps with Ansible, From Native to Kubernetes]
Wong Hoi Sing Edison
 
[BarCamp2018][20180915][Tips for Virtual Hosting on Kubernetes]
Wong Hoi Sing Edison
 
[HKOSCON][20180616][Containerized High Availability Virtual Hosting Deploymen...
Wong Hoi Sing Edison
 
[HKDUG] #20180512 - Fix Hacked Drupal with GIT
Wong Hoi Sing Edison
 
[HKDUG] #20161210 - BarCamp Hong Kong 2016 - What's News in PHP?
Wong Hoi Sing Edison
 
DruStack- a mobile-friendly web content management system (cms
Wong Hoi Sing Edison
 
drustack a mobile-friendly web content management system (cms)
Wong Hoi Sing Edison
 
Open Innovation Lab (OIL) - 20150227 - GIT Intro Workshop
Wong Hoi Sing Edison
 
IT Entrepreneurship Talk - City University of Hong Kong
Wong Hoi Sing Edison
 
OSS Community Meeting - OSS Community Management for Dummy
Wong Hoi Sing Edison
 
Barcamp Hong Kong 2014 - Introduction to GIT
Wong Hoi Sing Edison
 
Barcamp Hong Kong 2014 - Commercial Use of OSS Web Content Management System
Wong Hoi Sing Edison
 
Entrepreneurship Talk
Wong Hoi Sing Edison
 
Open Source.HK Workshop - 2014 Oct 11th
Wong Hoi Sing Edison
 
Barcamp Macau 2014 - Introduction to GIT
Wong Hoi Sing Edison
 
Barcamp Macau 2014 - Introduction to AWS
Wong Hoi Sing Edison
 
Hong Kong Drupal User Group - Sep 13th
Wong Hoi Sing Edison
 
Ad

Recently uploaded (20)

PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 

Hong Kong Drupal User Group - Nov 8th

  • 1. Hong Kong Drupal User Group Drupal 7.32 Security Vulnerability Edison Wong 2014 Nov 08th
  • 2. Edison Wong ● CEO, PantaRei Design – [email protected] ● Drupal developer & contributor – https://drupal.org/user/33940 ● HKDUG Co-founder – https://groups.drupal.org/drupalhk ● Startup founder – 2009 - PantaRei Design founded – 2010 - YBHK applicant – 2011 - ITF SERAP applicant – 2011 - HKSTP Incu-Tech applicant
  • 3. PantaRei Design ● Hong Kong based Free and Open Source Software (FOSS) service provider – Content Management System (CMS) with Drupal – Cloud hosting with Amazon Web Services (AWS) ● Business Partnership – 2012 - AWS Consulting Partner – 2013 - Acquia Partner – 2013 - Atlassian Experts – 2014 - Rackspace Hosting Partner ● FOSS Contributor – 2008 - Hong Kong Drupal User Group Co-founder – 2012 - Drupal Services Provider
  • 9. Outline ● What's Happened with Drupal 7.32? ● Technical Details ● OMG! So What Should I Do for It? ● How to Restore My (Hacked) Drupal Site? ● How to Update My Drupal Site? ● Any Follow Up Action Required? ● Is Drupal Secure? ● Security Tips
  • 10. What's Happened with Drupal 7.32? ● Vulnerability: SQL Injection ● Security risk: 25/25 (Highly Critical) ● Unless updated or patched to Drupal 7.23 before 2014 Oct 15th, 23:00 UTC (i.e. 7 hours after the announcement), you should assume your sites was compromised. ● Simply updating to Drupal 7.32 will NOT remove backdoors. ● Attackers may have copied all data out of your site and could use it maliciously. ● There may be no trace of the attack.
  • 12. Technical Details ● Drupal uses prepared statements in all its SQL queries. To handle IN statements there is an expandArguments() function to expand arrays. ● The function assumes that it is called with an array which has no keys. Example: – db_query("SELECT * FROM {users} where name IN (:name)", array(':name'=>array('user1','user2'))); ● Which results in this SQL Statement with the parameters name_0 = user1 and name_1 = user2: – SELECT * from users where name IN (:name_0, :name_1)
  • 13. Technical Details (cont.) ● The Problem occurs, if the array has keys, which are no integers. Example: – db_query("SELECT * FROM {users} where name IN (:name)", array(':name'=>array('test -- ' => 'user1','test' => 'user2'))); ● This results in an exploitable SQL query with parameters :name_test = user2: – SELECT * FROM users WHERE name = :name_test -- , :name_test AND status = 1
  • 14. Technical Details (cont.) ● Since Drupal uses PDO, multi-queries are allowed. So this SQL Injection can be used to insert arbitrary data in the database, dump or modify existing data or drop the whole database. ● With the possibility to INSERT arbitrary data into the database an attacker can execute any PHP code through Drupal features with callbacks. ● Attackers may have created access points for themselves (sometimes called “backdoors”) in the database, code, files directory and other locations. Attackers could compromise other services on the server or escalate their access.
  • 16. OMG! So What Should I Do for It? ● 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 that you consult with your hosting provider. If they did not patch Drupal for you or otherwise block the SQL injection attacks within hours of the announcement of Oct 15th, 4pm UTC, restore your website to a backup from before 15 October 2014.
  • 17. How to Restore My (Hacked) Drupal Site? ● Take the website offline by replacing it with a static HTML page ● 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. ● 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.) ● Restore the website (Drupal files, uploaded files and database) from backups from before 15 October 2014
  • 18. How to Update My Drupal Site? ● Update or patch the restored Drupal core code, e.g. – cd public_html – curl -sL https://www.drupal.org/files/issues/SA-CORE- 2014-005-D7.patch | patch -p1 ● Put the restored and patched/updated website back online. ● Manually redo any desired changes made to the website since the date of the restored backup.
  • 19. Any Follow Up Action Required? ● 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. ● 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.
  • 20. Is Drupal Secure? ● All software has security vulnerabilities and Drupal is no exception. In a study by WhiteHat Security, 86% of websites across a variety of platforms both Open Source and proprietary had a serious vulnerability. ● Drupal aims to provide a framework with built-in security features that make it easier for site-builders and developers to build a secure website. ● Over the years the mix of security issues found in Drupal has changed. The OWASP project lists injection issues such as SQL Injection as the #1 issue based on how often it is found and the risk exposure. By providing rich APIs and developer education, Drupal has reduced the frequency of SQL Injection vulnerabilities.
  • 22. Security Tips ● Keep Your Drupal Install Updated ● Always Keep Maintained Plug-ins And Modules ● Making Strong Passwords ● Authorize Website Accounts ● Setup Firewall Settings ● Make A Security Strategy For Your Independent Modules ● Think Like A Hacker ● Audit Your Drupal Security ● Get In Touch With the Drupal Community And Security Team
  • 23. References ● https://www.drupal.org/drupalsa05FAQ ● https://www.drupal.org/SA-CORE-2014-005 ● https://www.drupal.org/PSA-2014-003 ● https://www.drupal.org/files/issues/SA-CORE-2014-005-D7.patc h ● https://www.drupal.org/node/2365547 ● https://www.sektioneins.de/en/advisories/advisory-012014-drupal-pre- auth-sql-injection-vulnerability.html ● http://drupal.stackexchange.com/questions/133795/what-kind-of -attacks-does-the-patch-for-sa-core-2014-005-drupal-7-32-prev ent
  • 24. Q & A
  • 25. I Need More Help! ● Read documents from Drupal Community – https://drupal.org/documentation ● Join Hong Kong Drupal User Group – Event organizing: http://www.meetup.com/drupalhk – Technological discussion: https://groups.drupal.org/drupalhk – Business connection: http://www.linkedin.com/groups/?gid=6644792 – General sharing: https://www.facebook.com/groups/drupalhk ● Contact us for one (1) month free-trial support service – http://pantarei-design.com/services/support/#support-service-plan s
  • 26. Thank You ● Please feel free to contact us: – Unit 207, 2/F IC Development Centre, No.6 Science Park West Avenue, Hong Kong Science Park, Shatin, N.T. – +852 3576 3812 – http://pantarei-design.com/ – [email protected]