Cracking Drupal - Drupal http://crackingdrupal.com/taxonomy/term/19/0 en The Importance of User Roles and Permissions for Site Security http://crackingdrupal.com/blog/ben-jeavons/importance-user-roles-and-permissions-site-security <h3>Rethink your roles</h3> <p>When discussing site security we often use words like "attacker", "malicious user" or "untrusted" to define site visitors who may be intent on abusing resources, stealing, or altering data. Within Drupal, visitors can achieve these goals using the permissions granted to their roles. This is the key component. We have to think of visitors in terms of what roles they have and what permissions we've granted those roles. Then instead of just thinking about trusted vs. untrusted users, we are thinking about trusted vs. untrusted roles.</p> <p>On your site, which roles are trusted and which are untrusted? What permissions have you given to those roles? What permissions have you granted to the Anonymous role and thus to anonymous visitors? As you build and add features to your site you are also widening the available points for attack. If you have allowed users to create accounts without administrator approval you should also consider what permissions you've granted the Authenticated role. Can authenticated users create content or post comments without approval?</p> <h3>Know the defaults</h3> <p>Community contributed modules as a whole are more insecure than Drupal core so it's especially important to be cautious about administrator permissions created by contributed modules. Role management can be burdensome so there are modules that grant roles to users upon account creation. Know the defaults, because <a href="http://crackingdrupal.com/blog/greggles/what-kinds-security-problems-exist-drupal">most Security Advisories for contributed modules are because of cross-site scripting vulnerabilities</a> and often exist on module administration screens where user-supplied data is not properly filtered. Whenever possible, utilize the principle of least privilege and give roles only the permissions they absolutely need. Grant those roles appropriately based on trust and what features need to be exposed for use.</p> <h3>"Super-permissions"</h3> <p>A few Drupal permissions should never be added to untrusted roles, as they allow or open up full control of your site. These permissions are:</p> <ul> <li>Administer filters</li> <li>Administer users</li> <li>Administer permissions</li> <li>Administer content types</li> <li>Administer site configuration</li> </ul> <p>To help keep your site secure, rethink which roles are trusted and untrusted, then evaluate what roles are granted to which users.</p> http://crackingdrupal.com/blog/ben-jeavons/importance-user-roles-and-permissions-site-security#comments Drupal Permissions Planet Drupal Roles Tue, 10 Nov 2009 19:18:49 +0000 Ben Jeavons 37 at http://crackingdrupal.com Drupal Security presentation slides from BADCamp http://crackingdrupal.com/blog/ben-jeavons/drupal-security-presentation-slides-badcamp <p>At the Bay Area Drupal Camp yesterday I presented on Drupal Security for site administrators and beginners which covered some of the important ways you can protect your site from attacks through configuration of Drupal core. Attached are the slides from the presentation.</p> <table id="attachments" class="sticky-enabled"> <thead><tr><th>Attachment</th><th>Size</th> </tr></thead> <tbody> <tr class="odd"><td><a href="http://crackingdrupal.com/sites/crackingdrupal.com/files/drupal_security_badcamp09.pdf">drupal_security_badcamp09.pdf</a></td><td>465.01 KB</td> </tr> </tbody> </table> http://crackingdrupal.com/blog/ben-jeavons/drupal-security-presentation-slides-badcamp#comments Drupal security Sun, 18 Oct 2009 19:33:49 +0000 Ben Jeavons 36 at http://crackingdrupal.com Drupal text filtering decision cheat sheet http://crackingdrupal.com/blog/greggles/drupal-text-filtering-decision-cheat-sheet <p>This flowchart is based on the one that <a href="http://heine.familiedeelstra.com/">Heine Deelstra</a> presented at Drupalcon Paris.</p> <p>I'm hopeful that the presentation will be helpful in eliminating <a href="http://crackingdrupal.com/blog/greggles/what-kinds-security-problems-exist-drupal">Drupal's most common security issue</a>!</p> <p><a href="http://crackingdrupal.com/sites/crackingdrupal.com/files/filtering_text_0.pdf"><img src="http://crackingdrupal.com/sites/crackingdrupal.com/files/filtering_text_thumbnail.png" /></a></p> <table id="attachments" class="sticky-enabled"> <thead><tr><th>Attachment</th><th>Size</th> </tr></thead> <tbody> <tr class="odd"><td><a href="http://crackingdrupal.com/sites/crackingdrupal.com/files/filtering_text_0.pdf">filtering_text.pdf</a></td><td>55.82 KB</td> </tr> </tbody> </table> http://crackingdrupal.com/blog/greggles/drupal-text-filtering-decision-cheat-sheet#comments cheat sheet Drupal security XSS Thu, 08 Oct 2009 16:39:54 +0000 greggles 34 at http://crackingdrupal.com