High-There are multiple vulnerabilities in Banana Dance, which can be exploited to gain access to sensitive information, perform SQL injection attacks and compromise vulnerable system.
Vulnerable Systems:
* Banana Dance B.2.6 and probably prior
1) PHP File Inclusion in Banana Dance: CVE-2012-5242
Input passed via the "name" POST parameter to "/functions/ajax.php" is not properly verified before being used in
"include_once()" function and can be exploited to include arbitrary local files. This can be exploited to include local
files via directory traversal sequences and URL-encoded NULL bytes.
The following PoC (Prof-of-Concept) demonstrates the vulnerability:
2) Improper Access Control in Banana Dance: CVE-2012-5243
The application does not restrict access to the "/functions/suggest.php" script to unauthenticated users. A remote
attacker can read arbitrary information from database.
The following PoC reads data from the 'bd_users' table:
3.1 Input passed via the "return", "display", "table" and "search" POST parameters to "/functions/suggest.php" is not
properly sanitised before being used in SQL query. Although the "mysql_real_escape_string()" function is called on the
input it has no effect due to usage of the ` quotes in SQL query. This vulnerability can be exploited to manipulate SQL
queries by injecting arbitrary SQL code.
The following PoC demonstrates the vulnerability:
<form action="http://[host]/functions/suggest.php"; method="post">
<input type="hidden" name="return" value="id`,version() AS version FROM bd_users LIMIT 1 -- " />
<input type="hidden" name="display" value="version" />
<input type="submit" id="btn">
</form>
3.2 Input passed via the "id" GET parameter to "/functions/widgets.php" is not properly sanitised before being used in
SQL query. This vulnerability can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
3.3 Input passed via the "category" GET parameter to "/functions/print.php" is not properly sanitised before being used
in SQL query. This vulnerability can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
3.4 Input passed via the "name" GET parameter to "/functions/ajax.php" is not properly sanitised before being used in
SQL query. This vulnerability can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
The following PoC demonstrates the vulnerability:
<form action="http://[host]/functions/ajax.php"; method="post">
<input type="hidden" name="action" value="get_template" />
<input type="hidden" name="name" value="' OR 1=(select min(@a:=1)from (select 1 union select 2)k group by (select
concat(@@version,0x0,@a:=(@a+1)%2))) -- " />
<input type="submit" id="btn">
</form>