Hexret

Web Security · File inclusion

Phar metadata

Serialized metadata stored in a PHP Phar archive or one of its entries. Before PHP 8.0, opening an untrusted Phar could deserialize metadata automatically. PHP 8.0 and later defer that work until an explicit API such as Phar::getMetadata() or PharFileInfo::getMetadata() is called. Exploitation also needs a usable object gadget.

Where you practice it

Related terms