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 Classifieds Support > Classifieds Suggestions

Classifieds Suggestions Have an idea to make Classifieds even better?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 16th, 2009, 08:45 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2009
Posts: 46
Stop people hacking (via Firefox) a longer expiry date

At the moment, if you only want an ad to run for a maximum of 14 days, then you simply edit the template and remove all the other options. The problem is that Firefox comes with plugins, such as Web Developer Toolbar, which allow you to edit a drop down box, i.e. turn a drop down in to a free text box. On our installation of PP Classifieds I've added a routine to the php which hard codes acceptable expiry lengths so they can't be overridden. Can I suggest something like this is considered for the future? It just makes the software a little 'harder' and less prone to exploits. Thanks

PS. If anyone wants me to demonstrate how easy it is, or to demonstrate on their test installations, then just let me know.
xluk is offline   Reply With Quote
Old April 16th, 2009, 08:52 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
I am not familiar with such firefox tools personally.
__________________
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 17th, 2009, 03:52 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2009
Posts: 46
Right, but that doesn't make this not a good suggestion?

With all due respect I'm trying to help and every time I do it gets shot down in flames.

The Web Developer tool bar is very popular (and useful) extension:
Web Developer

Let me know your testing PP Classifieds installation and I'd be happy to demonstrate how easy it is to change the date.

As I say, I'm trying to help here Chuck
xluk is offline   Reply With Quote
Old May 1st, 2009, 11:09 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jan 2009
Posts: 46
Hi Chuck, do you want to point me to your testing site so I can show you how easy this is?

To re-create, install Web Developer plugin for Firefox and then go Forms > Make Form Fields Writeable - this is something that can be exploited against any PP Classified installation as there's no double-checking.
xluk is offline   Reply With Quote
Old May 1st, 2009, 03:18 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Once we go back into a beta development period I will look at any suggestions.
__________________
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 May 4th, 2009, 05:57 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Osaka
Posts: 158
This is working from 2.62 - so line numbers might have changed, however search the file UPLOADPRODUCT.PHP for a line which starts

Code:
Content visible to verified customers only.
And amend it to equal
Code:
Content visible to verified customers only.
Changing "30" to be equal to whatever you want the maximum to ever be.
benFF is offline   Reply With Quote
Old May 4th, 2009, 09:06 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
All that does is tell the program if there is a duration greater than 30 dont use it. How about the 120 day options etc that all exist in the program.
__________________
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 May 6th, 2009, 04:03 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Osaka
Posts: 158
From what I gathered from the OP's post, he has removed the other options from the template, so the only options a poster will ever be given is up to 14 days.

By using the above code (and changing 30 to 14) - no one should ever be able to post an ad for longer than 14 days, as it will set anything higher back to 14.
benFF is offline   Reply With Quote
Old May 6th, 2009, 09:37 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Yes I believe he has done something like this already he was commenting about a firefox web plugin that manipulates an html pages contents.

The problem is with that plugin your going to be able to manipulate really any html page content so its not really a bug at all. I can manipulate vbulletin really any program to add in other options using that plugin.
__________________
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 May 7th, 2009, 06:31 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Osaka
Posts: 158
I know - I use the same FF plugin.

The point is though, even if someone does manipulate the form content to set a longer expiry date, that code above will check for this and set it back to the lower one
benFF is offline   Reply With Quote
Old May 7th, 2009, 07:59 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
I know that I am just but its not a viable option in the normal program with the durations the normal program uses. If you have altered your program to use just one duration thats fine.
__________________
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 July 14th, 2009, 11:03 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Jan 2009
Posts: 46
Hi Chuck, this really comes to the PHP rather than anything else. The PHP needs to be hardened to stop users being able to push in any value - which you can right now with PP Classifieds. Give me a URL where I can register and I can show you Makes more sense to fix the PHP to do a quick double check on acceptable values rather than leave this exploit wide open.
xluk is offline   Reply With Quote
Old July 14th, 2009, 11:31 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
As stated changing how the duration is done is a major thing and I will look into it in the future when there is an open beta . It is only an html option box not database settings.

You can try something like this to set it to a default value if someone tries using that thing. This is the simplest thing. Create an array of acceptible values and then if its not in the array set it to a default.

Code:
Content visible to verified customers only.
__________________
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 July 29th, 2009, 06:41 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Jan 2009
Posts: 46
Thanks for the suggestion Chuck and sorry for the delay in coming back to you. I'm glad that you'll consider making this an option (perhaps something that can be set in the database from the admin area?) and hopefully not too many people will exploit it in the meantime. This plugin is pretty popular and can even allow you to edit hidden fields!
xluk is offline   Reply With Quote
Old July 29th, 2009, 06:43 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Well I doubt I can come up with solutions for everything but the following above can check to ensure the duration is what is in the templates.

What I posted is already in the build
__________________
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the Two Weeks Expiry longislandjam Classifieds How do I...? 1 November 4th, 2007 02:36 PM
Someone hacking Photopost? meissen General Discussion 3 August 23rd, 2007 09:27 AM
Problems After Hacking rcwild General Discussion 9 November 22nd, 2006 12:23 PM
Any Hacking Problems? Vintagecars Before You Buy 1 September 5th, 2006 02:31 PM
Hacking Lionel General Discussion 1 March 31st, 2005 06:57 AM


All times are GMT -5. The time now is 09:47 PM.

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