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 February 6th, 2008, 02:20 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 11
RSS shows hidden images

I have noticed that RSS shows images that are hidden. Is this normal or is it a bug.
nikos is offline   Reply With Quote
Old February 6th, 2008, 02:52 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
I was just about to post this. The RSS feed does not properly check whether a user should have access to the images before posting thumbnails. A malicious user could easily use this to keep an eye on categories where private images might be shown.

Even better, then when the user who shouldn't have access clicks on the thumbnail, he's taken to the showphoto page and shown the photo (at least in my testing, it may be due to having the same IP even though logged in as a different user). If the user then clicks to get the big image, he gets the popup with the "pending approval" image shown.

If the user goes to display the category that the private image is in, the private image will not be shown to him. But he still has access to the showphoto and the medium sized image.

I'll look at external.php and see what needs to be fixed. I'd say basically any image set to private shouldn't go to the feed no matter what.

Correct me if I'm wrong, or if I hacked something that broke this, but now if I paste the showphoto.php/photo/[privatephotoID] URL into a not-logged-in browser, I can see the supposedly private photo?
styleforum is offline   Reply With Quote
Old February 6th, 2008, 03:27 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
Here's what I changed to fix this. Find in external.php:

Code:
Content visible to verified customers only.
Change lines between to:

Code:
Content visible to verified customers only.
This changes it so the query always has 'approved = 1' in it (i.e. image is not private or unapproved). If the RSS request specifies a category ($cat) it adds that into the query, if it specifies a user ($ppuser) it adds that, otherwise it runs with $cats set to null.

This really should be fixed and put out as a maintenance release. If people are going around thinking their images are private they are mistaken.
styleforum is offline   Reply With Quote
Old February 6th, 2008, 04:35 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
? external.php indeed does check for a users permissions before displaying data this is what this line is for.

Code:
Content visible to verified customers only.
Think the title is a little misleading as what your posting is the the user has permissions to view the image yet the rss shows unapproved photos. I will pass that along to the developer.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 6th, 2008, 04:37 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
That looks like it's checking to see whether a particular user/group has permission to view a category, not an image. If you "hide" an image but it's in a public category, anyone who runs the feed for that category will be able to see it.
styleforum is offline   Reply With Quote
Old February 6th, 2008, 05:35 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
correct as noted your talking about approval of the image which we can pass along to the developer to add.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 6th, 2008, 06:00 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
So continuing this, is showphoto.php supposed to show images to everyone who knows the URL, or is it supposed to check and not display hidden images? I notice that featured/next-prev/random image blocks and galleries don't show thumbs for the hidden images, but I am still able to get to them by typing in the URL showphoto.php/photo/[hiddenimagenumber].
styleforum is offline   Reply With Quote
Old February 6th, 2008, 06:21 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
approved=1 is what I am passing along to the developer as this would be a correct addition.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 6th, 2008, 06:30 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
Quote:
Originally Posted by styleforum View Post
So continuing this, is showphoto.php supposed to show images to everyone who knows the URL, or is it supposed to check and not display hidden images? I notice that featured/next-prev/random image blocks and galleries don't show thumbs for the hidden images, but I am still able to get to them by typing in the URL showphoto.php/photo/[hiddenimagenumber].
Can I get an answer to this? I can only test it on my own install which admittedly is rather hacked at this point. I want to be able to tell my users whether "hidden" images are really hidden.
styleforum is offline   Reply With Quote
Old February 6th, 2008, 06:38 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
showphoto shows images a user has permission to view. You as admin can view anything so take that into account.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 6th, 2008, 06:42 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
Quote:
Originally Posted by Chuck S View Post
showphoto shows images a user has permission to view. You as admin can view anything so take that into account.
Of course, but when I try it from a different computer either logged out or logged in as a regular user (one of my vB test user accounts) I'm still able to see a hidden photo by going directly to the URL. Have I broken something or is that normal behavior?
styleforum is offline   Reply With Quote
Old February 6th, 2008, 06:52 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Normal behavior I would assume as basically the photo is no longer shown on showgallery and users would not see it to click it but if you know the url it is shown.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 6th, 2008, 07:13 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 55
Quote:
Originally Posted by Chuck S View Post
Normal behavior I would assume as basically the photo is no longer shown on showgallery and users would not see it to click it but if you know the url it is shown.
Okay, but doesn't that mean that someone can just go sequentially showphoto.php/photo/1, showphoto.php/photo/2, etc. and see every picture no matter what category it's in or what permissions are on it? Or write a script to do the same thing and get all the images off the page?

Edit: it looks like at least when you put them in a private album, they get a "password required" page. But they can still obviously access them if they know the URL.

Last edited by styleforum; February 6th, 2008 at 07:25 PM.
styleforum is offline   Reply With Quote
Old February 6th, 2008, 08:20 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
No they have to have category permissions based on the usergroups permissions you set to view it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
RSS FEEDS: Last Five Images Uploaded On A Site Lisa Scerina General Discussion 1 December 17th, 2006 09:24 AM
hidden category images showing up in most popular Happy Camper How Do I? - vBulletin 3.5.X 2 November 15th, 2005 04:10 PM
Mass Edit / Delete Only Shows 3 Images Per Page tcb Bugs From 1.0.0 2 March 31st, 2005 04:30 AM
Make Pending Images Hidden ghinton Photopost Pro Installation & Upgrades 5 March 9th, 2005 09:11 AM


All times are GMT -5. The time now is 02:03 PM.

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