Comment Form CSRF Protection

plugin banner

Prevent Cross-Site Request Forgery attacks on your comments form.

Author:Ayesh Karunaratne (profile at wordpress.org)
WordPress version required:4.2
WordPress version tested:6.3
Plugin version:1.4
Added to WordPress repository:21-02-2019
Last updated:23-07-2023
Rating, %:100
Rated by:2
Plugin URI:https://wordpress.org/plugins/comment-form-cs...
Total downloads:10 766
Active installs:600+
plugin download
Click to start download

WordPress has a 12-year-old unfixed security vulnerability that it does not properly validate incoming comments.

An attacker can trick both anonymous and logged-in users to post comments on a victim site without them realizing, while using their own credentials.

See this issue for more information: https://core.trac.wordpress.org/ticket/10931

This is a tiny (fewer than 40 effect lines of code) module that adds a secure token to the comment form and validate it before accepting any comment, thus making your comment forms secure as they should\’ve been for all these years!

It provides no UI – just install it, and you are all set!

  1. This plugin adds a secret cryptographically-secure token to the comment form. This is a unique value and is computationally impractical to guess it.
  2. Upon comment submission, the comment is rejected if the secret tokens are not present or computationally invalid.

Screenshots
ChangeLog