SA-2007-030 (17 October 2007) API handling of unpublished comment.

  • Advisory ID: DRUPAL-SA-2007-030
  • Project: Drupal core
  • Version: 4.6.x, 4.7.x, 5.x
  • Date: 2007-October-17
  • Security risk: Not critical
  • Exploitable from: Remote
  • Vulnerability: Access bypass

The publication status of comments is not passed during the hook_comments API operation, causing various modules that rely on the publication status to mail out unpublished comments.

The official announcement for Drupal 4.7.x and 5.x is here, and the official patch for Drupal 4.7.x is here.

Considerations for Drupal 4.6

The same exploit seen in comment_save() in Drupal 4.7 is present in 4.6 via the function comment_post(), and therefore Drupal 4.6 must be patched against this vulnerability, using the same approach as the official 4.7 patch.