⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

PHP file upload. Как атакующие обходят механизмы защиты и получают RCE

habrahabr.ru ·Russian Federation · politics
Words
60
Chars
402
AI summary
Yes
Full story

PHP applications often have upload forms for avatars, documents, or images for ads. If an attacker can upload a file and make the server execute it, the attacker gets the same rights on the machine as the application itself. The article examines how to defend against such attacks and describes a web shell as a server script that accepts commands over HTTP.

Почти в каждом PHP-приложении есть форма загрузки: аватар, документ, картинка к объявлению. Если у атакующего получится загрузить файл и заставить сервер его выполнить, он получит на машине ровно те же права, что и само приложение, а дальше — дело техники. Разбираемся, как противостоять таким атакам с помощью веб-шелла — серверного скрипта, который принимает команды через HTTP и выполняет их. Читать

Open article