TITLE: Blank'N'Berg Directory Traversal and Cross-Site Scripting
SECUNIA ADVISORY ID: SA19520
VERIFY ADVISORY: http://secunia.com/advisories/19520/
CRITICAL: Less critical
IMPACT: Cross Site Scripting, Exposure of system information
WHERE: >From remote
SOFTWARE: Blank'N'Berg 0.x http://secunia.com/product/9153/
DESCRIPTION: Amine ABOUD has discovered a vulnerability and a weakness in Blank'N'Berg, which can be exploited by malicious people to disclose system information and conduct cross-site scripting attacks.
1) Input passed to the "_path" parameter in index.php is not properly sanitised before being used to list directories and files. This can be exploited to disclose the contents of arbitrary directories via directory traversal attacks.
2) Input passed to the "_path" parameter in index.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.
The vulnerability and the weakness have been confirmed in version 0.20060215. Other versions may also be affected.
SOLUTION: Edit the source code to ensure that input is properly sanitised.
PROVIDED AND/OR DISCOVERED BY: Amine ABOUD
ORIGINAL ADVISORY: http://www.silitix.com/bnb.php
About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities.
Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/
Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor.