Home
Explore
Submit Search
Upload
Login
Signup
Advertisement
Hardening WordPress Security
Report
Mattia Piovano
Follow
Web Developer at STAR Italia
Nov. 17, 2015
•
0 likes
2 likes
×
Be the first to like this
Show More
•
1,922 views
views
×
Total views
0
On Slideshare
0
From embeds
0
Number of embeds
0
Check these out next
Security and Performance - Italian WordPress Conference
Maurizio Pelizzone
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
Faysal Shahi
wp cli
Wataru OKAMOTO
CodeIgniter PHP MVC Framework
Bo-Yi Wu
WordPress Security - WordCamp NYC 2009
Brad Williams
Introduction to Plugin Programming, WordCamp Miami 2011
David Carr
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Chetan Soni
Laying the proper foundation for plugin and theme development
Tammy Hart
1
of
60
Top clipped slide
Hardening WordPress Security
Nov. 17, 2015
•
0 likes
2 likes
×
Be the first to like this
Show More
•
1,922 views
views
×
Total views
0
On Slideshare
0
From embeds
0
Number of embeds
0
Download Now
Download to read offline
Report
Software
How to harden WordPress security with few steps and methods
Mattia Piovano
Follow
Web Developer at STAR Italia
Advertisement
Advertisement
Advertisement
Recommended
Hp26簡報 joyhsu
Joy Hsu
302 views
•
47 slides
Azure purview
Shafqat Turza
1.5K views
•
27 slides
WordCamp Finland 2015 - WordPress Security
Tiia Rantanen
5.9K views
•
13 slides
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Mike Schinkel
10.5K views
•
92 slides
Chandra Prakash Thapa: Make a WordPress Multisite in 20 mins
wpnepal
2.4K views
•
30 slides
Worcamp2012 make a wordpress multisite in 20mins
Chandra Prakash Thapa
2.5K views
•
30 slides
More Related Content
Similar to Hardening WordPress Security
(20)
Security and Performance - Italian WordPress Conference
Maurizio Pelizzone
•
1.7K views
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
Faysal Shahi
•
706 views
wp cli
Wataru OKAMOTO
•
3.2K views
CodeIgniter PHP MVC Framework
Bo-Yi Wu
•
27.4K views
WordPress Security - WordCamp NYC 2009
Brad Williams
•
3.5K views
Introduction to Plugin Programming, WordCamp Miami 2011
David Carr
•
1.5K views
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Chetan Soni
•
5.8K views
Laying the proper foundation for plugin and theme development
Tammy Hart
•
1.3K views
Wp security presentation
Nik Cree
•
512 views
Take Command of WordPress With WP-CLI
Diana Thompson
•
334 views
Intro to WordPress Plugin Development
Brad Williams
•
7.5K views
How Not to Build a WordPress Plugin
Will Norris
•
4.1K views
WordPress basic fundamental of plugin development and creating shortcode
Rakesh Kushwaha
•
3.5K views
WordPress Plugins
randyhoyt
•
1.7K views
Drupal Day 2012 - Automating Drupal Development: Make!les, Features and Beyond
DrupalDay
•
920 views
WordPress 3.0 MultiSite Features
Pete Mall
•
2.5K views
Как получить чёрный пояс по WordPress?
Yevhen Kotelnytskyi
•
1.6K views
Developers, Be a Bada$$ with WP-CLI
WP Engine
•
1.1K views
The Enterprise Wor/d/thy/Press
Jeroen van Dijk
•
508 views
Stored procedures by thanveer danish melayi
Muhammed Thanveer M
•
344 views
Recently uploaded
(20)
[PHPers Summit 2023] Business logic testing
Mateusz Zalewski
•
5 views
벳인포 〈www,rt33,top〉코드b77 축구언더오버 ⑦ 카지노실시간 ㉷ 월드카지노사이트 ⒥ sl벤피카 ㋇ 고군분투토토 ㋥ 프로배구중계일정
sangin3
•
6 views
DNN Community Newsletter: An In-Person Review of Recent Open-Source Activity
Will Strohl
•
4 views
Chat GPT.pptx
Geminate Consultancy Services
•
4 views
India Dreamin - Smart Healthcare with Salesforce
Tarandeep Singh
•
0 views
Why does your business need an enterprise portal.pdf
AnandPatel966376
•
0 views
Employee Engagement Platform
sherinthomas34274
•
1 view
Sending a Calendar Invite to a VIP LIST - .pdf
31events.com
•
0 views
Presentation1 Introduction.pdf
UzairQazi16
•
0 views
5th_sem_presentationtoday.pdf
satyaprakashkumawat2
•
2 views
Csaba_Demo_no_1.pptx
GergKiss7
•
5 views
(C In-Depth Series) Bjarne Stroustrup - A Tour of C-Addison-Wesley Profession...
afra151
•
4 views
Ecommerce Product(s) with Independent Attributes.pptx
Geminate Consultancy Services
•
4 views
Maximizing the potential of ai in palm oil : a guide for top management
Khalizan Halid
•
3 views
Best CRM Software for Business
Kit 19
•
0 views
Glimpse Into My Work Methodology by Project Manager Rakib Hasan
Rakib Hasan
•
4 views
Virtual reality.ppt
AsadKhokhar14
•
2 views
The Clean Architecture
Dmytro Turskyi
•
9 views
Rublon Multi-Factor Authentication (MFA) - Product Presentation
Rublon
•
0 views
HCL Volt MX Overview - DNUG Stammtisch Schweiz
DNUG e.V.
•
0 views
Advertisement
Hardening WordPress Security
Hardening WordPress Security WordPress
Day 2015 - Pordenone, Italy
What is security? (http://codex.wordpress.org/Hardening_WordPress#What_is_Security.3F)
Risk reduction
SECURITYBecause sometimes a
Rottweiler is not enough
Why we need
more security?
WordPress Popularity, Market
Share and Responsibility
0 10 20
30 40 50 60 70 No CMS WordPress Joomla Drupal Usage of content management systems for websites Market Share Usage http://w3techs.com/technologies/overview/content_management/all
What are the
dangers?
- Social Engineering -
Human Mistakes - Brute Force Attacks - WordPress Vulnerabilities - Web Server Vulnerabilities - Network Vulnerabilities - FTP - File Permissions - And other beautiful things…
Solutions
Backup! Modern Task Runner
for PHP
Use strong passwords Insecure
examples admin mysite123 mysitename myname4321 password Secure examples -yCpHuHJ68fRtB805i "kaN4Y]99Z)[/ylaJN &3388wu1530Cx;73kR zN1/K>9'51]9~495° 1'N434g&h51I78x3?M
Stay updated! Update WordPress
Core Update Themes Update Plugins
Remove Version Reference
Deny access /
delete readme.html
Deny access /
delete readme.html # .htaccess <files readme.html> Order allow,deny Deny from all </files>
Remove WordPress Version //
** functions.php function wp_remove_version() { return ''; } add_filter('the_generator', 'wp_remove_version');
Secure your login
Secure your login -
.htaccess Authentication - Limit attempts - Restrict to certain IPs - Hide - Capcha - Two Factor Authentication - HTTPS
.htaccess Authentication (example with
http://www.htaccesstools.com/)
.htaccess Authentication (example with
http://www.htaccesstools.com/)
Limit attempts
Restrict to certain
IPs # .htaccess order deny,allow deny from all allow from 1.2.3.4
Restrict to certain
IPs
Hide your login #
BEGIN Hidden login RewriteRule ^secured-area$ application/wp-login.php?redirect_to=http://%{SERVER_NAME}/wp-admin/ [L] RewriteRule ^recover-password$ application/wp-login.php?action=lostpassword RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}/wp-admin RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}/wp-login.php RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}/secured-area RewriteCond %{QUERY_STRING} !^action=logout RewriteCond %{QUERY_STRING} !^action=lostpassword RewriteCond %{REQUEST_METHOD} !POST RewriteRule ^wp-login.php http://%{SERVER_NAME}/secured-area? [R,L] RewriteCond %{QUERY_STRING} ^loggedout=true RewriteRule . http://%{SERVER_NAME}/? [L] # END Hidden login
Hide your login
Captcha on login
Two-Factor Authentication
Is there anything
more?
Admin user
Admin user - Don’t
use «admin» as username - Or change «admin» role
Change WordPress Structure
Change WordPress Structure From
this..
Change WordPress Structure ..to
this
Change WordPress Structure #
BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] # Redirect RewriteRule ^wp-admin$ wp-admin/ [R,L] RewriteRule ^(wp-(content|admin|includes|network|login).*) application/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ - [L] RewriteRule ^(.*.php)$ /$1 [L] RewriteRule . /index.php [L] </IfModule> # END WordPress
Change WordPress Structure //
** index.php define( 'WP_USE_THEMES', true ); require( __DIR__ . '/application/wp-blog-header.php‘ ); // ** wp-config.php define('WP_CONTENT_DIR', dirname(__FILE__) . '/public' ); define('WP_CONTENT_URL', 'http://'.$_SERVER['HTTP_HOST'].'/public' ); define('WP_SITEURL', 'http://'.$_SERVER['SERVER_NAME'].'/application' ); define('WP_HOME', 'http://'.$_SERVER['SERVER_NAME'] );
Htaccess Tips and
Tricks
Disable Directory Browsing #
.htaccess Options All -Indexes
Protect your .htaccess #
.htaccess <files .htaccess> Order allow,deny Deny from all </files>
Protect your configuration #
.htaccess <files wp-config.php> Order allow,deny Deny from all </files>
Deny access to
xmlrpc.php # .htaccess <files xmlrpc.php> Order allow,deny Deny from all </files>
Prevent WordPress users
listing http://www.yourbeautifulsite.org/?author=1 http://www.yourbeautifulsite.org/?author=2 http://www.yourbeautifulsite.org/?author=3 http://www.yourbeautifulsite.org/?author=4 […] # .htaccess RewriteCond %{QUERY_STRING} (^|&)author= RewriteRule . http://%{SERVER_NAME}/? [L]
Deny php execution
from upload directory # /path/to/upload-folder/.htaccess <Files ~ ".(xls|doc|rtf|pdf|zip|mp3|flv|swf|pn g|gif|jpg|ico|js|css|kmz|ttf|woff|woff 2)$"> Allow from all </Files>
Rewrite assets permalinks #
.htaccess RewriteRule ^css/(.*) /public/themes/mytheme/css/$1 [QSA,L] RewriteRule ^js/(.*) /public/themes/mytheme/js/$1 [QSA,L] RewriteRule ^img/(.*) /public/themes/mytheme/images/$1 [QSA,L]
WP-config Tricks
WP-config Tricks - Set
up Salt Keys (https://api.wordpress.org/secret-key/1.1/salt/) - Override File Permissions - Change WP Db Prefix
Disable Plugins install/updates //
** wp-config.php define( DISALLOW_FILE_EDIT', true ); define( DISALLOW_FILE_MODS', true );
Check installed Themes/Plugins -
Remove inactive themes/plugins - Remove useless themes/plugins - Evaluate code integration
Blackhole
Blackhole (http://perishablepress.com/blackhole-bad-bots/) # END Blackholde <ifModule
mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(phpinfo|phpmyadmin|cgi|index1|index|signup|admin|reg ister|timthumb|function|system|test|t|jsp|asp|aspx)$ error/403.html [L] </ifModule> # END Blackhole
Tools
Tools Sucury Security Plugin
Help us to
check our WordPress Project Vulnerabilities
Monitoring time series
database for monitoring your application https://influxdb.com/
Web Server Infrastructure
Codex References http://codex.wordpress.org/Hardening_WordPress http://codex.wordpress.org/Administration_Over_SSL http://codex.wordpress.org/Editing_wp-config.php
Questions?
Thanks Mattia Piovano @shadow_droid https://joind.in/15557
Advertisement