Share
Embed
WordPress Security
Predrag Cujanović
March 26, 2016
Transcript
26 slides
-
Wordpress Security 101 Predrag Cujanović Security Engineer @ Humanity Inc
www.cujanovic.com [email protected] @cujanovic -
Wordpress Security 101 Percentage of all websites globally that use
WordPress: 25% Last updated 11/8/15 Companies use WP :) -
Wordpress Security 101 Wordpress is a PHP + MySQL So
let's start from the Server -
Wordpress Security 101 Shared or Dedicated server? Shared – focus
on this: PHP version, Apache(Nginx) versions, MySQL version, Kernel version, cPanel, ModSecurity? -
Wordpress Security 101 Dedicated server: OS? Kernel – GRSecurity patch
Apache version PHP version MySQL version ModSecurity(WAF) + Comodo rules OS Update(s)? Backups? Permissions(.htaccess, wp-config.php)? Multiple sites(suphp)? SSH auth? Apache hardening PHP hardening HTTPS(SSL) -
Wordpress Security 101 Is Wordpress core secure? Yes, if you
update it. Most common vulnerability is XSS. -
Wordpress Security 101 Are Wordpress plugins/themes secure? Yes – if
you update them and No https://wpvulndb.com/ WPScan Vulnerability Database Cataloging 4247 WordPress Core, Plugin and Theme vulnerabilities -
Wordpress Security 101 Akismet 2.5.0-3.1.4 - Unauthenticated Stored Cross-Site Scripting
(XSS) https://blog.sucuri.net/2015/10/security-advisory- stored-xss-in-akismet-wordpress-plugin.html Twenty Fifteen Theme <= 1.1 - DOM Cross-Site Scripting (XSS) https://blog.sucuri.net/2015/05/jetpack-and-twent yfifteen-vulnerable-to-dom-based-xss.html -
Wordpress Security 101 W3 Total Cache & WP Super Cache
fiasco: https://blog.sucuri.net/2013/04/update-wp-super- cache-and-w3tc-immediately-remote-code-execution -vulnerability-disclosed.html -
Wordpress Security 101 CSP - Content Security Policy https://www.owasp.org/index.php/Content_Securit y_Policy
https://scotthelme.co.uk/content-security-policy-an -introduction/ -
Wordpress Security 101 HTTPS(SSL): https://www.ssllabs.com/ssltest/analyze.html?d=www.cu janovic.com&s=104.28.9.68&hideResults=on&latest https://testssl.sh/ https://mozilla.github.io/server-side-tls/ssl-config-generato r/ https://cipherli.st/
LibreSSL <3 https://wiki.freebsd.org/LibreSSL define('FORCE_SSL_ADMIN', true); -
Wordpress Security 101 Weak Admin passwords: https://blog.sucuri.net/2015/09/wordpress-brute-f orce-attacks-2015-threat-landscape.html Use a
password manager like LastPass with a unique password for all services/sites: https://www.youtube.com/watch?v=RM0fzHxMAS Q -
Wordpress Security 101 Wordpress users: Use admin only for administration,
don't use it for publishing posts, pages, etc -
Wordpress Security 101 Demo time :) But first using Facebook
servers for DDoS on a WP site(missing rate limiting per IP address) https://www.youtube.com/watch?v=g2gAFHs_3dY