New Zenner
- Join Date:
- Sep 2009
- Location:
- /dev/null
- Posts:
- 19
- Plugin Contributions:
- 0
Cross Site Request Forgery - v1.3.8
My first bug report.
I have tested on two installations of ZenCart with all patches and still working.
Cross-site Request Forgery (Wikipedia):
Cross-site Request Forgery (CSRF) is a type of malicious exploit of a website whereby unauthorized commands are transmitted from a user that the website trusts. Unlike cross-site scripting (XSS), which exploits the trust a user has for a particular site, CSRF exploits the trust that a site has in a user's browser.
Affected URL: http://www.yourstore.com (Home)
<form name="currencies_form" action="http://www.yourstore.com/index.php?main_page=index" method="get"> ... </form>
Affected URL: http://www.yourstore.com/index.php?main_page=products_new
<form name="sorter_form" action="http://www.yourstore.com/index.php?main_page=products_new" method="get"> ... </form>
Affected URL: http://www.yourstore.com/index.php?main_page=products_new
<form name="multiple_products_cart_quantity" action="http://www.yourStore.com/index.php?main_page=products_new&disp_order=6&action=multiple_products_add_product" method="post" enctype="multipart/form-data"> ... </form>
Affected URL: http://www.YourStore.com/index.php?main_page=featured_products
<form name="sorter_form" action="http://www.YourStore.com/index.php?main_page=featured_products" method="get"> ... </form>
Affected URL: http://www.YourStore.com/index.php?main_page=featured_products
<form name="multiple_products_cart_quantity" action="http://www.yourstore.com/index.php?main_page=featured_products&disp_order=1&action=multiple_products_add_product" method="post" enctype="multipart/form-data"> ... </form>
Affected URL: http://www.yourstore.com/index.php?main_page=products_all
<form name="sorter_form" action="http://www.YourStore.com/index.php?main_page=products_all" method="get"> ... </form>
Affected URL: http://www.YourStore.com/index.php?main_page=products_all
<form name="multiple_products_cart_quantity" action="http://www.YourStore.com/index.php?main_page=products_all&disp_order=1&action=multiple_products_add_product" method="post" enctype="multipart/form-data"> ... </form>
Affected url: http://www.yourstore.com/index.php?main_page=contact_us
<form name="contact_us" action="http://www.yourstore.com/index.php?main_page=contact_us&action=send" method="post"> ... </form>
Affected URL: http://www.yourstore.com/index.php?main_page=discount_coupon
<form action="http://www.yourstore.com/index.php?main_page=discount_coupon&action=lookup" method="post"> ... </form>
Affected URL: http://www.yourstore.com/index.php?main_page=password_forgotten
<form name="password_forgotten" action="http://www.YourStore.com/index.php?main_page=password_forgotten&action=process" method="post"> ... </form>
I'm not a PHP-programmer and I cannot supply any temporal patch but the solution I have found for this one (by searching through Google ;p) is to protect the forms and urls with tokens for later being checked by the server.
Peace :cool: