Error Handling - checkPhpBuild.php
phpipam open-source IP address management
Brought to you by:
myha
Hi Miha,
I sent an email through the comments field on the main website but figured I'd add my findings below.
Line 90 in checkphpbuild.php script returns sensative details when a FATAL mysqli error occurs.
if($_GET['page']!="install") {
$mysqli = @new mysqli(/$db*/['host'], /$db/['user'], /$db/['pass'], /*$db/['name']);
Removing the $db global variable from this line resolves the issue. Not sure why the Global $db variable exists, it appears to be throughout the code but haven't figured out its exact purpose.
Can you please confirm this is an issue and by design?
Regards,
Andy
Anonymous