Zen Cart Logo
Forums / Bug Reports / [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

[Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Locked

Views: 61,664

Results 61 to 80 of 225
This thread is locked. New replies are disabled.
3 Oct 2010, 6:56 AM
#61
acpaulley avatar

acpaulley

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

[Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

DrByte:

Making the changes discussed in this thread can't break the storefront, since they're only applicable to the admin side.

You must have something else wrong in your storefront files.
ref: https://www.zen-cart.com/tutorials/index.php?article=82

This is a brand new install. I installed it less than an hour ago, and the first change I'm trying to make to the store is the Main Page text. If I delete the extra_white_list.php file, the site works again (albeit the HTML tags are not rendered). If I upload it again, the site breaks.

I've even tried uploaded this new file to /includes/extra_configures and /admin/includes/extra_configures... and whenever I upload it either, that section of the site breaks... if its in the admin/includes/extra_configures folder, the admin sections breaks... if its in the /includes/extra_configures folder

The ONLY change I'm making is uploading this new whitelists file... if it's there, the site doesn't render and that FAQ didn't help because the site doesn't even generate any errors.

3 Oct 2010, 7:05 AM
#62
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

The correct location is under /admin/includes/extra_configures/
And if that's causing the admin to break, then you've got bad content in the file. Again, see the link I posted to you previously.
Maybe your copy+paste isn't reliable on your PC?

.
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.

3 Oct 2010, 7:17 AM
#63
acpaulley avatar

acpaulley

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

DrByte:

The correct location is under /admin/includes/extra_configures/
And if that's causing the admin to break, then you've got bad content in the file. Again, see the link I posted to you previously.
Maybe your copy+paste isn't reliable on your PC?

Thank you -- for some inexplicable reason, my copy and paste was adding \ at the end of every line, but it wasn't showing in Notepad. I opened the file up in Dreamweaver to look at the code and saw the extra 's... I rebooted the computer and it stopped doing that.

Thanks!

3 Oct 2010, 1:48 PM
#64
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Most "editor" software written by microsoft is going to do that to you.

Better to use Notepad++ as a solid free replacement for MS Notepad.

http://notepad-plus.sf.net

.
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.

3 Oct 2010, 4:04 PM
#65
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

after being kindly guided to this thread i added the file and the define page issue was resolved.

It hasn't resolved the same problem in the news and article mod manager.

Articles created there are showing as source HTML on the store side.

Any ideas?

3 Oct 2010, 4:15 PM
#66
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

DVDTitan:

It hasn't resolved the same problem in the news and article mod manager.
Article manager is not in the white list...

NOTE: THE FOLLOWING CODE HAS/MAY HAVE BEEN SUPERCEDED BY THIS POST: http://www.zen-cart.com/forum/showthread.php?p=941839#post941839

Not familiar with that 3rd party mod, I do not know the variable to add to

$my_whitelist  = array('file_contents', 'banners_html_text', 'pages_title', 'message_html');

Zen-Venom Get Bitten

3 Oct 2010, 5:08 PM
#67
smilyspirit avatar

smilyspirit

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Great fix.. It was weird. My site was displaying the html just fine up until today... I upgraded a few days ago and now it works again! Thanks for the info!

3 Oct 2010, 6:51 PM
#68
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

kobra:

Article manager is not in the white list...

NOTE: THE FOLLOWING CODE HAS/MAY HAVE BEEN SUPERCEDED BY THIS POST: http://www.zen-cart.com/forum/showthread.php?p=941839#post941839

Not familiar with that 3rd party mod, I do not know the variable to add to

$my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html');


Thanks for this, what info am i looking for in the news and article mod files to add to the white list file?
3 Oct 2010, 7:05 PM
#69
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

The <input> field name of the content that you're saying is mangled.

.
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.

3 Oct 2010, 7:25 PM
#70
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

DrByte:

The <input> field name of the content that you're saying is mangled.

Looking at the news.php file could it be this?

$news_article_text = zen_db_prepare_input($_POST['news_article_text'][$lang['id']]);

4 Oct 2010, 7:46 AM
#71
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Just to let anyone know who is also struggling with source HTML in the news and article manager i added to the suggested file in this thread two inputs from this mod so my file reads as follows:

<?php
$global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array();
$my_whitelist  = array('file_contents', 'banners_html_text', 'pages_title', 'message_html','news_article_text','news_article_shorttext');
$global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist);
```This appears to have resolved the issue with this mod. I will also post this in the news and article mod thread as well for assistance there.
4 Oct 2010, 8:21 AM
#72
yosemirza avatar

yosemirza

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

After applying the code mention before, there is still a problem on EZpages address.

When I put:
index.php?main_page=product_info&cPath=1&products_id=3

It changed into:
index.php?main_page=product_info&cPath=1&products_id=3

on the address bar.

Thanks

4 Oct 2010, 9:03 AM
#73
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Same with me I am afraid. All the ezpage internal links are broken.
/index.php?main_page=product_info**&**cPath=65&products_id=180

I don't know how to fix this?

4 Oct 2010, 4:17 PM
#74
p1lot avatar

p1lot

New Zenner

Join Date:
May 2009
Posts:
69
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

i experience the error for the shopping cart if attributes have special chars in them, how can i put that on the xss whitelist?

4 Oct 2010, 7:24 PM
#75
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

For the EZPages Internal Links see the current settings at:
http://www.zen-cart.com/forum/showthread.php?p=941839#post941839

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Oct 2010, 7:40 PM
#76
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ajeh I have a question for you. I uploaded the /admin/includes/extra_configures/extra_white_list.php but still it shows like this when updating or submitting a new item. Any idea what I did wrong or is there something else I need to do. Shows ok on the catalog side. Thank you

<p><font face="VERDANA, HELVETICA, ARIAL" color="#000000" size="2" style="font-weight: bold;"> Hefty 28-oz. stein is banded all around by vintage John Deere advertising images, then tastefully trimmed in gleaming gold. A majestic mug that's a joy to behold, and a stately symbol of Heartland pride! </font><font face="VERDANA, HELVETICA, ARIAL" color="#000000" size="2" style="font-weight: bold;">Ceramic. Dishwasher safe; do not microwave. 4 1/2" diameter x 6 1/8" high.</font></p>

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

4 Oct 2010, 8:01 PM
#77
celtic avatar

celtic

Zen Follower

Join Date:
Feb 2010
Posts:
154
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Thankfully I haven't done the upgrade to 'g' yet.

As this 'theoretical' xss fix is causing so many 'real' problems, could we have a thread that shows comprehensively how to fix this problem please. Trying to navigate all the comments and XTS's (cross thread solutions) in here is a nightmare.

Could I also suggest posting a 'fix' that removes this 'theoretical' xss feature completely rather than having to enter various random names into an override file? This seems the best solution until this is tested properly.

Thanks for your attempt at this feature, but better luck next time.

4 Oct 2010, 8:04 PM
#78
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

DrByte:

Folks, the PRODUCT PREVIEW page display issue is NOT a bug.
While you may dislike the way the preview shows, it is unfortunately necessary in order to protect YOU against XSS attacks on your admin area.
Clicking Save on the product-preview screen SAVES IT PROPERLY.

Doesn't this make the preview screen obsolete for most cart owners? They no longer can preview the product.

My apologies if I"ve missed anything else about this.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

4 Oct 2010, 8:06 PM
#79
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Celtic:

Thankfully I haven't done the upgrade to 'g' yet.

As this 'theoretical' xss fix is causing so many 'real' problems, could we have a thread that shows comprehensively how to fix this problem please. Trying to navigate all the comments and XTS's (cross thread solutions) in here is a nightmare.

Could I also suggest posting a 'fix' that removes this 'theoretical' xss feature completely rather than having to enter various random names into an override file? This seems the best solution until this is tested properly.

Thanks for your attempt at this feature, but better luck next time.

I am in total agreement. This is causing nightmares for me and has cost me money.

I'm about ready to back up to f and hold there.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

4 Oct 2010, 8:06 PM
#80
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

countrycharm:

Ajeh I have a question for you. I uploaded the /admin/includes/extra_configures/extra_white_list.php but still it shows like this when updating or submitting a new item. Any idea what I did wrong or is there something else I need to do. Shows ok on the catalog side. Thank you

If you mean in the Preview, that will be that way until v1.3.9h comes out ...

We are working on this issue and do not want a bazillion patch works made for things ...

As long as the Catalog looks good you should be fine ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!