PT-2026-31452 · Inc2734+1 · Mw Wp Form
CVSS v3.1
8.1
High
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
MW WP Form versions prior to 5.1.2
Description
Unauthenticated attackers can move arbitrary files on the server, potentially leading to remote code execution. The issue occurs when the
generate user file dirpath() function fails to properly validate the $name parameter, which is passed via the mwf upload files[] POST parameter and processed by set request valiables(). During form processing, regenerate upload file keys() calls generate user filepath() using the attacker-supplied key. Because the path join() function returns absolute paths unchanged, the intended base directory is discarded. Subsequently, the get attachments() method passes the resolved path to move temp file to upload dir(), which uses rename() to move the file into the uploads folder. This flaw is exploitable only if a file upload field is present in the form and the Saving inquiry data in database option is enabled.Recommendations
Update MW WP Form to version 5.1.2 or later.
As a temporary mitigation, disable the Saving inquiry data in database option or remove file upload fields from forms.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mw Wp Form