Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lack of isolation on mysqli_driver->report_mode
<?php
$tainted = new \mysqli_driver();
$original = new \mysqli_driver();
var_dump($tainted->report_mode, $original->report_mode);
// $tainted: int(0)
// $original int(0)
$tainted->report_mode = 2;
var_dump($tainted->report_mode, $original->report_mode);
// $tainted int(2)
// $tainted int(2)
// Both values have been changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.