HexBrain

Internet Bug Bounty · Report #135293

bcpowmod accepts negative scale and corrupts _one_ definition

Validstatus
$500bounty
1upvotes
13 Oct 2019disclosed

How it was found

https://bugs.php.net/bug.php?id=72093

Two issues reported on the same bug, bcpowermod accepts a negative value which also is able to corrupt the one definition and leads to memory corruption problems.

Reported to developers on 2016-04-24, fixed 2016-04-25 and released at 2016-04-28, affected PHP 5.5 , 5.6 and 7.

http://php.net/ChangeLog-5.php#5.5.35 http://php.net/ChangeLog-5.php#5.6.21 http://php.net/ChangeLog-7.php#7.0.6

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original