The world's most advanced component creator for Joomla
An idea
MCD
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started

Severity: high

We recommend you to upgrade all your generated components, at least the following file :

[backend component]/classes/file/file.php

Concerned function : getDirectory()

Here is a copy of the content of the function for users who do not have renewed their account:

public static function getDirectory($path)
{
    $markers = [MYCOMPONENT]Helper::getDirectories();
    $foundDir = false;
    // Search and parse the folders aliases
    foreach($markers as $marker => $pathStr)
    {
        // Make sure at least one folder alias has been defined
        if (preg_match("/^\[" . $marker . "\]/", $path))
            $foundDir = true;
        $path = preg_replace("/^\[" . $marker . "\]/", $pathStr, $path);
    }
    // A Marker directory MUST be defined > Local File Inclusion security
    if (!$foundDir)
        return null;
    // Protect against (Local File Inclusion)
    $path = preg_replace("/\.\.+/", "", $path);
    return $path;
}
I have been using Cook for only a day now and it is the next best thing to Jagermeister. It is very easy to use and I see some of the greatest Joomla Components ever! coming from Cook users.
Naude (Forum)

Get Started