PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   Can't upload pics after patching exploit (functions_gallery_imageedit) (http://www.photopost.com/forum/bugs-vbulletin-3-6x/135016-cant-upload-pics-after-patching-exploit-functions_gallery_imageedit.html)

Swamper January 16th, 2008 05:08 PM

Can't upload pics after patching exploit (functions_gallery_imageedit)
 
I have a client running vBGallery 2.0 -- patched the file as described and now whenever I try to upload a pic I get:

"No Image specified. If you followed a valid link, please notify the administrator"

When I choose to upload it from a directory on the server it then puts an entry in the database - but - no image comes up when clicked -- doesn't even bother to copy it over to the proper dir so there's the reason.

gallery/files is chmodded -R 777 -- this all worked fine before patching that file, not sure what the issue is - I'm stumped!

Have 2 errors in the error log:

Quote:

File does not exist: /var/www/vhosts/foo.com/httpdocs/forum/gallery/foo, referer: http://www.foo.com/forum/gallery/upload.php

script '/var/www/vhosts/foo.com/httpdocs/forum/gallery/cron.php' not found or unable to stat, referer: http://www.foo.com/forum/gallery/upload.php
Looks like a path issue but everything seems correct in the settings. Worth noting: the first error is a directory present in /forum -- why is it looking for it in /forum/gallery ? Same goes for cron.php

Help! thanks :)

maniac January 17th, 2008 09:26 AM

Ditto...
 
I'm having the same issue on my install - when a user tries to upload they get the same message

Black Cobra January 19th, 2008 05:13 AM

am also having the same problem

Zachariah January 19th, 2008 11:14 AM

Try this out:
/forums/includes/functions_gallery_imageedit.php

Find:
Code:

Content visible to verified customers only.
Replace:
Code:

Content visible to verified customers only.
Find:
Code:

Content visible to verified customers only.
Replace:
Code:

Content visible to verified customers only.

Zachariah January 19th, 2008 11:18 AM

I was doing testing w/ non alphanumeric characters and the 1st revision of the code wiped every thing out of the file name. ".jpg" and saved. :o

- Now I added a failsafe, if file is totally striped of the name generate one with md5().

- also updated more filenames to ban.

Let me know.

maniac January 19th, 2008 11:26 AM

1 Attachment(s)
Nope - that didn't help..

Thanks for the suggestion though.

Still get the "No image specified error:

Zachariah January 19th, 2008 11:47 AM

Shoot me some ftp / adminCP access via PM.
- i'll take a look

twitch January 21st, 2008 12:29 PM

well, my problem is actually different, sorry!

Swamper January 21st, 2008 04:34 PM

Same problem happening here even after the above fix....

Zachariah January 21st, 2008 09:20 PM

Quote:

Originally Posted by Swamper (Post 1215131)
Same problem happening here even after the above fix....

Ok I logged in.
- your gallery/files folder has no ownership.
- owner: (?) they end to be owned by your login username.

I could not chmod 777 with my ftp client: Error-> no permission..

You will need to do this in CPanel or SSH.
-----------------------------

There was another member that did a command line gzip site backup/restore and sent it to the new server.. the problem is.. he was logged in as root.. so all permissions got set to "root"

Once the ownership of the files/folders were change to the current user logged in then chmod all other operations were ok.

maniac January 21st, 2008 09:30 PM

I checked my directory permissions and they are correct - still having issue...

Swamper January 21st, 2008 10:16 PM

Quote:

Originally Posted by maniac (Post 1215152)
I checked my directory permissions and they are correct - still having issue...

I had to make sure all directories in gallery/files were chmodded 777 - then it worked for me.

Thanks Zachariah.

abuhish January 21st, 2008 10:31 PM

am also having the same problem

Zachariah January 21st, 2008 10:42 PM

Error in order of operations.
/forums/includes/functions_gallery_imageedit.php


Move
Code:

Content visible to verified customers only.
Above:
Code:

Content visible to verified customers only.

maniac January 22nd, 2008 10:34 AM

Code is already above specified comment; And all of my upload directories are 777...



Quote:

Originally Posted by Zachariah (Post 1215156)
Error in order of operations.
/forums/includes/functions_gallery_imageedit.php


Move
Code:

Content visible to verified customers only.
Above:
Code:

Content visible to verified customers only.


maniac January 22nd, 2008 10:38 AM

Zachariah - just saw you uploaded an image...

I'll run a few tests and let you know if all is OK; thanks.

maniac January 22nd, 2008 11:21 AM

I ran a few tests and only admins can upload...

Gallery was running smoothly until the patch - I checked all permissions and nothing has changed.

WHen regular members try to upload thy get the error message...

Luciano February 3rd, 2008 08:43 AM

stupid question.. is this issue fixed now? if yes.. was it the stripos function? (that has to be outside all functions to work.. so that fix is mandatory anyway - but only for php versions lower that 5.0x)

Luc


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

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97