security.html 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <html lang="en">
  2. <head>
  3. <meta charset="utf-8" />
  4. <title>Chamilo Security Guide</title>
  5. <link rel="stylesheet" href="../web/assets/bootstrap/dist/css/bootstrap.css" type="text/css" media="screen,projection" />
  6. <link rel="stylesheet" href="default.css" type="text/css" media="screen,projection" />
  7. <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  8. </head>
  9. <body>
  10. <div class="container">
  11. <h1>Chamilo LMS: Security Guide</h1>
  12. <a href="index.html">Documentation</a> &gt; Security Guide
  13. <p>We recommend you don't take security issues too lightly. Chamilo is security-audited at least once a year, but you're never too sure. This list is a work in progress. Feel free to recommend additional measures by sending us an e-mail at info@chamilo.org.</p>
  14. <h2><b>Contents</b></h2>
  15. <ol>
  16. <li><a href="#1.Disclosing-server-info">Disclosing server info</a></li>
  17. <li><a href="#2.Keeping-up-to-date">Keeping up to date</a></li>
  18. <li><a href="#3.Using-safe-browsers">Using safe browsers</a></li>
  19. <li><a href="#4.Moving-config-file">Moving your configuration file out of the web directory</a></li>
  20. </ol>
  21. <h2><a name="1.Disclosing-server-info"></a>1. Disclosing server info</h2>
  22. <p>
  23. It is considered a safer behaviour not to disclose server information from your Chamilo page. In order to avoid both web server and PHP information disclosure, you might want to take the following actions:
  24. <ul>
  25. <li>Locate the <i>ServerTokens</i> setting inside your Apache configuration and set it to "Prod"</li>
  26. <li>Locate the <i>ServerSignature</i> setting inside your Apache configuration and set it to "Off"</li>
  27. <li>Locate the <i>expose_php</i> setting inside your PHP configuration and set it to "Off"</li>
  28. <li>Reload Apache</li>
  29. </ul>
  30. </p>
  31. <h2><a name="2.Keeping-up-to-date"></a>2. Keeping up to date</h2>
  32. <p>
  33. Make sure you check <a href="http://support.chamilo.org/projects/chamilo-18/wiki/Security_issues">our security issues page</a> from time to time.
  34. Subscribe to our free security alerts mailing-list: <a href="http://lists.chamilo.org/listinfo/security">http://lists.chamilo.org/listinfo/security</a> or that you follow our security Twitter feed: <a href="http://twitter.com/chamilosecurity">http://twitter.com/chamilosecurity</a>.
  35. </p>
  36. <h2><a name="3.Using-safe-browsers"></a>3. Using safe browsers</h2>
  37. <p> Additionnally to lacking the implementation of features that really improve the quality of your browsing the Internet, older browsers tend to have many unresolved security flaws. Using an old browser, you put in danger the security of your computer and the data it contains, but you can also put others in danger by letting crackers take control of it and attacking others.</p>
  38. <p>To avoid being a risk to yourself and others, you should download and install a recent browser. We recommend <a href="http://www.getfirefox.com" target="_blank">the latest stable version of Firefox</a>.</p>
  39. <h2><a name="4.Moving-config-file"></a>4. Moving your configuration file out of the web directory</h2>
  40. <p>It is considered unsafe to leave the configuration file inside the main/inc/conf/ directory, as it will be directly accessible for all users, which could lead crackers to download it, uninterpreted, and read through your configuration, which could lead to illicit
  41. access to your database if that one isn't well protected and many other stuff we'd prefer to avoid. To secure it, move the configuration file out of your web directory. If your
  42. Chamilo installation is in /var/www/, move your configuration to /etc/chamilo/configuration.php, for example. Then create a new main/inc/conf/configuration.php file, open it, and write the following:</p>
  43. <p>
  44. <pre>
  45. &lt;?php
  46. require '/etc/chamilo/configuration.php';
  47. </pre>
  48. </p>
  49. <p>
  50. This will prevent direct access to your settings and make it seem totally the same to Chamilo.
  51. </p>
  52. <hr />
  53. <h2>Authors</h2>
  54. <ul>
  55. <li>Yannick Warnier, Zend Certified PHP Engineer, BeezNest Belgium SPRL, <a href="mailto:yannick.warnier@beeznest.com">yannick.warnier@beeznest.com</a></li>
  56. </ul>
  57. </div>
  58. </body>
  59. </html>