We have helped our customers to fix 23 754 vulnerabilities
+41 22 723 24 24 | sales@htbridge.com | Request Call Back
ImmuniWeb® by High-Tech Bridge


High-Tech Bridge Newsletter

Subscribe to our newsletter and receive some or all of our corporate news, invitations to security events or HTB Security Advisories – you choose what you want to receive.

Multiple Vulnerabilities in KaiBB

Advisory ID:HTB22747
Product:KaiBB
Vendor:Mi-Dia
Vulnerable Versions:1.0.1 and probably prior
Tested Version:1.0.1
Advisory Publication:December 9, 2010 [without technical details]
Vendor Notification:December 9, 2010
Public Disclosure:December 23, 2010
Vulnerability Type:Cross-Site Scripting [CWE-79]
SQL Injection [CWE-89]
Risk Level:High
CVSSv2 Base Scores:5 (AV:N/AC:L/Au:N/C:N/I:P/A:N)
7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in KaiBB which could be exploited to perform script insertions and SQL injection attacks.

1) Script insertion vulnerability in KaiBB
Input passed to the "[url]" BBCode tag is not properly sanitized. A remote attacker can insert arbitrary HTML and script code, which will be executed in user`s browser in context of the vulnerable website when user views the malicious data.
Exploitation example:
[img][url=http://1 onerror=javascript:alert(document.cookie);"']Text Here[/url][/img]

2) SQL injection vulnerabilities in KaiBB
2.1 The vulnerability exists due to input sanitation errors in the "user" parameter in index.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation example:
http://[host]/index.php?user=999%27%20union%20select%201,@@version,3,4,5,6,7,8,9 ,10,11,12,13,14%20-- %201
2.2 The vulnerability exists due to input sanitation errors in the "term" parameter in index.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation example:
http://[host]/index.php?s=search&term=123%27/**/union/**/select/**/1,@@version,1 ,1,1/**/%23


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Currently we are not aware of any vendor-supplied patches or other solutions. The vendor was contacted in accordance to our Vendor Notification Policy but we didn't get any answer or feedback.


References:
[1] High-Tech Bridge Advisory HTB22747 - https://www.htbridge.com/advisory/HTB22747 - Multiple Vulnerabilities in KaiBB
[2] KaiBB - mi-dia.co.uk - KaiBB is a free and open source bulletin board / forum software written in PHP.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments and Opinions


Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.