If this is your first visit, check our documentation. To post, register or login.
Forums / Contribution-Writing Guidelines / Detailed description of the sanitation of url parameters

Detailed description of the sanitation of url parameters

Started by torvista on 26 Mar 2016, 4:58 PM · Views: 7,216

Results 1 to 6 of 6
26 Mar 2016, 4:58 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Detailed description of the sanitation of url parameters

I am investigating a problem with an add-on that I think is related to the (POST) sanitation measures put in place in ZC 1.55 for URL parameters.
I read in the last couple of days a detailed description of these measures...but I cannot find this information now.
Can someone please post a link...
thanks Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Mar 2016, 9:23 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Detailed description of the sanitation of url parameters

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Mar 2016, 10:27 PM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Detailed description of the sanitation of url parameters

Thanks

...is also in the readme
I thought that was where I had seen it but I still cannot find where...!!

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

16 May 2021, 3:26 PM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Detailed description of the sanitation of url parameters

If I want to use a new GET parameter on certain pages, I think it needs to be added to the $params_to_check array in
includes\application_top.php,

Is there a mechanism to add the new parameter dynamically/not touch core code?

Or it is this?
https://docs.zen-cart.com/dev/code/admin_sanitization/#for-developers-how-to-use-the-sanitization-in-plugins

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

17 May 2021, 2:03 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Detailed description of the sanitation of url parameters

torvista:

If I want to use a new GET parameter on certain pages, I think it needs to be added to the $params_to_check array in
includes\application_top.php,

Is there a mechanism to add the new parameter dynamically/not touch core code?

Or it is this?
https://docs.zen-cart.com/dev/code/admin_sanitization/#for-developers-how-to-use-the-sanitization-in-plugins

Are you trying to address sanitization on the admin side, the catalog side, or both?

The first part about an array within the includes/application_top.php file is catalog side, while the linked article is for admin.

I don't see that there is any direct ability to modify the contents of those arrays without directly editing the file. It would be possible either before or after this area to do something similar.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 May 2021, 10:34 AM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Detailed description of the sanitation of url parameters

Catalog side, thanks.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...