Contributions

Credit Modules (Category Index)
Search: 

Contact Us Form Vunerability Fix

Fix for osCommerce "Contact_us" Cross Site Scripting Vulnerability.

A vulnerability was reported in osCommerce, which can be exploited by attackers to conduct Cross Site Scripting attacks. The problem resides in the "contact_us.php" file when handling the "enquiry" parameter, which may be exploited to cause arbitrary scripting code to be executed by the user's browser.

This contribution gives a fix for this vunerability.

Expand All / Collapse All

thanks Jonathan Mitchell 2 Jul 2005

nice !!
just to let you know that you can do the same thing on
checkout_payments.php
checkout_shipping.php
products_reviews_write.php
tell_a friend.php
if you use checkout_shipping.php?comments=%3C/textarea%3E%3Cscript%3Ealert('w00t');%3C/script%3E

do the same for all instances of tep_draw_textarea_filed as you did with the fix below replacing enquiry for the variable used (eg in checkout_shipping.php its comments)
for the checkout_* you need to be logged in and / or attempting to buy something

Thanks for the correct fix stephen :)

This Should Help Stephen Walker 1 Jul 2005
didnt work for me, this did localhost 808 1 Jul 2005
Contact Us Form Vunerability Fix Emmett 3 Mar 2005
Contact Us Form Vunerability Fix - LOOK! PopTheTop 3 Mar 2005
Contact Us Form Vunerability Fix Emmett 1 Mar 2005
Contact Us Form Vunerability Fix Emmett 1 Mar 2005
Contact Us Form Vunerability Fix Emmett - 1 of VN2 1 Mar 2005

Note: Contributions are used at own risk.