Heine

  • home
  • drupal
  • drupal core commits
  • about
Home

Planet Drupal

Keeping an eye on Drupal core

Heine — Mon, 30/07/2007 - 00:56

To more efficiently review code changes in Drupal I've decided to write a little bot that regularly reads the RSS feed of Drupal core commits. It then downloads the referenced patches and creates new content on this site (example) under the category Drupal Core.

As this is a taxonomy term, it comes with the Drupal benefit (tm) of an RSS feed, I now use to quickly review commits to core.

  • Drupal
  • Planet Drupal
  • 1 comment
  • Read more

IN (%s); a security vulnerability waiting to happen

Heine — Tue, 19/06/2007 - 00:14

I've written before about (ab)using %s in IN clauses such as:

// BAD ($from_user is an array of numbers):
db_query("SELECT t.s FROM {table} t WHERE t.field IN (%s)", implode(',', $from_user));

The problem with such a query is that you open the possibility that a code path develops where unfiltered content ends up in the variable and thus in your query.
Here's a simplified, real life example where this happened during a bugfix.

  • Drupal
  • Planet Drupal
  • Security
  • 1 comment
  • Read more

Do a quick security review when porting your module

Heine — Thu, 22/02/2007 - 09:48

Adapted from a mail I sent to the Drupal development list.

Porting a module is an excellent opportunity to keep an eye out for security problems (evidence: DRUPAL-SA-2006-031). Here's a quick security reminder regarding input (user-supplied data). Code samples are only included to make a point, do not hold them against me.

  • Drupal
  • Planet Drupal
  • Security
  • Add new comment
  • Read more

Gain administrator privileges via an XSS vulnerability in Recipe

Heine — Tue, 20/02/2007 - 23:53

For those with the tendency to downplay cross site scripting (XSS) vulnerabilities, a small videocast on how a vulnerability in the contributed module Recipe can get an attacker administrator access to a Drupal site. The vulnerability was fixed with DRUPAL-SA-2006-014 a long time ago, so I feel it's safe to publish the video now.

» Videocast.

  • Drupal
  • Planet Drupal
  • Security
  • Add new comment
  • « first
  • ‹ previous
  • 1
  • 2
  • 3
Syndicate content

Recent posts

  • The #drupal consultant
  • Varnish vs. page cache graph
  • FAPI - How to decrease/increase the text limit of textfields?
  • How do I recreate a Javascript translation file?
  • Implemented hook_block, now all blocks are gone
more

Tags

Captcha Consulting Drupal FAPI IIS Let's hope it doesn't become popular Performance PHP Pitfalls Planet Drupal Security Varnish
more tags
  • home
  • drupal
  • drupal core commits
  • about

Copyright © 2009 by Heine Deelstra. All rights reserved.