High-Tech Bridge SA Security Research Lab has discovered two vulnerabilities in boastMachine which could be exploited to perform cross-site scripting attacks and execute arbitrary SQL commands in application`s database.

1) Cross-site scripting (XSS) vulnerability in boastMachineThe vulnerability exists due to input sanitation error in the "key" parameter in index.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.Exploitation example:http://host/?action=search&title=item&blog=1&key=%22%3E%3Cscript%3Ealert%28docum ent.cookie%29%3C/script%3E

2) SQL injection vulnerability in boastMachine: CVE-2008-0422The vulnerability exists due to input sanitation error in the "id" parameter in mail.php. A remote attacker can send a specially crafted HTTP GET 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.This vulnerability was independently discovered by Virangar Security Team (http://seclists.org/bugtraq/2008/Jan/301).Exploitation example:http://host/mail.php?blog=1&id=-1%27+union+select+1,2,user%28%29,4+--+

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 HTB22398 - https://www.htbridge.com/advisory/HTB22398 - Multiple Vulnerabilities in boastMachine [2] boastMachine - boastology.com - BoastMachine is an open source, state of art blogging platform written in PHP, the world's most popular web scripting language. [3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures. [4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.

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.