Comment Form CSRF Protection

Descrição

WordPress has an 9 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 plugins 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 subission, the comment is rejected if the secret tokens are not present or computationally invalid.

Ecrãs

Instalação

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. You are all set! There is nothing to configure. Your comment forms will contain the hidden token fields that will be properly validated upon submission.

Avaliações

23 de Junho, 2021
I have inspected the plugin source. A great idea was implemented. thanks for the awesome plugin. it helps to fix the CSRF Tokens issue. Can you please tell me how to implement the same for search box and contact form 7 to fix the CSRF issue? Is there any hook is available? Thanks, Saravanan
23 de Outubro, 2019
Our website was "hacked" as part of the Bug Bounty program. We closed the gap with the help of this plugin. Many thanks to the developer! Unbelievable that WordPress has not closed this gap within the last 10 years!
Ler todas as 2 avaliações

Contribuidores e programadores

“Comment Form CSRF Protection” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

Traduza o “Comment Form CSRF Protection” para o seu idioma.

Interessado no desenvolvimento?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registo de alterações

1.0

  • Initial release.

1.1

This is a minor release that contains minimal changes.

  • Marks the plugin as tested up-to WordPress 5.3
  • Fix in composer.json file that it required PHP^7.2 instead of intended ^7.1
  • A micro optimization in the plugin to call the lambda function directly within the CSRF check.

1.2

Updating WordPress tested up to: 5.7