← PHP / Laravel · Contents

PHP-047 / Advanced

Exposing the Ignition debugging tool in production leads to RCE

A06:2021 Vulnerable and Outdated Components · CWE-94 Code Injection · A05:2021 (debug exposure)

Why is this a problem?

Endpoints in Ignition 2.5.1 or earlier have been exploited as gadgets for arbitrary file writes and PHP execution.

How to fix it

bash
composer install --no-dev --optimize-autoloader   # Exclude dev in production
# Patch facade/ignition to 2.5.2 or later

Further reading