Drupal Remote Code Execution Vulnerability (SA-CORE-2018-002) (exploit) - Nessus

Critical   Plugin ID: 109041

This page contains detailed information about the Drupal Remote Code Execution Vulnerability (SA-CORE-2018-002) (exploit) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 109041
Name: Drupal Remote Code Execution Vulnerability (SA-CORE-2018-002) (exploit)
Filename: drupal_CVE-2018-7600_rce.nbin
Vulnerability Published: 2018-03-28
This Plugin Published: 2018-04-13
Last Modification Time: 2022-04-25
Plugin Version: 1.57
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: drupal_detect.nasl
Required KB Items [?]: installed_sw/Drupal

Vulnerability Information


Severity: Critical
Vulnerability Published: 2018-03-28
Patch Published: 2018-03-28
CVE [?]: CVE-2018-7600
CPE [?]: cpe:/a:drupal:drupal
Exploited by Malware: True

Synopsis

The remote web server hosts a PHP CMS that is affected by a remote command execution vulnerability.

Description

The Drupal CMS installed on the remote host is affected by a remote command execution vulnerability. A remote, unauthenticated attacker can leverage this issue to execute arbitrary commands on the remote host.

Solution

Upgrade to Drupal version 7.58 / 8.3.9 / 8.4.6 / 8.5.1 or later.

Public Exploits


