Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Защита от взлома #251

Description

@vmpartner

Наблюдал последствия взлома и записи троянов в кронтаб. Вывод что нужно добавить защиту в fpm контейнер

в php ini добавить

disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,pcntl_exec

в dockerfile php-fpm добавить защиту крона от пользователя www-data

RUN echo "www-data" > /etc/cron.deny && chmod 644 /etc/cron.deny

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions