.. _security-dynamicdl: .. _dynamic-library-loading: Dynamic Library Loading +++++++++++++++++++++++ Loading a variable dynamically requires a lot of care in the preparation of the library name. In case of injection in the variable, the dynamic loading of a library gives a lot of power to an intruder. .. code-block:: php See also `dl `_. Connex PHP features ------------------- + `library-loading `_ Suggestions ___________ * Use a switch structure, to make the dl() calls static. * Avoid using dl() and make the needed extension always available in PHP binary. Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Security/DynamicDl | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Security ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.1.7 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+