PT-2023-19128 · WordPress · Wpgraphql
Ravi Dharmawan
·
Published
2023-06-30
·
Updated
2023-12-20
·
CVE-2023-23684
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
WPGraphQL versions 1.14.5 and earlier
Description
A Server-Side Request Forgery (SSRF) issue affects WPGraphQL, allowing authenticated users with media upload capabilities to execute the
createMediaItem mutation and potentially gain unwarranted access to the server by passing executable paths in the filePath argument.Recommendations
For WPGraphQL versions 1.14.5 and earlier, update to WPGraphQL v1.14.6 or newer to resolve the issue.
If updating to v1.14.6 or higher is not possible, add a filter to the
graphql pre resolve field function in functions.php to override the vulnerable createMediaItem mutation resolver, ensuring that only allowed protocols (https, http, file) are used and the file type is validated.Fix
SSRF
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Wpgraphql