Serveur Web Apache. Jean-Marc Robert Génie logiciel et des TI

Documents pareils
Serveur Web Apache. Jean-Marc Robert Génie logiciel et des TI

OWASP Open Web Application Security Project. Jean-Marc Robert Génie logiciel et des TI

Présentation de la solution Open Source «Vulture» Version 2.0

Instructions pour mettre à jour un HFFv2 v1.x.yy v2.0.00

Les utilités d'un coupe-feu applicatif Web

Module 7 : Configuration du serveur WEB Apache

Paxton. ins Net2 desktop reader USB

iqtool - Outil e-learning innovateur pour enseigner la Gestion de Qualité au niveau BAC+2

DOCUMENTATION - FRANCAIS... 2

Mon Service Public - Case study and Mapping to SAML/Liberty specifications. Gaël Gourmelen - France Telecom 23/04/2007

1. Formation F5 - Local Traffic Manager Configuring (LTM)

Quick Start Guide This guide is intended to get you started with Rational ClearCase or Rational ClearCase MultiSite.

Practice Direction. Class Proceedings

WDpStats Procédure d installation

APT / Cryptolockers. Pierre Poggi WatchGuard France pierre.poggi@watchguard.com

DOCUMENTATION - FRANCAIS... 2

Préparation d un serveur Apache pour Zend Framework

WEB page builder and server for SCADA applications usable from a WEB navigator

AMENDMENT TO BILL 32 AMENDEMENT AU PROJET DE LOI 32

Supervision et infrastructure - Accès aux applications JAVA. Document FAQ. Page: 1 / 9 Dernière mise à jour: 15/04/12 16:14

Garage Door Monitor Model 829LM

La Sécurité des Données en Environnement DataCenter

Cedric Dumoulin (C) The Java EE 7 Tutorial

Sécuriser les applications web

RULE 5 - SERVICE OF DOCUMENTS RÈGLE 5 SIGNIFICATION DE DOCUMENTS. Rule 5 / Règle 5

Configurer la supervision pour une base MS SQL Server Viadéis Services

Le serveur web Apache

Tom Pertsekos. Sécurité applicative Web : gare aux fraudes et aux pirates!

AUDIT COMMITTEE: TERMS OF REFERENCE

Internet Group Management Protocol (IGMP) Multicast Listener Discovery ( MLD ) RFC 2710 (MLD version 1) RFC 3810 (MLD version 2)

INSTALLATION DE WINDOWS 2000 SERVER POUR BCDI3. par. G.Haberer, A.Peuch, P.Saadé

Sécurité des sites Web Pas un cours un recueil du net. INF340 Jean-François Berdjugin

Installation UpdatEngine serveur (CentOs apache2 / MySQL)

Convergence entre Sécurité et Conformité par l approche Software as a Service Présentation en avant-première de QualysGuard Policy Compliance

Sécurité des applications web. Daniel Boteanu

TP HTTP. Université Pierre Mendès France U.F.R. Sciences de l Homme et de la Société Master IC²A

SNMP for cloud Jean Parpaillon. SNMP4cloud - 1

Exemple PLS avec SAS

TP LINUX : LINUX-SAMBA SERVEUR DE FICHIERS POUR UTILISATEURS WINDOWS

Nouveautés printemps 2013

Vanilla : Virtual Box

SERVEUR DÉDIÉ DOCUMENTATION

Cheque Holding Policy Disclosure (Banks) Regulations. Règlement sur la communication de la politique de retenue de chèques (banques) CONSOLIDATION

Rapport de certification ANSSI-CSPN-2010/05. ModSecurity v2.5.12

Instructions Mozilla Thunderbird Page 1

Editing and managing Systems engineering processes at Snecma

laposte.net) Ministère de l'éducation nationale Atelier sécurité Rabat RALL 2007

Project 1 Experimenting with Simple Network Management Tools. ping, traceout, and Wireshark (formerly Ethereal)

Guide Installation Serveur Extensive Testing

MELTING POTES, LA SECTION INTERNATIONALE DU BELLASSO (Association étudiante de lʼensaparis-belleville) PRESENTE :

Configurer OCS Inventory NG comme outil d inventaire

If the corporation is or intends to become a registered charity as defined in the Income Tax Act, a copy of these documents must be sent to:

Acronymes et abréviations. Acronymes / Abbréviations. Signification

PUPPET. Romain Bélorgey IR3 Ingénieurs 2000

English Q&A #1 Braille Services Requirement PPTC Q1. Would you like our proposal to be shipped or do you prefer an electronic submission?

