Exploit database

Vulnerability

CVE-2019-6340

Drupal core - Highly critical - Remote Code Execution

Vulnerability details

Score
8.1
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

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.)

CVE Program

Exploit source choices

9 sources
Drupal RESTful Web Services unserialize() RCE
MSF-unix--webapp--drupal_restws_unserializeMetasploitPHP,Unix / remote

This module exploits a PHP unserialize() vulnerability in Drupal RESTful Web Services by sending a crafted request to the /node REST endpoint. As per SA-CORE-2019-003, the initial remediation was to disable POST, PATCH, and PUT, but Ambionics discovered that GET was also vulnerable (albeit cached). Cached nodes can be exploited only once. Drupal updated SA-CORE-2019-003 with PSA-2019-02-22 to notify users of this alternate vector. Drupal < 8.5.11 and < 8.6.10 are vulnerable.

2019-02-20drupal_restws_unserialize.rb
zhzyker/exphub
GH-9136644ca7929c76caeb416e1cf5c352GitHubUnofficial GitHub source

Exphub[漏洞利用脚本库] 包括Webloigc、Struts2、Tomcat、Nexus、Solr、Jboss、Drupal的漏洞利用脚本,最新添加CVE-2020-14882、CVE-2020-11444、CVE-2020-10204、CVE-2020-10199、CVE-2020-1938、CVE-2020-2551、CVE-2020-2555、CVE-2020-2883、CVE-2019-17558、CVE-2019-6340

2020-04-011 file · 4,297 stars
jas502n/cve-2019-6340
GH-6a9eb44e3cf13bbcfac2cf98504657b6GitHubUnofficial GitHub source

Drupal8's REST RCE, SA-CORE-2019-003, CVE-2019-6340

2019-05-271 file · 71 stars
knqyf263/cve-2019-6340
GH-8b555380f104685a469dd0786d5f10efGitHubUnofficial GitHub source

Environment for CVE-2019-6340 (Drupal)

2019-02-231 file · 42 stars
g0rx/drupal-sa-core-2019-003
GH-be8d719bd90e8464b608d66201b3be83GitHubUnofficial GitHub source

CVE-2019-6340-Drupal SA-CORE-2019-003

2019-02-221 file · 30 stars
oways/cve-2019-6340
GH-13235b17b1fbfc2f396ac9d3f19a61b6GitHubUnofficial GitHub source

CVE-2019-6340 POC Drupal rce

2019-02-251 file · 12 stars