PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 3rd, 2009, 08:29 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Location: Bel Air, MD
Posts: 21
Cross Site Scripting problem in showphoto.php

I'm running Photopost Pro 6.02 and just got flagged on PCI scanning for a Cross Site Scripting problem in showphoto.php.

Recommended solution:

When accepting user input ensure that you are HTML encoding potentially malicious characters if you ever display the data back to the client.

Ensure that parameters and user input are sanitized by doing the following:
Remove < input and replace with &lt;
Remove > input and replace with &gt;
Remove ' input and replace with &apos;
Remove " input and replace with &#x22;
Remove ) input and replace with &#x29;
Remove ( input and replace with &#x28;


Is there a fix for this?

Thanks
rpertiet is offline   Reply With Quote
Old April 3rd, 2009, 10:13 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
We store the characters your referring to like that. A simply look in the database shows this to be true.

We use a code sanitizing function.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2009, 10:19 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Location: Bel Air, MD
Posts: 21
Then why am I getting flagged??? Is this a false positive?
rpertiet is offline   Reply With Quote
Old April 3rd, 2009, 10:22 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
Not sure as I am not familiar with what your doing or what is flagging you but clearly we typecast the variables and any variables we use the php htmlspecialchars function on them.

PHP: htmlspecialchars - Manual
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2009, 10:27 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
Take note also into the mix here is we change variables to store in the database and then when the description is viewed we convert the characters back so things view correct.

We also only allow the html tags noted here

Code:
Content visible to verified customers only.
You can not use embed object or script tags to try and embed malicious code we simply do not allow this.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2009, 10:51 AM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Location: Bel Air, MD
Posts: 21
Thanks for the response, I'll pass it onto McAfee.
rpertiet is offline   Reply With Quote
Old April 3rd, 2009, 10:55 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
McAfee is virus software for your home computer. They come out with some new internet scanner?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2009, 11:02 AM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Location: Bel Air, MD
Posts: 21
This is the old "Hacker Safe" daily PCI scanning. They re-branded it to the McAfee name about a year ago or so.
rpertiet is offline   Reply With Quote
Old April 3rd, 2009, 11:05 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
Well at any rate this is a false report issue by that product since we do correctly sanatize the variables.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2009, 01:12 PM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Location: Bel Air, MD
Posts: 21
This is still an error per the PCI scanner. Can you email or PM me so I can send you the problem link?

Thanks,

Randy
rpertiet is offline   Reply With Quote
Old April 9th, 2009, 08:09 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
I have no control over your scanner thing and what results it shows. I am simply responding that we properly sanitize variables so there is no threat.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
showphoto.php/photo/xx OneMooreCatch Photopost Pro How Do I...? 4 October 6th, 2007 09:47 AM
Looking to run a cross site gallery contest PhoenixDown21 General Discussion 0 March 5th, 2006 08:34 PM
showphoto.php image problem(NOT A BUG) hylke Photopost Pro Bug Reports 1 September 6th, 2005 07:42 PM


All times are GMT -5. The time now is 01:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0