mybb2 icon indicating copy to clipboard operation
mybb2 copied to clipboard

Guests can vote infinitely on polls

Open JoshHarmon opened this issue 10 years ago • 5 comments

In the /me thread, all votes above 14 were done by me as a guest. As a guest, I could vote as many times as desired.

Suggested fix: Don't allow Guests to vote in polls. Suggest registration instead.

JoshHarmon avatar May 11 '15 21:05 JoshHarmon

In 1.x it's stored in cookies if guest voting is enabled in forum permissions. Same or similar (IP check) thing could be done here.

Destroy666x avatar May 11 '15 21:05 Destroy666x

Issue I see with cookies being the verification vector is if someone has cookies disabled in their browser, or has them cleared on browser close, as I do.

On May 11, 2015, at 2:51 PM, Przemek Pawlas [email protected] wrote:

In 1.x it's stored in cookies if guest voting is enabled in forum permissions. Same or similar (IP check) thing could be done here.

— Reply to this email directly or view it on GitHub.

JoshHarmon avatar May 11 '15 23:05 JoshHarmon

It's not reliable, yes, similarly IP can be faked by proxies or just be dynamic. And there isn't anything more trustworthy that we can check. But I think that's still better than no guest voting possibility at all - sometimes admins may prefer risky biased results with guest voting.

Destroy666x avatar May 12 '15 00:05 Destroy666x

Yeah, I didn't think about the fact that it was allowed in 1.x, mostly because almost nobody ever does that.

I think a combination of IP and cookie would be good enough.

JoshHarmon avatar May 12 '15 00:05 JoshHarmon

I'll add a canVoteInPoll permission which will default to NEVER for guests. But there should be a way to limit the number of votes a guest can make though (need to look at guest sessions, that'd be a way depending on how laravel handles that).

JN-Jones avatar May 12 '15 12:05 JN-Jones