Wednesday 02 December 2026 16:43:50 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

PHP file write

The act of saving PHP code onto a server’s filesystem, which can become dangerous if the file is executable.

A PHP file write is the creation or modification of a PHP script on a server’s filesystem. Applications may write PHP files for legitimate purposes, but the operation is security-sensitive because a web server can execute PHP code when a request reaches the file.

In an attack, a vulnerable plugin or endpoint may let an attacker control content written to disk. If the resulting file is executable, this can enable server-side code execution and potentially provide a foothold for persistence. Defenders should restrict which components can write files, validate and constrain any input used in file operations, and prevent writable upload or cache directories from executing PHP. After patching a relevant flaw, inspect for unexpected PHP files and review logs for suspicious requests.

← WIKICROOK index