Target Network Port(s): 80, 443
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Drupal Remote Code Execution Vulnerability (SA-CORE-2018-002) (exploit) vulnerability:

  1. Metasploit: exploit/unix/webapp/drupal_drupalgeddon2
    [Drupal Drupalgeddon 2 Forms API Property Injection]
  2. Exploit-DB: exploits/php/remote/44482.rb
    [EDB-44482: Drupal < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' Remote Code Execution (Metasploit)]
  3. Exploit-DB: exploits/php/webapps/44448.py
    [EDB-44448: Drupal < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' Remote Code Execution (PoC)]
  4. Exploit-DB: exploits/php/webapps/44449.rb
    [EDB-44449: Drupal < 7.58 / < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' Remote Code Execution]
  5. GitHub: https://github.com/0ang3el/drupalgeddon2
    [CVE-2018-7600]
  6. GitHub: https://github.com/0xAJ2K/CVE-2018-7600
    [CVE-2018-7600: Drupal 8.x before 8.3.9, 8.4.x before 8.4.6, and 8.5.x before 8.5.1 allows remote ...]
  7. GitHub: https://github.com/0xkasra/CVE-2018-7600
    [CVE-2018-7600]
  8. GitHub: https://github.com/3vikram/Application-Vulnerabilities-Payloads
    [CVE-2018-7600]
  9. GitHub: https://github.com/84KaliPleXon3/Payloads_All_The_Things
    [CVE-2018-7600]
  10. GitHub: https://github.com/1120362990/vulnerability-list
    [CVE-2018-7600]
  11. GitHub: https://github.com/AnonVulc/Pentest-Tools
    [CVE-2018-7600]
  12. GitHub: https://github.com/Astrogeorgeonethree/Starred
    [CVE-2018-7600]
  13. GitHub: https://github.com/Cyberleet1337/Payloadswebhack
    [CVE-2018-7600]
  14. GitHub: https://github.com/Delishsploits/PayloadsAndMethodology
    [CVE-2018-7600]
  15. GitHub: https://github.com/DynamicDesignz/Alien-Framework
    [CVE-2018-7600]
  16. GitHub: https://github.com/GuynnR/Payloads
    [CVE-2018-7600]
  17. GitHub: https://github.com/Jean-Francois-C/Boot2root-CTFs-Writeups
    [CVE-2018-7600]
  18. GitHub: https://github.com/Jean-Francois-C/Windows-Penetration-Testing
    [CVE-2018-7600]
  19. GitHub: https://github.com/Jyozi/CVE-2018-7600
    [CVE-2018-7600]
  20. GitHub: https://github.com/Muhammd/Awesome-Payloads
    [CVE-2018-7600]
  21. GitHub: https://github.com/PWN-Kingdom/Test_Tasks
    [CVE-2018-7600]
  22. GitHub: https://github.com/PaloAltoNetworks/research-notes
    [CVE-2018-7600]
  23. GitHub: https://github.com/Prodject/Kn0ck
    [CVE-2018-7600]
  24. GitHub: https://github.com/Project-WARMIND/Exploit-Modules
    [CVE-2018-7600]
  25. GitHub: https://github.com/S3cur3Th1sSh1t/Pentest-Tools
    [CVE-2018-7600]
  26. GitHub: https://github.com/SPuerBRead/kun
    [CVE-2018-7600]
  27. GitHub: https://github.com/SecPentester/CVE-7600-2018
    [CVE-2018-7600]
  28. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2018-7600]
  29. GitHub: https://github.com/UltramanGaia/POC-EXP
    [CVE-2018-7600]
  30. GitHub: https://github.com/VictorMora97/Drupalgeddon2
    [CVE-2018-7600: Analisis y descripcion de una vulnerabilidad que afecta a Drupal (CVE 2018-7600). ...]
  31. GitHub: https://github.com/XPR1M3/Payloads_All_The_Things
    [CVE-2018-7600]
  32. GitHub: https://github.com/alexfrancow/Exploits
    [CVE-2018-7600]
  33. GitHub: https://github.com/andrysec/PayloadsAllVulnerability
    [CVE-2018-7600]
  34. GitHub: https://github.com/anhtu97/PayloadAllEverything
    [CVE-2018-7600]
  35. GitHub: https://github.com/anldori/Drupal-CVE-2018-7600
    [CVE-2018-7600]
  36. GitHub: https://github.com/antonio-fr/DrupalRS
    [CVE-2018-7600]
  37. GitHub: https://github.com/apkadmin/PayLoadsAll
    [CVE-2018-7600]
  38. GitHub: https://github.com/bigblackhat/oFx
    [CVE-2018-7600]
  39. GitHub: https://github.com/chanchalpatra/payload
    [CVE-2018-7600]
  40. GitHub: https://github.com/cjgratacos/drupalgeddon2-test
    [CVE-2018-7600]
  41. GitHub: https://github.com/cocomelonc/vulnexipy
    [CVE-2018-7600]
  42. GitHub: https://github.com/drugeddon/drupal-exploit
    [CVE-2018-7600]
  43. GitHub: https://github.com/fengjixuchui/RedTeamer
    [CVE-2018-7600]
  44. GitHub: https://github.com/firefart/CVE-2018-7600
    [CVE-2018-7600: CVE-2018-7600 - Drupal 7.x RCE]
  45. GitHub: https://github.com/gobysec/Goby
    [CVE-2018-7600]
  46. GitHub: https://github.com/happynote3966/CVE-2018-7600
    [CVE-2018-7600]
  47. GitHub: https://github.com/hktalent/myhktools
    [CVE-2018-7600]
  48. GitHub: https://github.com/jstang9527/gofor
    [CVE-2018-7600]
  49. GitHub: https://github.com/jyo-zi/CVE-2018-7600
    [CVE-2018-7600]
  50. GitHub: https://github.com/kk98kk0/Payloads
    [CVE-2018-7600]
  51. GitHub: https://github.com/koutto/jok3r-pocs
    [CVE-2018-7600]
  52. GitHub: https://github.com/lanjelot/ctfs
    [CVE-2018-7600]
  53. GitHub: https://github.com/madneal/codeql-scanner
    [CVE-2018-7600: The exploit python script for CVE-2018-7600]
  54. GitHub: https://github.com/maya6/-scan-
    [CVE-2018-7600]
  55. GitHub: https://github.com/mrhacker51/ReverseShellCommands
    [CVE-2018-7600]
  56. GitHub: https://github.com/neoblackied/drupal1
    [CVE-2018-7600]
  57. GitHub: https://github.com/nixawk/labs
    [CVE-2018-7600]
  58. GitHub: https://github.com/nxme/php-uicode-issues-drupal
    [CVE-2018-7600]
  59. GitHub: https://github.com/oneplus-x/MS17-010
    [CVE-2018-7600]
  60. GitHub: https://github.com/oneplus-x/Sn1per
    [CVE-2018-7600]
  61. GitHub: https://github.com/opflep/Drupalgeddon-Toolkit
    [CVE-2018-7600]
  62. GitHub: https://github.com/ozkanbilge/Payloads
    [CVE-2018-7600]
  63. GitHub: https://github.com/persian64/CVE-2018-7600
    [CVE-2018-7600]
  64. GitHub: https://github.com/qazbnm456/awesome-cve-poc/blob/master/CVE-2018-7600.md
    [CVE-2018-7600]
  65. GitHub: https://github.com/qiantu88/test
    [CVE-2018-7600]
  66. GitHub: https://github.com/rabbitmask/CVE-2018-7600-Drupal7
    [CVE-2018-7600: CVE-2018-7600【Drupal7】批量扫描工具。]
  67. GitHub: https://github.com/rafaelcaria/drupalgeddon2-CVE-2018-7600
    [CVE-2018-7600]
  68. GitHub: https://github.com/samba234/Sniper
    [CVE-2018-7600]
  69. GitHub: https://github.com/severnake/Pentest-Tools
    [CVE-2018-7600]
  70. GitHub: https://github.com/shellord/CVE-2018-7600-Drupal-RCE
    [CVE-2018-7600: MASS Exploiter]
  71. GitHub: https://github.com/shellord/Drupalgeddon-Mass-Exploiter
    [CVE-2018-7600: CVE-2018-7600 and CVE-2018-7602 Mass Exploiter]
  72. GitHub: https://github.com/sobinge/PayloadsAllThesobinge
    [CVE-2018-7600]
  73. GitHub: https://github.com/sobinge/--1
    [CVE-2018-7600]
  74. GitHub: https://github.com/theyoge/AD-Pentesting-Tools
    [CVE-2018-7600]
  75. GitHub: https://github.com/unusualwork/Sn1per
    [CVE-2018-7600]
  76. GitHub: https://github.com/vphnguyen/ANM_CVE-2018-7600
    [CVE-2018-7600: Detect with python and tracking IP]
  77. GitHub: https://github.com/yak0d3/dDumper
    [CVE-2018-7600]
  78. GitHub: https://github.com/ynsmroztas/drupalhunter
    [CVE-2018-7600: CVE-2018-7600 0-Day Exploit (cyber-warrior.org)]
  79. GitHub: https://github.com/zeralot/Dectect-CVE
    [CVE-2018-7600]
  80. GitHub: https://github.com/zhzyker/CVE-2018-7600-Drupal-POC-EXP
    [CVE-2018-7600: CVE-2018-7600 Drupal Drupalgeddon 2 远程代码执行漏洞利用脚本]
  81. GitHub: https://github.com/a2u/CVE-2018-7600
    [CVE-2018-7600: 💀Proof-of-Concept for CVE-2018-7600 Drupal SA-CORE-2018-002]
  82. GitHub: https://github.com/cved-sources/cve-2018-7600
    [CVE-2018-7600: Cve-2018-7600]
  83. GitHub: https://github.com/Damian972/drupalgeddon-2
    [CVE-2018-7600: Vuln checker for Drupal v7.x + v8.x (CVE-2018-7600 / SA-CORE-2018-002)]
  84. GitHub: https://github.com/dreadlocked/Drupalgeddon2
    [CVE-2018-7600: Exploit for Drupal v7.x + v8.x (Drupalgeddon 2 / CVE-2018-7600 / SA-CORE-2018-002) ...]
  85. GitHub: https://github.com/dr-iman/CVE-2018-7600-Drupal-0day-RCE
    [CVE-2018-7600: Drupal 0day Remote PHP Code Execution (Perl)]
  86. GitHub: https://github.com/dwisiswant0/CVE-2018-7600
    [CVE-2018-7600: PoC for CVE-2018-7600 Drupal SA-CORE-2018-002 (Drupalgeddon 2).]
  87. GitHub: https://github.com/FireFart/CVE-2018-7600
    [CVE-2018-7600: CVE-2018-7600 - Drupal 7.x RCE]
  88. GitHub: https://github.com/fyraiga/CVE-2018-7600-drupalgeddon2-scanner
    [CVE-2018-7600: Drupalgeddon2 POC + Scanner (adapted)]
  89. GitHub: https://github.com/g0rx/CVE-2018-7600-Drupal-RCE
    [CVE-2018-7600: CVE-2018-7600 Drupal RCE]
  90. GitHub: https://github.com/Hestat/drupal-check
    [CVE-2018-7600: Tool to dive Apache logs for evidence of exploitation of CVE-2018-7600]
  91. GitHub: https://github.com/jirojo2/drupalgeddon2
    [CVE-2018-7600: MSF exploit module for Drupalgeddon 2 (CVE-2018-7600 / SA-CORE-2018-002)]
  92. GitHub: https://github.com/knqyf263/CVE-2018-7600
    [CVE-2018-7600: CVE-2018-7600 (Drupal)]
  93. GitHub: https://github.com/lorddemon/drupalgeddon2
    [CVE-2018-7600: Exploit for CVE-2018-7600.. called drupalgeddon2,]
  94. GitHub: https://github.com/ludy-dev/drupal8-REST-RCE
    [CVE-2018-7600: (CVE-2019-6340, CVE-2018-7600) drupal8-REST-RCE]
  95. GitHub: https://github.com/pimps/CVE-2018-7600
    [CVE-2018-7600: Exploit for Drupal 7 <= 7.57 CVE-2018-7600]
  96. GitHub: https://github.com/r3dxpl0it/CVE-2018-7600
    [CVE-2018-7600: CVE-2018-7600 POC (Drupal RCE)]
  97. GitHub: https://github.com/ruthvikvegunta/Drupalgeddon2
    [CVE-2018-7600: CVE-2018-7600 | Drupal < 7.58 / < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' RCE ...]
  98. GitHub: https://github.com/sl4cky/CVE-2018-7600-Masschecker
    [CVE-2018-7600: Tool to check for CVE-2018-7600 vulnerability on several URLS]
  99. GitHub: https://github.com/thehappydinoa/CVE-2018-7600
    [CVE-2018-7600: Proof-of-Concept for Drupal CVE-2018-7600 / SA-CORE-2018-002]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2018-7600
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)

Go back to menu.

Plugin Source


The drupal_CVE-2018-7600_rce.nbin Nessus plugin is distributed in a propriatory binary format and its source code is protected. This script is Copyright (C) 2018-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/drupal_CVE-2018-7600_rce.nbin
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\drupal_CVE-2018-7600_rce.nbin
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/drupal_CVE-2018-7600_rce.nbin

Go back to menu.

How to Run


Here is how to run the Drupal Remote Code Execution Vulnerability (SA-CORE-2018-002) (exploit) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Drupal Remote Code Execution Vulnerability (SA-CORE-2018-002) (exploit) plugin ID 109041.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl drupal_CVE-2018-7600_rce.nbin -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a drupal_CVE-2018-7600_rce.nbin -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - drupal_CVE-2018-7600_rce.nbin -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state drupal_CVE-2018-7600_rce.nbin -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 108695 - Debian DLA-1325-1 : drupal7 security update (Drupalgeddon 2)
  • 108698 - Debian DSA-4156-1 : drupal7 - security update (Drupalgeddon 2)
  • 108688 - Drupal 7.x < 7.58 / 8.3.x < 8.3.9 / 8.4.x < 8.4.6 / 8.5.x < 8.5.1 Remote Code Execution Vulnerability (SA-CORE-2018-002)
  • 120615 - Fedora 28 : drupal8 (2018-906ba26b4d) (Drupalgeddon 2)
  • 109288 - Fedora 26 : drupal8 (2018-922cc2fbaa) (Drupalgeddon 2)
  • 109055 - FreeBSD : drupal -- Drupal Core - Multiple Vulnerabilities (a9e466e8-4144-11e8-a292-00e04c1ea73d) (Drupalgeddon 2)
  • 71144 - Drupal 6.x < 6.29 Multiple Vulnerabilities
  • 71145 - Drupal 7.x < 7.24 Multiple Vulnerabilities
  • 78511 - Drupal 7.x < 7.32 SQLi
  • 79386 - Drupal 6.x < 6.34 / 7.x < 7.34 Multiple Vulnerabilities
  • 78515 - Drupal Database Abstraction API SQLi
  • 92495 - Drupal 8.x < 8.1.7 PHP HTTP_PROXY Environment Variable Namespace Collision Vulnerability (httpoxy)
  • 101063 - Drupal 7.x < 7.56 / 8.x < 8.3.4 Multiple Vulnerabilities (SA-CORE-2017-003)
  • 124176 - Drupal 7.x < 7.66 / 8.5.x < 8.5.15 / 8.6.x < 8.6.15 Multiple Vulnerabilities (drupal-2019-04-17)
  • 109344 - Drupal 7.x < 7.59 / 8.4.x < 8.4.8 / 8.5.x < 8.5.3 Remote Code Execution Vulnerability (SA-CORE-2018-004)
  • 111599 - Drupal 8.x < 8.5.6 Symfony Risky HTTP Header Restriction Bypass Vulnerability (SA-CORE-2018-005)
  • 122349 - Drupal 8.5.x < 8.5.11 / 8.6.x < 8.6.10 Remote Code Execution (SA-CORE-2019-003)
  • 124698 - Drupal 7.0.x < 7.67 / 8.6.x < 8.6.16 / 8.7.x < 8.7.1 Drupal Vulnerability (SA-CORE-2019-007)
  • 121214 - Drupal 7.x < 7.62 / 8.5.x < 8.5.9 / 8.6.x < 8.6.6 Multiple Vulnerabilities (SA-CORE-2019-001, SA-CORE-2019-002)
  • 136745 - Drupal 7.0.x < 7.70 / 7.0.x < 7.70 / 8.7.x < 8.7.14 / 8.8.x < 8.8.6 Multiple Vulnerabilities (drupal-2020-05-20)
  • 143274 - Drupal 7.x < 7.75 / 8.x < 8.8.12 / 8.9.x < 8.9.10 / 9.0.x < 9.0.9 Multiple Vulnerabilities (SA-CORE-2020-013)
  • 148896 - Drupal 7.x < 7.78 / 8.9.x < 8.9.13 / 9.x < 9.0.11 / 9.1.x < 9.1.3 Directory Traversal (SA-CORE-2021-001)
  • 151932 - Drupal 7.x < 7.82 / 8.9.x < 8.9.17 / 9.1.x < 9.1.11 / 9.2.x < 9.2.2 Drupal Vulnerability (SA-CORE-2021-004)
  • 156863 - Drupal 7.x < 7.86 / 9.2.x < 9.2.11 / 9.3.x < 9.3.3 Multiple Vulnerabilities (drupal-2022-01-19)
  • 24266 - Drupal Comment Module comment_form_add_preview() Function Arbitrary Code Execution
  • 24265 - Drupal Comment Function Arbitrary Code Execution
  • 128551 - Drupal PHPUnit/Mailchimp Code Execution Vulnerability
  • 122449 - Drupal Remote Code Execution Vulnerability (SA-CORE-2019-003) (exploit)
  • 18640 - Drupal XML-RPC for PHP Remote Code Injection
  • 123006 - Drupal 7.x < 7.65 / 8.5.x < 8.5.14 / 8.6.x < 8.6.13 XSS (SA-CORE-2019-004)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file drupal_CVE-2018-7600_rce.nbin version 1.57. For more plugins, visit the Nessus Plugin Library.

Go back to menu.