Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 CRITICAL UPDATE to Canonical Code proddetail.php
Author « Topic »  

ITZAP
Ecommerce Template Guru

Australia
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 12/14/2020 :  19:08:00  
[url="https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=104554"][blue]This Tips and Tricks topic here[/blue][/url] contains PHP code to dynamically generate canonical url and Facebook og:url entries in the [purple]<head>[/purple] of your [maroon]proddetail.php[/maroon] page.

An issue has arisen where a site was identified as [red]subject to an XSS (Cross Site Scripting) vulnerability[/red]. The culprit was identified to be this line of code:

[font=Courier New]return $url.($addprod&&@$_GET['prod']!=''?'?prod='.@$_GET['prod']:'');} ?>[/font=Courier New]

If you have used this dynamic code on your website then, on advice from Vince, please NOW REPLACE that line with the following:

[size=3][font=Courier New][red]return str_replace('"','&quot;',strip_tags($url.($addprod&&@$_GET['prod']!=''?'?prod='.@$_GET['prod']:'')));} ?>[/red][/font=Courier New][/size=3]

For more complete information, please view the relevant [url="https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=104554"][blue]Tips and Tricks topic here >>[/blue][/url]

Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000