Drupal 7.0.0-7.61.0 8.5.0-8.5.10 8.6.0-8.6.9 - Remote Code Execution via Unsanitized Field Data
Title source: llmExploitation Summary
CVE-2019-6340 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added March 25, 2022.
EIP tracks 17 public exploits from researchers including Metasploit, leonjza, Charles Fol, including a Metasploit module exploits/unix/webapp/drupal_restws_unserialize.
A Nuclei detection template is also available.
AI-analyzed exploit summary This Metasploit module exploits a PHP unserialize() vulnerability in Drupal RESTful Web Services (CVE-2019-6340) by sending a crafted request to the /node REST endpoint. It supports multiple HTTP methods (GET, POST, PATCH, PUT) and includes checks for vulnerability and patch status.
Description
Some field types do not properly sanitize data from non-form sources in Drupal 8.5.x before 8.5.11 and Drupal 8.6.x before 8.6.10. This can lead to arbitrary PHP code execution in some cases. A site is only affected by this if one of the following conditions is met: The site has the Drupal 8 core RESTful Web Services (rest) module enabled and allows PATCH or POST requests, or the site has another web services module enabled, like JSON:API in Drupal 8, or Services or RESTful Web Services in Drupal 7. (Note: The Drupal 7 Services module itself does not require an update at this time, but you should apply other contributed updates associated with this advisory if Services is in use.)
Exploits (17)
This Metasploit module exploits a PHP unserialize() vulnerability in Drupal RESTful Web Services (CVE-2019-6340) by sending a crafted request to the /node REST endpoint. It supports multiple HTTP methods (GET, POST, PATCH, PUT) and includes checks for vulnerability and patch status.
This exploit leverages a deserialization vulnerability in Drupal's REST services to achieve unauthenticated remote code execution. It uses Guzzle gadgets to execute arbitrary commands on the target system.
This exploit leverages a deserialization vulnerability in Drupal 8.6.9's REST module by sending a crafted HAL+JSON request with a serialized payload to achieve remote code execution (RCE). The payload is generated using PHPGGC to exploit Guzzle's deserialization behavior.
This repository contains a functional exploit for CVE-2019-6340, a remote code execution vulnerability in Drupal 8's REST API. The exploit leverages deserialization to execute arbitrary commands on the target system.
This repository contains a working proof-of-concept exploit for CVE-2019-6340, a deserialization vulnerability in Drupal 8. The exploit leverages a crafted payload to achieve remote code execution (RCE) via the GuzzleHttp library.
This is a functional exploit for CVE-2019-6340, targeting Drupal 8's REST services to achieve unauthenticated remote code execution via deserialization gadgets in the Guzzle HTTP client library. The PoC automates node discovery, vulnerability checking, and command execution.
This PoC exploits a deserialization vulnerability in Drupal (CVE-2019-6340) to achieve remote code execution by crafting a malicious JSON payload with a GuzzleHttp object. The exploit leverages the REST API to trigger the payload, executing arbitrary PHP functions.
This PoC exploits CVE-2018-7600 in Drupal 8 via REST API endpoints to achieve remote code execution (RCE). It sends crafted payloads to '/node/1' and '/user/register' endpoints to trigger deserialization vulnerabilities.
This repository contains a working exploit for CVE-2019-6340, a Drupal RESTful Web Services authentication bypass leading to remote code execution via deserialization. The exploit leverages a crafted payload to execute arbitrary commands on the target system.
This repository contains a functional Perl exploit for CVE-2019-6340, targeting Drupal 8's REST module RCE vulnerability. The exploit leverages deserialization via crafted JSON payloads to achieve remote code execution.
This repository contains a functional Python exploit for CVE-2019-6340, targeting Drupal's RESTful Web Services unserialize() vulnerability. It leverages a Guzzle/RCE1 gadget chain to achieve remote code execution via crafted HAL+JSON payloads, with improvements over the original exploit by using POST requests to bypass caching.
This is a functional exploit for CVE-2019-6340, targeting Drupal 8's RESTful API module. It leverages deserialization via Guzzle HTTP client gadgets to achieve unauthenticated remote code execution (RCE).
This repository contains a functional Perl exploit for CVE-2019-6340, a deserialization vulnerability in Drupal 8's REST module. The exploit crafts a malicious payload to achieve remote code execution (RCE) by leveraging the insecure deserialization of user-supplied data.
This exploit leverages a deserialization vulnerability in Drupal 8.6.x (CVE-2019-6340) via the RESTful Web Services module to achieve remote code execution. It crafts a malicious payload using GuzzleHttp's FnStream and HandlerStack classes to execute arbitrary commands.
The repository contains only a README and a Drupal settings.php file, with no actual exploit code or proof-of-concept. It appears to be part of a vulnerable container management tool (Cved) but lacks functional exploit details.
This repository contains analysis artifacts and an example playbook for CVE-2019-6340, a Drupal RESTful RCE vulnerability. The playbook is a Phantom SOAR automation script for incident response, not an exploit.
This Metasploit module exploits a PHP unserialize() vulnerability in Drupal RESTful Web Services (CVE-2019-6340) by sending a crafted request to the /node REST endpoint. It supports multiple HTTP methods (GET, POST, PATCH, PUT) and leverages PHP object injection via GuzzleHttp to achieve remote code execution.
Nuclei Templates (1)
http.component:"drupal" || cpe:"cpe:2.3:a:drupal:drupal"
References (7)
Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H