ClipBucket Multiple Vulnerabilities


Description   Multiple vulnerabilities have been discovered in ClipBucket, which can be exploited by malicious people to conduct cross-site scripting, cross-site request forgery, and SQL injection attacks and compromise a vulnerable system.
1) Input passed via multiple parameters to multiple scripts is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
List of affected scripts and parameters:
<a href="http://[host]/channels.php?cat
" target="_blank">http://[host]/channels.php?cat
</a>
<a href="http://[host]/collections.php?cat
" target="_blank">http://[host]/collections.php?cat
</a>
<a href="http://[host]/groups.php?cat
" target="_blank">http://[host]/groups.php?cat
</a>
<a href="http://[host]/videos.php?cat
" target="_blank">http://[host]/videos.php?cat
</a>
2) Input passed via the "type" parameter to e.g. view_collection.php, view_channel.php, or view_item.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
3) Input passed via the "time" parameter to videos.php or channels.php is not properly sanitised in the "update_counter()" function in includes/functions.php before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
4) Input passed via the "collection" parameter to view_item.php (when "type" is set to e.g. "photos") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
5) The application allows users to perform certain actions via HTTP requests without performing proper validity checks to verify the requests. This can be exploited to e.g. add an administrative user when a logged-in administrative user visits a specially crafted web page.
6) Input passed via the "forgot_username" parameter to forgot.php (when "reset" is set to "Reset") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
7) Input passed via the "type" parameter to search_result.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
8) Input passed via the "username" POST parameter to signup.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
9) Input passed via the "sort", "page", and "seo_cat_name" parameters to channels.php and videos.php, "sort", "page", "seo_cat_name", and "time" to "collections.php" and "groups.php", and "cat", "sort", "page", "seo_cat_name" and "time" params to photos.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
10) Input passed via the "ci_id" POST parameter to ajax.php (while "mode" is set to "get_item" and "type" is set to "photos" or "videos") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
11) Input passed via the "id" POST parameter to ajax.php (while "mode" is set to "rating", "rating" is set to "1", and "type" is set to "video", "photo", "collection", or "user", and "mode" is set to "add_to_fav" and "type" is set to "video", "photo", or "collection" ) is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
12) Input passed via the "cid" POST parameter to ajax.php (while "mode" is set to "get_item", "add_new_item", or "remove_collection_item" and "type" is set to "photos" or "videos") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
13) Input passed via the "query" GET paramete to search_result.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
This vulnerability is confirmed in version 2.6-r738 and 2.6-r738-security-fixed-p2. Prior versions may also be affected.
14) The application bundles a vulnerable version of Open Flash Chart.
For more information:
SA37903
The vulnerabilities #1 through #12 and #14 are confirmed in version 2.6-r738 and 2.6-r738-security-fixed-p3. Other versions may also be affected.
15) Input passed via the "email" POST parameter to signup.php (when "agree" is set to "yes" and "username", "password", "cpassword", "country", "gender", "dob", "category", and "signup" are set) is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
This vulnerability is confirmed in version 2.6-r738-security-fixed-p3. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
ClipBucket 2.x
     
Solution   Update to version 2.6-r738-security-fixed-p3 which fixes vulnerability #13. No official solution is currently available for the remaining vulnerabilities.
     
CVE   CVE-2012-5849
     
References   AkaStep:
http://packetstormsecurity.org/files/114844/ClipBucket-2-Blind-SQL-Injection.html
Offensive Security:
http://www.exploit-db.com/exploits/20666/
http://www.exploit-db.com/exploits/20708/
Netsparker
Web Application Security Scanner:
http://www.mavitunasecurity.com/xss-vulnerabilities-in-clipbucket/
HTB23125:
https://www.htbridge.com/advisory/HTB23125
Gabby:
http://packetstormsecurity.com/files/123480/clipbucket-shell.txt
Iranian Exploit DataBase:
http://www.iedb.ir/exploits-1830.html
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - GET : suspicious 'iframe' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'meta' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious OR statement in URL
3.2.0
XSS - Prevention - GET : suspicious tag with event found in URL
3.2.0
XSS - Prevention - GET : suspicious 'applet' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious combination of 'OR' or 'AND' statements in URL
3.2.0
SQL injection Prevention - GET : suspicious CREATE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious CAST statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENROWSET statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DECLARE statement in URL
3.2.0
XSS - Phishing : suspicious 'div' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' attribute found in URL
3.2.0
XSS - Prevention - GET : suspicious 'img' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENQUERY statement in URL
3.2.0
SQL injection Prevention - GET : suspicious shutdown statement in URL
3.2.0
SQL injection Prevention - GET : suspicious UNION SELECT statement in URL
3.2.0
SQL injection Prevention - GET : possible database version probing
3.2.0
XSS - Phishing : suspicious 'a' tag found in URL
3.2.0
XSS - Prevention - GET : cookie access attempt using script language found in URL
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
3.2.0
XSS - Prevention - GET : suspicious 'embed' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'object' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious SELECT statement in URL
3.2.0
XSS - Phishing : suspicious 'form' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious INSERT statement in URL
3.2.0
XSS - Prevention - GET : javascript code found in URL
3.2.0
SQL injection Prevention - GET : suspicious DROP statement in URL
3.2.0
SQL injection Prevention - GET : suspicious EXEC statement in URL
3.2.0
XSS - Prevention - GET : evasion attempt using tag characters encoding in URL
3.2.0
SQL injection Prevention - GET : block comment delimiters in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' tag found in URL
3.2.0
XSS - Phishing : suspicious 'link' tag found in URL
3.2.0
XSS - Prevention - GET : 'script' tag found in URL
3.2.0
XSS - Prevention - GET : 'location' javascript object found in URL
3.2.0
XSS - Prevention - GET : suspicious 'div' tag found in URL
3.2.0
SQL injection Prevention - GET : suspicious SQL statement in header
4.0.0
     


 
 
 
 
 Risk level 
High 

 Vulnerability First Public Report Date 
2012-01-09 

 Target Type 
Server 

 Possible exploit 
Remote