Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question protect uploaded images and files

More
17 years 2 weeks ago #32748 by roland
Files on the forum can be deep-linked, circumventing the security.
I run a completely closed forum, but this could be an issue in other situations too.

Unregistered users can not see the forum posts, but can retrieve the files the users uploaded (if they know or guess the file name)

There are many situations where this could cause problems:
- users uploading large files and publishing the url on other sites
- users unintentionally mentioning the file name (or a hint) to less authorized users
- users keeping access to files in posts that were moved to more secure topics
- urls of file names that are left in the browser history of public PC's
- urls of file names can appear in usage statistics and other sources that might even end up in google
- etc.

Is there any way to increase the security on this?

A quick, partial fix would be to check the referrer using apache, although this is not 100% safe, a referrer can easily be faked.

I would prefer the files to be served by a php script that also checks the user is authorized (just like when viewing the forum posts)

Please Log in or Create an account to join the conversation.

More
17 years 1 week ago #33158 by Matias
Actually I see this a limitation in Joomla itself as it does not allow (well, there's no configuration option) to put files outside document root. I have planned to make a proxy between real files and user, but, well, user can still decide to guess the filenames..

Please Log in or Create an account to join the conversation.

More
17 years 1 week ago #33235 by roland
The files do not need to be outside the www-root, it would be easy to put a .htaccess file in the uploaded files folder so it is inaccessible via the web server, and have the users download the files via a script that enforces the account restrictions.
Or the files could be stored in the database. (Why handle binary content so very different from text content? I know, it's something that just grew this way, but still...)

I consider putting uploaded files in a public place a design flaw. Joomla indeed has the same issues, but the forum makes the same mistakes.

My issue isn't so much that it needs to be fixed properly right now, but I was wondering whether someone might have already fixed this with a plug-in or something. I can hardly imagine that I would be the only one have a problem with it.

Please Log in or Create an account to join the conversation.

More
17 years 1 week ago #33238 by Matias
Yes, they can be inside www-root, but playing with .htaccess works only in Apache. So it's generally safer to put the files outside www-root (Joomla really needs configuration parameter where to put the files). Another design flaw is that component directories contain images, css, js etc..

Files could be saved into DB, yes. But putting large binary files into database will slow down large sites considerably. It also causes a lot of extra traffic if DB is located in another server than the site. And we have to remember that some www-hosting companies have only few hundred MB of DB storage space.

I consider files in a public place as design flaw, too. Of course there needs to be an option to have them in the public place, as not all sites have private information and using PHP for every upload eats resources.

Kunena 1.6 will be step into the right direction, but unfortunately file downloads are not in the top of our list as we need to make first huge architectural changes to MVC model and design patters. It will be total rewrite, which enables us to add new features easily without the overhead from our legacy.

Please Log in or Create an account to join the conversation.

Time to create page: 0.124 seconds