TABLE DES MATIERES A OBJET PROCEDURE DE CONNEXION

Automatisation de l administration système

OWASP Code Review Guide Revue de code. Paris The OWASP Foundation. Victor Vuillard

that the child(ren) was/were in need of protection under Part III of the Child and Family Services Act, and the court made an order on

How to Login to Career Page

Les techniques de la télémaintenance

Hébergement de sites Web

Visualisation et Analyse de Risque Dynamique pour la Cyber-Défense

Forthcoming Database

Guide Installation Serveur Extensive Testing

INTRODUCTION AUX SGBD/R LUW

Les Portfolios et Moodle Petit inventaire

Ocs Inventory et GLPI s appuie sur un serveur LAMP. Je vais donc commencer par installer les paquets nécessaires.

Fingerprinting d'applications Web

Aide à la Détection de Faiblesses d un site Web Mandataire inverse, Modsecurity

MANUEL MARKETING ET SURVIE PDF

Comment Accéder à des Bases de Données MySQL avec Windows lorqu'elles sont sur un Serveur Linux

L offre décisionnel IBM. Patrick COOLS Spécialiste Business Intelligence

Academic Project. B2- Web Development. Resit Project. Version 1.0 Last update: 24/05/2013 Use: Students Author: Samuel CUELLA

NOM ENTREPRISE. Document : Plan Qualité Spécifique du Projet / Project Specific Quality Plan

SMALL CITY COMMERCE (EL PEQUEÑO COMERCIO DE LAS PEQUEÑAS CIUDADES)

Installation d'un serveur RADIUS

Gérer ses environnements de développement avec Vagrant RMLL 2012

Table des matières ENGLISH VERSION NEAR BOTTOM OF PAGE. Transferts sécurisés de fichiers Système MFT (Managed File Transfer) Guide de l utilisateur

Etude de la pertinence et de l'intérêt des appliances WAF (IPS web) à l'inria

4. SERVICES WEB REST 46

Mise en place d un système de cabotage maritime au sud ouest de l Ocean Indien. 10 Septembre 2012

L installation a quelque peu changée depuis les derniers tutos, voici une actualisation.

3615 SELFIE. HOW-TO / GUIDE D'UTILISATION

LOI SUR LA RECONNAISSANCE DE L'ADOPTION SELON LES COUTUMES AUTOCHTONES ABORIGINAL CUSTOM ADOPTION RECOGNITION ACT

Expérience d un hébergeur public dans la sécurisation des sites Web, CCK. Hinda Feriani Ghariani Samedi 2 avril 2005 Hammamet

English version Legal notice

valentin labelstar office Made-to-measure label design. Conception des étiquettes sur mesure. Quality. Tradition. Innovation DRUCKSYSTEME

Paris Airports - Web API Airports Path finding

Sécuriser les applications web de l entreprise

Archived Content. Contenu archivé

COUNCIL OF THE EUROPEAN UNION. Brussels, 18 September 2008 (19.09) (OR. fr) 13156/08 LIMITE PI 53

Guide d'installation rapide TFM-560X YO.13

Extension fonctionnelle d un CRM. CRM étendu >> Conférence-débat 15 April Club Management des Systèmes d Information de l'iae de Paris Alumni

Discours du Ministre Tassarajen Pillay Chedumbrum. Ministre des Technologies de l'information et de la Communication (TIC) Worshop on Dot.

Netdays Comprendre et prévenir les risques liés aux codes malicieux

Get Instant Access to ebook Cest Maintenant PDF at Our Huge Library CEST MAINTENANT PDF. ==> Download: CEST MAINTENANT PDF

Transcription:

Serveur Web Apache Jean-Marc Robert Génie logiciel et des TI

http://news.n Popularité

Serveur Web Apache Installation et Configuration DISA STIG Pare-feu et Système de détection/prévention d intrusio ModSecurity Tests OWASP Vulnérabilites nikto2

Installation et Configuration Installation Sources ou binaires? Binaires statiques ou dynamiques? Localisation des répertoires Configuration et Sécurisation Compte usager: httpd Binaires: root Configuration par défaut Allow /var/www/htdocs Deny all Scripts exécutables Exec /var/www/cgi-bin Fichiers journaux Limites Fuites d information Changer l identité du ser Enlever tout contenu pa Changer la bannière (?) Mettre le serveur Apache Utiliser mod_security

