Php Email Form — Validation - V3.1 Exploit [2021]

If you landed here because you searched for that exact phrase, one of three things is true:

| Attribute | Detail | | :--- | :--- | | | None official (legacy, unregistered) | | Exploit DB ID | Similar to EDB-ID: 49983 (variants) | | Attack Vector | Network (HTTP POST) | | Privilege Required | None | | User Interaction | None | | Patch Status | None (Vendor abandoned) | | Recommended Action | Replace codebase immediately | php email form validation - v3.1 exploit

If an attacker sends the payload %250a (URL-encoded percent sign followed by 0a ), the str_replace looks for %0a literally. It does not find it, because the input is %250a . When the server processes the request, the %25 is decoded back to % , yielding %0a , which then becomes a newline in the mail header. If you landed here because you searched for

From: Bob <victim@example.com Bcc: target1@spam.com, target2@spam.com> From: Bob &lt;victim@example

PHPMailer < 5.2.18 Remote Code Execution exploit ... - GitHub

Have you found a v3.1 script in your stack? Share your remediation story in the comments below.

If you must use -f , hardcode the envelope sender: