VP-ASP provides extensive security features including:
If the database is in the same directory as the rest of VP-ASP files any hacker can steal it.
Please move the database to a directory not viewable from the web
After you move the database follow the instructions in the previous page to update the xdblocation field in shop$config.asp
For extra security you should hide the name of the VP-ASP administration login page. By default this page is called shopadmin.asp.
Hackers will not be able to even locate the VP-ASP administration page once you follow these steps:
form action="
%=getconfig("xadminpage")%>" method="post" name="LoginForm" id="LoginForm">
form action="newloginpage.asp" method="post" name="LoginForm" id="LoginForm">|
Xadminpage |
Youradminpage.asp - this needs to be different from the name you selected. This is so a hacker cannot see the name of your login page if they manage to gain access to your data somehow. |
|
Xshowadmin |
No prevents VP-ASP from ever listing the above page |
const SecondPassword="myownpassword"
Now when you login to the VP-ASP administration system, this screen will be displayed.

The first password is your normal password in the database
Password 2 is the one you just entered in shopadmin.asp
Convert… |
all files starting with convert |
diag_sessionlist.asp |
Lists Session variables. |
diag_dbtest.asp |
Tests database and mail. |
Vpdemo.. |
If not using the demo shop |
If you have problems and report them to VP-ASP Support Group we may ask that you restore diag_sessionlist.asp and diag_dbtest.asp so that we can diagnose your problems quickly.
The hackers table can be set to have a record with e-mail addresses or IP addresses of customers whom you do not wish to allow to shop in your store. Additional logic could be added to shophacker.asp to do additional checking.
Xhackercheck |
Yes If yes, then the order is checked against the hackers table and hacker countries |
Xhackercountries |
XX,YY A list of valid country abbreviations. If an order is attempted from these countries, it will not be allowed |
When using this facility a message will appear in the form. The number at the end tells you the reason why the customer was rejected
You are not permitted to shop in this store - 4
4 |
The country matched a value in xhackercountries |
5 |
IP or e-mail address matched that in the hackers table |
6 |
If email address matched |
Following our other recommendations, shopadmin.asp would have been renamed to some other name. In this case you would edit the real file name ansd not shopadmin.asp as in these examples.
Const adminips="288.66" |
List of IP addresses that should be allowed to login to admin system. This is in file shopadmin.asp and NOT in the Shop Configuration |
const adminemailIpcheck="Yes" |
If you want to be notified if an attempt is made to access the admin page by an invalid IP address then set to Yes. The yes is case sensitive. It cannot be YES. |
For example of your IP address is 288.66.77.999
You can specify
const adminips="288"
this will allow anyone with IP starting with 288 to try to login
Example 2
const adminips="288.66"
Here the IP address must start with 288.66
Example 3
Multiple addresses can be used
const adminips="288,127.0.0.1,299.66"
Will allow anyone with IP address starting with 288, or 127.0.0.1 or 299.66 to login.
Const adminmail="Yes" |
Mail to merchant on each successful login to administrative system |
This is not a foolproof system but it provides a measure of protection.
One user may be able to update product details, while another may be able to view orders.
Are you accessing your Admin using HTTPS? Never access your admin using a normal HTTP. Always use the HTTPS at the start of a web address.
To force your admin page to use a HTTPS connection you can modify your shopadmin.asp file.
Open shopadmin.asp (or whatever you have renamed this page to) in any text or html editor
Lines 1 and 2 of this file should read:
!--#include file="shop$db.asp"-->
!--#include file="shopmail.asp"-->
Immediately following these two lines, add the following code to force your admin to load in HTTPS mode:
%
Response.Buffer = True
If (Request.ServerVariables("HTTPS") = "off") Then
Dim xredir__, xqstr__
xredir__ = "https://" & Request.ServerVariables("SERVER_NAME") & _
Request.ServerVariables("SCRIPT_NAME")
xqstr__ = Request.ServerVariables("QUERY_STRING")
if xqstr__> "" Then xredir__ = xredir__ & "?" & xqstr__
Response.redirect xredir__
End if
%>
Please apply below fix, if you are using VPASP 7 with build date older than 3/September/2010, to avoild XSS attack register an affiliate page (shopaffregister.asp).
Modify shopaffregister.asp.asp
1a. Open shopaffregister.asp.asp
1b. Locate line affstrTypeofpayment = CleanChars(Request.Form("affstrTypeofpayment")) (estimate line 144, within routine sub ValidateData)
1c. Below the above code, please add:
1d. Save
Credit cards, if stored in the database, should be encrypted to protect yourself against a hacker obtaining them. While we do not recommend storing credit cards, and according to Visa and MasterCard this is against their merchant rules, if you do then using encryption will provide at least an extra layer of protection.
By default the encryption key is kept in the configuration file within the database. This field should be either left blank or removed. This is in versions prior to version 6.00.
Setting Up Encryption
Version 6.00
We have now moved the encryption key to the shop$config.asp file and you should update this key prior to going live with your store.
const xencryptkey="" ' put here for more security
To your encryption key
const xencryptkey="xxxxxxxxxxx" ' put here for more security
and empty the encryption key in the shop configuration.
In the online admin go to:
Setup > Payments > xencryptcreditcard > Set to Yes (this should be Yes by default)
Version 5.50
For added security you can move the encryption key directly into file shophash.asp. So if someone steals the database, they will not also have the encryption key used for credit cards. To do this, edit shophash.asp and change this line:
const xencryptkey="" ' put here for more security
To your encryption key
const xencryptkey="xxxxxxxxxxx" ' put here for more security
and empty the encryption key in the shop configuration.
In the online admin go to:
Shop Configuration > Payments > xencryptcreditcard > Set to Yes
Retrieving Encrypted Card Numbers
When credit cards are encrypted, the only way they can be viewed decrypted again is by viewing the order in your shop administration.
Please note: Credit Card numbers of orders that were made before you setup encryption will no longer be able to be viewed.
Encryption Keys
Encryptions keys can be of any format consisting of alphabetical characters, numerical characters or both.
Examples of encryption keys
Valid Keys
· agabAhjBcG
· HKHSskjuIs
· DVstsTUYTs
Invalid Keys
· %^SGHgjgss
· Hkj&4S$hs*
It is a good idea to choose encryption keys based on just a random selection of numbers and or alphabetical characters. Make sure they are not meaningful containing names, store specific words etc.
At the end of an order the IP to country is invoked. If the country does not match the customer's country as supplied on the customer form, two changes are made to the order. The ocardtype field has the country abbreviation added and the IP address has the long country name appended. By changing the ocardtype field, certain automated end of order processing is stopped. For example order attachments and downloads. It also alerts the merchant that the order is suspicious
Xhackeriptocountry |
Yes If yes, then IP to country checks are turned on. Do not use until Iptocountry database is installed. |
IP To Country uses a public domain database that is supplied on an as-is basis. VP-ASP does not warrant that this database is complete or accurate. The database may not be updated for future IP changes. You must download this separate database from our web site. It is not supplied in the normal VP-ASP distribution.
Please apply below fix, if you are using VPASP 7 with build date older than 3/September/2010, to avoild XSS attack to product listings page.
1. Modify shop$db.asp
1a. Open shop$db.asp
1b. Locate function gennavrefstr (ref) (estimate line 2660)
1c. Replace whole function gennavrefstr, as below:
1d. Save
2. Modify shop$db.asp
2a. Open shop$db.asp
2b. Locate function CleanChars(strWords) (estimate line 3433)
2c. Replace whole function CleanChars(strWords), as below:
2d. Save
3. Modify shop$db.asp
3a. Open shop$db.asp
3b. Locate function ToSQL(Value, sType) (estimate line 3646)
3c. Replace whole function ToSQL(Value, sType), as below:
3d. Save
Hackers are a persistent nuisance on the web and a very real threat to your business. Unfortunately, no matter how hard we try, or what security measures we put in place, they find new ways to 'beat the system.'
At VP-ASP we care about your online security. We constantly check for vulnerabilities in our software and if found, put 'fixes' in place to repair them. 'Fixes' relate to specific, known hacker attacks and in many cases, apply to all releases of VP-ASP.
We have compiled the following list of 'fixes' for you to download to protect you and your online business. But for us to help you, you must help yourself. These 'fixes' MUST be implemented IMMEDIATELY.
All fixes below must be checked no matter when you purchased VP-ASP. Most will have already been applied but please go through each one to make sure you are secure.
Do it NOW, before it's too late......
If you have any concerns, or problems implementing these 'fixes,' please submit a ticket in our online help desk at:
http://www.vpasp.com/virtprog/helpdesk
To check these files against your version you can use a program called WinMerge availbale as a free download from:
Safe selling........ from the team at VP-ASP.
Please also review our general security guidelines and the security check list before going live.
Security Audits |
| VP-ASP is committed to providing it's customers with as much security help and information as possible. As such, we have employed a team of security professionals to assist in auditing your site's security from as little as US$295. For more information click here. |
At VP-ASP we are committed to helping you ensure your site is as safe and secure as possible. Failure to follow the guidelines presented below may result in your site falling victim to hacker attacks.
Have you changed your passwords? The default username and passwords used to access the admin need to be changed. Ensure that you choose a powerful password. Click here to find out how.
Have you added a 2nd password? Click here to find out how.
Have you renamed your Admin Page? It is recommended that the admin log in page is a stand-along page with no reference in the database. Click here to find out how.
Is your xadminmenucheck set to ‘YES'? Click here to find out how.
Is your xrestrictadmintables set to ‘YES'? Click here to find out how.
Is your xshowadmin set to ‘NO'? Click here to find out how.
Have you changed your database name? Change the name of the database to something unique and hard to guess. Reference this new name in the shop$config.asp file. Click here to find out how.
Have you removed all files starting with the letter “c”? Click here for a list of these files.
Have you removed all files starting with “diag”? Click here for a list of these files.
Are you encrypting credit card numbers & is your encryption code different to that of the Payments section of the config? Click here to find out how.
Are you deleting all credit card numbers? If you are taking credit card numbers into your system rather than using a Payment Gateway, do not store the details any longer than necessary. Click here for more info.
Is your database secure? Is your database in a secure location and are you sure it cannot be downloaded via a browser? Click here to find out how.
Are you accessing your Admin using HTTPS and storing credit cards? Never access your admin using a normal HTTP if you store credit cards. Always use the HTTPS at the start of a web address.
Have you kept your passwords safe & have you changed them recently? Never give out your passwords under any circumstances. Change them regularly.
Are you regularly checking our pages for Updates? Always check the Security Update and Patches pages for updates. Bookmark these pages or set them as your default home page – this way you will always be on top of new updates or security releases.
NOTE: Please read the installation instructions below carefully before starting the upgrade process!
The VP-ASP Shopping Cart updates contain all previous upgrades so you only need to install the latest upgrade.
| Download the upgrade for theFREE VP-ASP Starter Pac | Download | |
| Download the upgrade for theValue, Plus! and Deluxe Pacs. ( Requires an order number ) | Download | |
YOU DO NOT NEED TO UPLOAD THE ARCHIVE FOLDER TO YOUR SERVER.
Upload all files and foldersEXCEPTthe ARCHIVE folder to your server.
When you have done this, you can delete the UPGRADE folder and CONVERTSQL.ASP from your server.
Open this file and locate the following line near the top:
const xadminpage = "shopadmin.asp"
Change this to be the name of your current admin login page.
eg. const xadminpage = "myadminloginpage.asp"
Locate the following line, also near the top:
const xsecondpassword = ""
Change this to be your second password
eg. const xsecondpassword = "mysecondpassword"
Delete your current admin login page and rename shopadmin.asp to be the same name as your old file.
Upload the new admin login page to your server (please be sure to delete shopadmin.asp from your server if you have uploaded it).
Several new language variables have been included in thisupdate.
In your shop administration pages, go to Occassional Tasks >International >Add Language
Follow the installation steps as per the following helpnote, but substitute the word Spanish as in the example, for English -
http://www.vpasp.com/helpnotes/shopexd.asp?id=318
You will then need to Reset Language and select English.
If you have any other languages installed, you will need todownloadthem and reinstall them too.
PLEASE NOTE: Customers upgrading from VP-ASP 6.08 can skip this step.
Two new menu items have been added with this update -
YOU DO NOT NEED TO UPLOAD THE ARCHIVE FOLDER TO YOUR SERVER.
Upload all files and foldersEXCEPTtheARCHIVE, VPASP_PLUS_ONLYandVPASP_DELUXE_ONLYfolders to your server.
Open this file and locate the following line near the top:
const xadminpage = "shopadmin.asp"
Change this to be the name of your current admin login page.
eg. const xadminpage = "myadminloginpage.asp"
Locate the following line, also near the top:
const xsecondpassword = ""
Change this to be your second password
eg. const xsecondpassword = "mysecondpassword"
Delete your current admin login page and rename shopadmin.asp to be the same name
as your old file.
Upload the new admin login page to your server (please be sure to delete shopadmin.asp from your server if you have uploaded it).
Several new language variables have been included in this update.
In your shop administration pages, go to Occassional Tasks >International >Add Language
Follow the installation steps as per helpnote -http://www.vpasp.com/helpnotes/shopexd.asp?id=318
But substitute the word Spanish as in the example, for English
You will then need to Reset Language and select English.
If you have any other languages installed, you will need todownloadthem and reinstall them too.
Two new menu items have been added with this update -
If you wish, login to your admin go to OCCASIONAL TASKS >USERS >Admin Users and grant your users access to the newly added menu items.
Login to your admin and go to the Setup tab. Click Reload Configuration.
YOU DO NOT NEED TO UPLOAD THE ARCHIVE FOLDER TO YOUR SERVER.
Upload all files and foldersEXCEPTtheARCHIVE, VPASP_PLUS_ONLYandVPASP_DELUXE_ONLYfolders to your server.
Upload all files from theVPASP_PLUS_ONLYfolder to your server (upload the files into the same folder that you uploaded the files to in Step 3. Do not upload them to a folder called VPASP_PLUS_ONLY on your server).
Open this file and locate the following line near the top:
const xadminpage = "shopadmin.asp"
Change this to be the name of your current admin login page.
eg. const xadminpage = "myadminloginpage.asp"
Locate the following line, also near the top:
const xsecondpassword = ""
Change this to be your second password
eg. const xsecondpassword = "mysecondpassword"
Delete your current admin login page and rename shopadmin.asp to be the same name
as your old file.
Upload the new admin login page to your server (please be sure to delete shopadmin.asp from your server if you have uploaded it).
Several new language variables have been included in this update.
In your shop administration pages, go to Occassional Tasks >International >Add Language
Follow the installation steps as per helpnote -http://www.vpasp.com/helpnotes/shopexd.asp?id=318
But substitute the word Spanish as in the example, for English
You will then need to Reset Language and select English.
If you have any other languages installed, you will need todownloadthem and reinstall them too.
Two new menu items have been added with this update -
If you wish, login to your admin go to OCCASIONAL TASKS >USERS >Admin Users and grant your users access to the newly added menu items.
Login to your admin and go to the Setup tab. Click Reload Configuration.
YOU DO NOT NEED TO UPLOAD THE ARCHIVE FOLDER TO YOUR SERVER.
Upload all files and foldersEXCEPTtheARCHIVE, VPASP_PLUS_ONLYandVPASP_DELUXE_ONLYfolders to your server.
Upload all files from theVPASP_DELUXE_ONLYfolder to your server (upload the files into the same folder that you uploaded the files to in Step 2. Do not upload them to a folder called VPASP_DELUXE_ONLY on your server).
Open this file and locate the following line near the top:
const xadminpage = "shopadmin.asp"
Change this to be the name of your current admin login page.
eg. const xadminpage = "myadminloginpage.asp"
Locate the following line, also near the top:
const xsecondpassword = ""
Change this to be your second password
eg. const xsecondpassword = "mysecondpassword"
Delete your current admin login page and rename shopadmin.asp to be the same name
as your old file.
Upload the new admin login page to your server (please be sure to delete shopadmin.asp from your server if you have uploaded it).
Several new language variables have been included in this update.
In your shop administration pages, go to Occassional Tasks >International >Add Language
Follow the installation steps as per helpnote -http://www.vpasp.com/helpnotes/shopexd.asp?id=318
But substitute the word Spanish as in the example, for English
You will then need to Reset Language and select English.
If you have any other languages installed, you will need todownloadthem and reinstall them too.
Two new menu items have been added with this update -
If you wish, login to your admin go to OCCASIONAL TASKS >USERS >Admin Users and grant your users access to the newly added menu items.
Login to your admin and go to the Setup tab. Click Reload Configuration.
PROBLEM:After applying the update, I receive the following error:
Microsoft VBScript compilation error '800a0411'
Name redefined
/shopping/shop$version.asp, line 2
const xvpaspversion = "6.09"
SOLUTION:Open shop$config.asp and locate the following line:
const xvpaspversion = "6.08"
Change it to:
'const xvpaspversion = "6.08"
PROBLEM:After applying the update, I receive the following error in shopa_addproduct.asp:
Microsoft VBScript runtime error '800a005e'SOLUTION: Re-download patch and replace existing copy of shopa_addproduct.asp with new one from patch zip.
PROBLEM: After applying the update, the HTML editor no longer appears.
SOLUTION: Re-download patch and copy EDITOR folder from patch zip over the top of your existing EDITOR folder.
PROBLEM: After applying the update, hidden categories show in shopdisplaycategories.asp
SOLUTION: Re-download patch and copy shopdisplaycategories.asp from patch zip over the top of your existing shopdisplaycategories.asp file.
PROBLEM: After applying the update, when I try to run a Static HTML Generation, I receive this error:
Missing } on field starting at 22
SOLUTION: Re-download patch and copy shopfileio.asp from patch zip over the top of your existing shopfileio.asp file. If you are using the default templates, also copy over tmp_product.htm, tmp_productinvent.htm and tmp_productformat.htm.
PROBLEM: After applying the update, when I try to run a Static HTML Generation, I receive this error:
Missing } on field starting at 22
SOLUTION: Please try making the following changes to your shoptax.asp file:![]() |
Back | ![]() |
Printable Version | ![]() |
Search other topics | ![]() |
Submit a Ticket |