Support

Admin Tools

#14174 exception with .htaccess

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by lewax on Wednesday, 28 November 2012 03:54 CST

lewax

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Not all
Joomla! version: 1.5.26
PHP version: 5.3.4
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.2.10

Description of my issue:

I found this topic very usefull: 

#10104 – Admin Tools Pro advice please

For having sig plus to work, i had to exclude "cache" directory from the .htaccess file... Is there a security risk to do that?

 

Excuse my poor english... Thanks in advance 

nicholas
Akeeba Staff
Manager

I consider this a security risk, albeit a low one. The cache directory is supposed to hold files which are normally not accessible over the web. These files are supposed to hold dynamically rendered content which take a long time to produce. Storing them in the cache makes it faster to display them. An extension linking directly to files inside this directory is in violation of security best practices: it is asking you to provide access to files in a place which isn't supposed to be web accessible.

I would recommend contacting the developer of this extension and explain him the problem at hand. The proper place for web-accessible content is a subdirectory of the top-level media directory of the site, named after the extension. For example, Akeeba Backup stores its web-accessible content inside the media/com_akeeba subdirectory and the very popular K2 component does the same using media/com_k2 for all dynamic content, such as resized article images. The developer of your gallery extension should do the same thing. XML files (which, if I recall correctly, is what the galery extension in question generates) are allowed to be served over the web from the media directory and its subdirectories.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

lewax

Thanks a lot for your answer...

I'm not sure the developper wants to work on this old extension (it's for J! 1.5). And i don't want to migrate this website in J! 2.5...

I will try to find another way...

nicholas
Akeeba Staff
Manager

Please remember that staying with an end-of-life product (Joomla! 1.5) will eventually result in your site getting hacked. Most likely it won't be because of Joomla! itself but because all developers have stopped supporting Joomla! 1.5 or are about to do so. As your extensions grow old and unmaintained, the possibility of a major vulnerability in one of them becomes very likely. Moreover, Joomla! 1.5 will only run with PHP versions up to 5.3. As web hosts are going to upgrade their PHP versions your site faces a very real risk of not running at all.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

lewax

And what do you think if i add "cache/sigplus" and "cache/thumbs" and "cache/previews" (the three folder this plugin need to work) instead of just "cache"

nicholas
Akeeba Staff
Manager

Much better approach. You still do a small compromise security-wise but it's now a small compromise. Most automated hacking tools will try to put a malicious file inside the root of the cache directory. By only enabling direct access to select subdirectories you are safe from those, which is the entire point of having the .htaccess Maker and its protection features.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

lewax

ok, so i will leave it like this.

Thanks a lot for your help.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!