Sql injection in PostNuke [Admin section]

2006.10.03
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-Other


CVSS Base Score: 7.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

Hi, There is a sql injection bug in PostNuke 0.762 admin section (and maybe before versions) . The "hits" parameter is not checked properly before be used in sql query : File /modules/Downloads/admin.php, Line 1586 : :: $dbconn->Execute("INSERT INTO $downtable :: ($column[lid], :: $column[cid], :: $column[sid], :: $column[title], :: $column[url], :: $column[description], :: $column[date], :: $column[name], :: $column[email], :: $column[hits], :: $column[submitter], :: $column[downloadratingsummary], :: $column[totalvotes], :: $column[totalcomments], :: $column[filesize], :: $column[version], :: $column[homepage]) :: VALUES :: (" . (int)pnVarPrepForStore($newid) . ", :: " . (int)pnVarPrepForStore($cat[0]) .", :: " . (int)pnVarPrepForStore($cat[1]) .", :: '" . pnVarPrepForStore($title) . "', :: '" . pnVarPrepForStore($url) . "', :: '" . pnVarPrepForStore($description) . "', :: " . $dbconn->DBTimestamp(time()) . ", :: '" . pnVarPrepForStore($name) . "', :: '" . pnVarPrepForStore($email) . "', ** " . pnVarPrepForStore($hits) . ", :: '" . pnVarPrepForStore($submitter) . "', :: 0, :: 0, :: 0, :: '" . pnVarPrepForStore($filesize) . "', :: '" . pnVarPrepForStore($version) . "', :: '" . pnVarPrepForStore($homepage) . "')"); The bug is in admin section, so it doesnt seem to be critical . Also, "PostNuke 0.800 Milestone 2" has been released . - Omid


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top