See: http://drupal.org/node/167284

%s should never be used without quotes around it. There are some bad uses in project*, but Chad and I looked at the code and none look like actual vulnerabilities.

in project:

release/project-release-create-history.php:96:

$query = db_query("SELECT DISTINCT(prn.pid), tn.tid FROM {project_release_nodes} prn INNER JOIN {term_node} tn ON prn.nid = tn.nid WHERE tn.tid IN (%s)", implode(',', array_keys($api_terms)));

Comments

hunmonk’s picture

Priority: Normal » Critical

since this is a future defensive programming change, i'm not going to hold up our pending release for it. up'ing the priority to make sure it gets taken care of soon, though.

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new1.34 KB
dww’s picture

StatusFileSize
new1.36 KB

or, better yet...

drewish’s picture

StatusFileSize
new1.34 KB

I don't really have CVS setup right to test this but after fixing the following:

Parse error: syntax error, unexpected ')' in project-release-create-history.php on line 108

it looks good to me.

dww’s picture

tee hee, thanks. ;) that second patch was thrown together quickly and was untested...

hunmonk’s picture

Status: Needs review » Reviewed & tested by the community

looks good to me.

dww’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD, thanks all.

Anonymous’s picture

Status: Fixed » Closed (fixed)