Installation et Configuration APACHE SERVER 2.2 pour Unix Security Technical Implementation Guide de la Defense Inform Systems Agency 55 recommandations HIGH: Server side includes (SSIs) must run with execution c disabled. The Options directive configures the web server features that are availabl particular directories. The IncludesNOEXEC feature controls the ability o to utilize SSIs while disabling the exec command, which is used to execute scripts. If the full includes feature is used it could allow the execution of m leading to a system compromise. http://www.stigviewer.com/stig/aa9a9e638ee181b23a293064c2b2618

Installation et Configuration APACHE SERVER 2.2 pour Unix Security Technical Implementation Guide de la Defense Inform Systems Agency 55 recommandations MEDIUM: The httpd.conf MaxClients directive must be set p These requirements are set to mitigate the effects of several types of denia attacks. Although there is some latitude concerning the settings themselve requirements attempt to provide reasonable limits for the protection of the server. If necessary, these limits can be adjusted to accommodate the oper requirement of a given system. http://www.stigviewer.com/stig/aa9a9e638ee181b23a293064c2b2618

ModSecurity Open Source Web Application Firewall ou Web Application Intrusion Prevention System Fonctionnalités Trafic HTTP journalisation complète Vie privée? Possibilité de masquer certains champs Surveillance et détection d attaques en temps réel Prévention d attaques Dynamique Statique Modèle de sécurité négatif : Pointage pour les anomalies, les comporteme inhabituels et les attaques habituelles. Bloquer les connexions à pointage é Modèle de sécurité positif : N accepter que les requêtes qui sont valides. R autre requête. Mises-à-jour virtuelles Corriger les faiblesses et les vulnérabilités connues des applications du ser

ModSecurity IDS/IPS HTTP Analyse complète du protocole Requêtes Réponses Entêtes et charges utiles Intégrer au serveur Web SSL ne représente pas une barrière Règles de filtrage Techniques anti-évasion Validation de l encodage Règles pour détecter les requêtes invalides Réactions aux requêtes invalides

ModSecurity OWASP ModSecurity Core Rule Set Project ModSecurity is a web application firewall engine that provid little protection on its own. In order to become useful, ModSec must be configured with rules. In order to enable users to take advantage of ModSecurity out of the box, the OWASP Defen Community has developed and maintains a free set of applicati protection rules called the OWASP ModSecurity Core Rule Set Unlike intrusion detection and prevention systems, which rely o signatures specific to known vulnerabilities, the CRS provides protection from unknown vulnerabilities often found in web ap https://www.owasp.org/index.php/category:owasp_modsecurity_core_rule_

ModSecurity OWASP ModSecurity Core Rule Set Project HTTP Protection - detecting violations of the HTTP protocol locally defined usage policy. Real-time Blacklist Lookups - utilizes 3rd Party IP Reputatio Web-based Malware Detection - identifies malicious web co check against the Google Safe Browsing API. HTTP Denial of Service Protections - defense against HTTP and Slow HTTP DoS Attacks. Common Web Attacks Protection - detecting common web application security attack.

ModSecurity OWASP ModSecurity Core Rule Set Project Automation Detection - Detecting bots, crawlers, scanners an surface malicious activity. Integration with AV Scanning for File Uploads - detects ma files uploaded through the web application. Tracking Sensitive Data - Tracks Credit Card usage and bloc leakages. Trojan Protection - Detecting access to Trojans horses. Identification of Application Defects - alerts on application misconfigurations. Error Detection and Hiding - Disguising error messages sent server.

ModSecurity Exemple de règle: Injection SQL # OR 1# # DROP sampletable;-- # admin'-- # DROP/*comment*/sampletable # DR/**/OP/*bypass blacklisting*/sampletable # SELECT/*avoid-spaces*/password/**/FROM/**/Members # SELECT /*!32302 1/0, */ 1 FROM tablename # or 1=1# # or 1=1-- - # or 1=1/* # ' or 1=1;\x00 # 1='1' or-- - # ' /*!50000or*/1='1 # ' /*!or*/1='1 # 0/**/union/*!50000select*/table_name`foo`/**/ https://github.com/spiderlabs/owasp-modse

