WordPress Plugin Vulnerabilities

Email Before Download < 4.0 - SMTP Header Injection

Description

Email Before Download (https://wordpress.org/plugins/email-before-download/) before version 4.0 was vulnerable to an SMTP header injection which allows abuse of vulnerable website to send spam or phishing emails.

In email-before-download.php, the "emailFrom" variable comes directly from the "email_from" POST parameter. This variable is concatenated in the SMTP "From:" header then passed to wp_mail as the headers argument. An attacker can insert newline characters "\r\n" (URL-encoded as "%0d%0a") to add his own headers and message body.

Proof of Concept

Affects Plugins

References

Classification

Type
INJECTION
OWASP top 10

Miscellaneous

Original Researcher
Clément Notin
Submitter
Clément Notin
Submitter website
Submitter twitter
Verified
No

Timeline

Publicly Published
2017-06-21 (about 8 years ago)
Added
2020-05-11 (about 5 years ago)
Last Updated
2020-05-17 (about 5 years ago)

Other