DRUPAL-CONTRIB-2021-004 The [Webform module for Drupal 8/9](https://www.drupal.org/project/webform) includes a default Contact webform, which sends a notification e
An open mail relay vulnerability in the Drupal Webform module allows attackers to send emails to arbitrary addresses via the default contact form.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is DRUPAL-CONTRIB-2021-004?
DRUPAL-CONTRIB-2021-004 is a vulnerability in drupal/webform, published on 3 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Webform module for Drupal 8/9 includes a default Contact webform, which sends a notification email to the site owner and a confirmation email to the email address supplied via the form.
The confirmation email can be used as an open mail relay to send an email to any email address.
This vulnerability is mitigated by the fact that the site owner's email address is also receiving a notification email, which should alert the site owner to the exploitation. If the site owner's mailbox is not monitored, the open mail relay can be more easily exploited.
With the Webform module's latest release, the default Contact's confirmation email will only be sent to an authenticated user's email address. Anonymous users will no longer receive a confirmation email.
If anonymous users need to receive a confirmation email, we recommend you add SPAM protection to the form and update the email handler.
Which versions are affected by DRUPAL-CONTRIB-2021-004?
Linux distribution packages (1)
drupal/webform Packagist:https://packages.drupal.org/8 | All versions to 6.0.0 | 5.25.0 |
How do I fix DRUPAL-CONTRIB-2021-004?
Upgrade to a fixed version.
Is DRUPAL-CONTRIB-2021-004 being exploited?
There is no known exploitation of DRUPAL-CONTRIB-2021-004 in the wild and no public exploit code.