Webform - Critical - Remote Code Execution - SA-CONTRIB-2020-011
https://www.drupal.org/sa-contrib-2020-011Project: Webform (
https://www.drupal.org/project/webform)Date: 2020-May-06Security risk: Critical 17∕25 AC:Basic/A:Admin/CI:All/II:All/E:Theoretical/TD:AllVulnerability: Remote Code ExecutionDescription: This module enables you to build forms and surveys in Drupal.
The module doesn't sufficiently filter webform element properties (attributes) under the scenario of editing a webform. Malicious user could craft such an attribute (#element_validate, for example) that would invoke execution of undesired PHP code.
This vulnerability is mitigated by the fact that an attacker must have a role with the permission "Edit own webform" (or "Edit any webform").Solution: Install the latest version:
If you use the Webform module for Drupal 8, upgrade to Webform 8.x-5.11 (
https://www.drupal.org/project/webform/releases/8.x-5.11)
Also see the Webform (
https://www.drupal.org/project/webform) project page.Reported By: Jacob Rockowitz (
https://www.drupal.org/user/371407)
Fixed By: Jacob Rockowitz (
https://www.drupal.org/user/371407)
Heine (
https://www.drupal.org/user/17943) of the Drupal Security Team
bucefal91 (
https://www.drupal.org/user/504128)
Coordinated By: Greg Knaddison (
https://www.drupal.org/user/36762) of the Drupal Security Team