verbb / comments

A Craft CMS plugin for managing comments directly within the CMS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guest can vote infinitely

maximeDore opened this issue · comments

Describe the bug

When you are signed in your Craft account you can only vote once per comment.
But whenever you are signed out and voting as a guest you can vote as many times as you like.

While I understand that managing a guest's vote permissions is hard and there might be ways to bypass it, the fact that you can just spam the vote button is a bit silly. Preventing this one thing might make it look less like a bug.

Steps to reproduce

  1. Sign out of Craft CMS
  2. Upvote an existing comment.
  3. Click as many times as you like

Craft CMS version

4.4.13

Plugin version

2.0.7

Multi-site?

Yes

Additional context

No response

This is only possible if “Enable Guest Voting” is enabled, but I’m not sure how possible or feasible it is to track guests in some manner to detect whether they’ve voted or not. We can certainly introduce a form of session identifier, but all it takes is someone to create a new session to spam voting again.

Merely preventing the opportunity for everyone to spam might be enough for this. It should prevents most of the potential spammers from doing so.

Like you said, if someone knows how to bypass the session, there's not much that can be done anyway