Search…

X3 Photo Gallery Support Forums

Search…
 
hau
Topic Author
Posts: 2
Joined: 13 Jan 2011, 16:04

Imagevuex easy to look inside password protected folders!

14 Jan 2011, 03:14

Hello all


also in better German, look inside the German folder


the new version of imagevuex X2 Gallery has a really big security problem.

It is possible to look at the content equal the folder is password protected or a hidden folder!

how?

the folder "content" has two importent files: folders.xml and folderdata.xml.

is the webserver not enough protectet so you can see in this files.
As sample, we take the demo from this site: https://www.photo.gallery/demo/x2/content/folders.xml

there are some interesting things inside the file :)
-path we take this: "content/Various Examples/password/"
-description: here is writen that only peoples who know the pw can read the content, of course ;-)
-hidden="true" : maybe also interesting...

then wie go to the link https://www.photo.gallery/demo/x2/content/co ... /password/
when the webserver denied the access to list files, then is the webserver a little secure... but this is not the problem, then wie take the file folderdata.xml

in our sample is that this link: https://www.photo.gallery/demo/x2/content/Va ... erdata.xml

now we can see all files they are in this folder, the first file in this xml is this picture: 4b3346d7d-cc85-4d88-ad0c-89abc3326022.jpg, also denn
we can open this file with this link: https://www.photo.gallery/demo/x2/content/Va ... 326022.jpg

And we see the picture without any passwords... :!:

to protect this security problem is very easy, copy the content to the root of your webserver in the file ".htaccess" --> for apache webserver!
Code
##########  .htaccess  START  ################
# Protect files from prying eyes.
# Schuetzt vor neugierigen Augen.
<FilesMatch ".*xml">
  Order allow,deny
</FilesMatch>


# Don't show directory listings for URLs which map to a directory.
# Verbietet das die Inhalte der Verzeichnisse aufeglistet werden.
Options -Indexes


# redirect by failure to the startpage.
# Bei einer Fehlerseite direkt wider auf die Startseite gehen.
ErrorDocument 404 /index.php

##########  .htaccess ENDE  ################

From now can nobody anywhere look inside in your xml files, your webserver is now safe ;-)

is this article helpfully for you?
i would be glad about a donation. :roll:
Paypal 5.- Swiss franc
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Imagevuex easy to look inside password protected folders

17 Jan 2011, 13:42

Actually we explicitly stated in documentation that Imagevue passwords are not industry-grade protection for your files.
https://www.photo.gallery/documentation/folder-passwords/

So this can leverage security up a notch. I think we will include this in our distribution. Thanks for the suggestion!
firedev.com