# Drupal

### Enumeration

After identifying a Drupal site, one of the first pieces of information you should try to identify is the version of Drupal running:

```bash
curl -s https://parzival.sh/CHANGELOG.txt 
```

#### Droopescan

```bash
droopescan scan drupal -u https://parzival.sh
```

{% embed url="<https://github.com/SamJoan/droopescan>" %}

### Exploitation

#### Drupalgeddon

Older installations of Drupal are vulnerable to a remote code execution vulnerability dubbed "Drupalgeddon". There is a Metasploit module which works well for exploiting this vulnerability:

```bash
use exploit/unix/webapp/drupal_drupalgeddon2
```

{% embed url="<https://www.rapid7.com/blog/post/2018/04/27/drupalgeddon-vulnerability-what-is-it-are-you-impacted/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ttp.parzival.sh/pentesting/fortress/cms/drupal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
