thorough security audit and permissions functionality

spiderman - June 20, 2008 - 13:29
Project:Discuss This!
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:critical
Assigned:spiderman
Status:closed
Description

a major piece of work I've yet to complete for this module is to review it for security holes and ensure that the access permissions are working as desired.

#1

spiderman - June 23, 2008 - 17:34
Priority:normal» critical

will be committing a patch for this later today..

#2

spiderman - June 23, 2008 - 19:07
Status:active» fixed

considering this fixed as of commit #123086, tho I'm not 100% sure I've done the right thing with the check_plain I added in the _discussthis_set_topic function..

#3

toemaz - June 24, 2008 - 12:06

<?php
$result
= db_query(db_rewrite_sql($sql), check_plain($title));
?>

check_plain is not required here because $title is checked when injected into the query.

#4

spiderman - June 24, 2008 - 12:42

ah, sweet- thanks for the tip! i kinda thought i was being overzealous, but didn't want to be underzealous, anyway ;)

i'll remove that line in a subsequent commit, and consider this issue closed. fortunately, the module doesn't really do anything much with user input, so it's relatively easy to keep things secure.

#5

Anonymous (not verified) - July 8, 2008 - 12:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.