Skip to content

MIR0813

TaintedEval

User-controlled input reaches the code passed to eval(), letting an attacker run arbitrary PHP.

<?php
eval($_GET['code']); // TaintedEval

Don’t evaluate input. Parse it into data and act on that instead.