Extracts ZIP files in PHP and checks them against a strict allow list before it writes a byte. Refuses Zip Slip (path traversal), overlapping zip bombs, symbolic links and names outside the list. Limits entries and bytes, keeps the executable bit, names the rule in an exception, needs Info-ZIP, not ext-zip. For code that AI coding agents write.
php security zip unzip extract archive symlink ziparchive ai-agents zip-bomb zip-slip path-traversal unix-permissions info-zip coding-agents executable-bit
-
Updated
Nov 23, 2026 - PHP