ModSecurity Exemple de règle: Injection SQL SecRule REQUEST_COOKIES!REQUEST_COOKIES:/ utm/ REQUEST_COOKIES_NAMES ARGS_NAMES ARGS XML:/* "(/\*!? \*/ [' \f] (?:--[^-]*?-) ([^\-&])#.*?[\s\r\n\v\f] ;?\\x00)" "phase:2,rev:'2',ver:'owasp_c 2.2.8',maturity:'8',accuracy:'8',id:'981231',t:none,t:urlDecodeUni,block,msg:'SQ Sequence Detected.',severity:'2',capture,logdata:'Matched Data: %{TX.0} foun {MATCHED_VAR_NAME}: %{MATCHED_VAR}',tag:'OWASP_CRS/WE SQL_INJECTION',tag:'WASCTC/WASC-19',tag:'OWASP_TOP_10/ A1',tag:'OWASP_AppSensor/CIE1',tag:'PCI/6.5.2',setvar:tx.anomaly_score=+ {tx.critical_anomaly_score},setvar:tx.sql_injection_score=+1,setvar:'tx.msg=% {rule.msg}',setvar:tx.%{rule.id}-owasp_crs/web_attack/sql_injec {matched_var_name}=%{tx.0}" https://github.com/spiderlabs/owasp-modse

Vulnérabilités OWASP Testing Guide Version 3, 2008, 349 pages. Ou Configuration Management Testing Authentication Testing Session Management Testing Authorization Testing Business Logic Testing Data Validation Testing Denial of Service Testing Web Services Testing Ajax Testing https://www.owasp.org/images/5/56/owasp_testing_guide_v3.pdf La version 4 est en cours de développement. https://www.owasp.org/index.php/owasp_testing_guide_v4_table_of_contents

Vulnérabilités nikto2 Scanneur de vulnérabilités Serveur et logiciel Mauvaises configurations Versions non mises à jour Fichiers et programmes par défaut Fichiers et programmes non-sécurisés Base de données Reconnaissance de 1250 serveurs Problèmes spécifiques sur 270 serveurs 6500 fichiers/cgis problématiques

Vulnérabilités nikto2 : Exemple + Server: Apache/2.2.3 (CentOS) - Allowed HTTP Methods: GET, HEAD, POST, OPTIONS, TRACE + OSVDB-877: HTTP method ('Allow' Header): 'TRACE' is typically only u debugging and should be disabled. This message does not mean it is vuln XST. + OSVDB-0: Retrieved X-Powered-By header: PHP/4.4.7 + PHP/4.4.7 appears to be outdated (current is at least 5.2.5) + Apache/2.2.3 appears to be outdated (current is at least Apache/2.2.6). Apa and 2.0.61 are also current. + OSVDB-0: GET /index.php?module=my_egallery : My_eGallery prior to vulnerable to a remote execution bug via SQL command injection. + OSVDB-0: GET /config.php : PHP Config file may contain database IDs a passwords. + OSVDB-877: TRACE / : TRACE option appears to allow XSS or credenti See http://www.cgisecurity.com/whitehat-mirror/whitepaper_screen.pdf + OSVDB-12184: GET /index.php?=phpb8b5f2a0-3c92-11d3- A3A9-4C7B08C10000 : PHP reveals potentially sensitive information vi HTTP requests which contain specific QUERY strings. + OSVDB-3092: GET /db/ : This might be interesting...

Vulnérabilités nikto2 : Exemple + OSVDB-3092: GET /includes/ : This might be interesting... + OSVDB-3093: GET /index.php?base=test%20 : This might be interesting.. seen in web logs from an unknown scanner. + OSVDB-3093: GET /index.php?idadmin=test : This might be interesting. seen in web logs from an unknown scanner. + OSVDB-3093: GET /index.php?pymembs=admin : This might be interesti seen in web logs from an unknown scanner. + OSVDB-3093: GET /index.php?sqlquery=test%20 : This might be interes been seen in web logs from an unknown scanner. + OSVDB-3093: GET /index.php?tampon=test%20 : This might be interestin seen in web logs from an unknown scanner. + OSVDB-3093: GET /index.php? topic=<script>alert(document.cookie)</script&am This might be interesting... has been seen in web logs from an unknown s + OSVDB-3268: GET /icons/ : Directory indexing is enabled: /icons + OSVDB-3268: GET /images/ : Directory indexing is enabled: /images + OSVDB-3268: GET /docs/ : Directory indexing is enabled: /docs + OSVDB-3233: GET /icons/readme : Apache default file found.

Références Ivan Ristic, Apache Security, O Reilly, 2005. En ligne : Chapitre 2 Installation and Configuration http://www.apachesecurity.net/download/apachesecurity-ch02. Ryan C. Barnett, Preventing Web Attacks with Apache, Addison-Wesley, 2006.

Click below to find more Mipaper at www.lcis.com.tw Mipaper at www.lcis.com.tw