MyBB Community Forums

Full Version: Ban List Failure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using thisĀ PLUGIN to create a Ban List for my website.

I got this error message popup and I have no clue how to fix this.

[Image: dcad38d6aa6224f752b29924cf18aa83.png]

My current website setup:

[Image: 857d0a81b353460b69c6ffee73e02e5c.png]

Does anyone have any idea how I can fix this?
searching for select * from from bans.php did not come up with anything...

also there doesn't seem to be a mybb_tb1banned table .....
(2018-11-22, 08:29 AM)8guawong Wrote: [ -> ]searching for select * from from bans.php did not come up with anything...

also there doesn't seem to be a mybb_tb1banned table .....

Yea, I know it's weird.

I've been running this for about 1 year, then suddenly, it's not working anymore.

I'm baffled as to why it stopped working like this.
It looks like it could be because you're using a negative integer for LIMIT.
(2018-11-22, 10:54 AM)Wires Wrote: [ -> ]It looks like it could be because you're using a negative integer for LIMIT.

So... since I am not a coder, how do I go about fixing this?
Serpius,

Try changing line 43-48 from:

if(isset($mybb->input['page']))
{
	$page = (int)$mybb->input['page'];
} else {
	$page = 1;
}

to

$page = 1;
if(isset($mybb->input['page']) && (int)$mybb->input['page'] > 0)
{
	$page = (int)$mybb->input['page'];
}

if ($page < 1) {
	$page = 1;
}
UPDATE:

Thanks to @Wildcard for fixing the Bans plugin!

Turned out that there was an 'XSS' vulnerability.

He did fix the XSS issue and "sanitized it".

Want more info? Ask @Wildcard!