Jump to content

Add an Index to Directories


durangod

Recommended Posts

There are ways to stop this but remember that some of us dont want to worry about the symlink security whole. And i just was testing some stuff out on the dev install.

 

Test this for yourself and if you see a dir listing please add this php file or make one ourself and add it to every addon folder you have.

 

https://yoursite.com/whmcs/modules/addons/name of the addon/

 

if you go to that link and you see a directory listing you need to add this php file to every addon dir, it is not encrypted or anything.

 

 

just create a file called index.php and inside of it put this.

 


<?php

//nothing - this is only to keep people from accessing and viewing the dir listing via the folder url.

if (!defined("WHMCS"))
   die("This file cannot be accessed directly");

?>

 

and save it to every individual addon folder.

 

taking care of the symlinks issue for us opened this up and i honstly thought this was already taken care of.

 

WHMCS is there any way you can make sure that all devs add this file to any new updates they send to their clients or devs please do this anyway.

 

Thanks all..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated