by shakna · 7y ago · 0 comments
function evalCode($code) {
ob_start();
eval($code);
$output = ob_get_contents();
ob_end_clean();
return $output;
}
... So anyone who looks at a codebase for eval would have found this. There is no doubt in my mind that when some people have claimed that this has been around for years... That it has definitely been around for years.And as the fix is:
// comment out. idk what it breaks but it's a fix for now
//eval($code);
I don't think anyone even knows what the hell that eval was doing there in the first place.It's not a straightforward POST -> eval but goes through a few calls, which is probably why it wasn't discovered sooner.
When I gave notice, I was asked if I'd like to work on vBulletin as an engineer.
(Some good reading at https://vbtruth.com/category/company/vbulletin/ )