// Nucleus CMS v3.01 addcoment/itemid SQL Injection Proof of Concept // By aCiDBiTS acidbits@hotmail.com 24-July-2004 // // Nucleus CMS (http://nucleuscms.org) is a weblog php+mysql application. // // This Proof of Concept dumps the username and MD5(password) of the admin user placed at first position // of members table. First of all checks if we can use "union select" or it isn't patched and then if first // member is admin. // // Usage (in my debian box): // php4 -q nuc_addc_poc.php URL
// Vulnerability description // // In action.php, function addcoment, there's no user input sanization for parameter itemid. In line 65: // $blogid = getBlogIDFromItemID($post['itemid']); // This allows to inject SQL to get data form the database. // // Solution // // Modify line 65 with: // $blogid = getBlogIDFromItemID(intval($post['itemid']));
echo "+-------------------------------------------------------------------+\n| Nucleus CMS v3.01 addcoment/itemid SQL Injection Proof of Concept |\n| By aCiDBiTS acidbits@hotmail.com 24-July-2004 |\n+-------------------------------------------------------------------+\n\n";