Created
January 24, 2018 17:47
-
-
Save xavierleune/8cde9fc97ea7136d425a1d63cbb974fb to your computer and use it in GitHub Desktop.
Lack of isolation on mysqli_driver->report_mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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