shulkwisec
← Back

#php-to-shell

6 articles
Research//4 min

PHP to Shell, Part 1: Building an Isolated Lab Worth Trusting

A loopback-only PHP target built from native packages, not Docker, with the egress claim proven by seven checks instead of assumed from the config.

php-to-shellweblab-setup
Research//5 min

PHP to Shell, Part 2: Unrestricted Upload to Webshell

An upload bypass needs two independent things to line up — a servable location and a server that routes it to PHP. Tested against a real Apache + mod_php target, including the negative controls that prove which config choice is actually load-bearing.

php-to-shellwebfile-upload
Research//5 min

PHP to Shell, Part 3: File Inclusion to Code Execution

An include() on user input is a read primitive until something makes the included content attacker-controlled PHP. Logs, sessions, phar archives and a filter-chain trick that I could only confirm halfway.

php-to-shellweblfi
Research//5 min

PHP to Shell, Part 4: Object Injection to Code Execution

unserialize() on attacker input is a necessary condition, not a finding. A usable gadget chain needs the exact class, the exact property names, and the exact method flow to still be present — and most of the time, they aren't.

php-to-shellwebdeserialization
Research//8 min

PHP to Shell, Part 5: The CVEs That Carry This Chain in the Wild

CVSS predicts almost nothing about which of these actually gets exploited. Install base, remote fingerprintability, and whether the upload path runs before the framework's own protections predict it far better.

php-to-shellwebcve
Research//5 min

PHP to Shell, Part 6: Webshell Payloads, and How They Get Caught

A webshell is one function call, deliberately. The closing post in the series: the minimal execution primitives, why disable_functions isn't a boundary, and the detection signal that repeats across every post in this series rather than being specific to any one of them.

php-to-shellwebdetection-engineering