Drupal Discovery & Enumeration

🎯 Objective: Master the identification, enumeration, and intelligence gathering techniques for Drupal installations to complete comprehensive CMS security assessment capabilities across the three major content management platforms.

Overview

Drupal, launched in 2001, represents the third pillar of the CMS Trinity alongside WordPress and Joomla. While holding a smaller market share (2.4% of CMS market), Drupal powers critical infrastructure including 56% of government websites globally and 33 Fortune 500 companies. Its enterprise focus and robust architecture make it a high-value target requiring specialized enumeration techniques.

Key Drupal Statistics:

  • 1.5% of internet sites (over 1.1 million installations)

  • 5% of top 1 million websites worldwide

  • 7% of top 10,000 sites (enterprise concentration)

  • 950,000+ active instances (Update Status module data)

  • Available in 100 languages with global deployment

  • Major users: Tesla, Warner Bros Records, government agencies


Drupal Architecture & Fundamentals

Core Concepts & Structure

Content Management via Nodes

Node System Architecture:
/node/1     β†’ Blog post
/node/2     β†’ Article  
/node/3     β†’ Page content
/node/4     β†’ Poll/Survey
/node/[ID]  β†’ Any content type

Node = Universal content container in Drupal

User Role Hierarchy

Directory Structure Analysis


Discovery & Fingerprinting Techniques

Initial Identification Methods

Method 1: Generator Meta Tag Detection

Method 3: Node-Based URL Pattern Recognition

Method 4: Standard File Detection

Method 5: CSS/JavaScript Fingerprinting


Version Detection Strategies

Core Version Identification

Method 1: CHANGELOG.txt Analysis (Primary)

Method 2: Generator Meta Tag Version

Method 3: Core JavaScript File Analysis

Method 4: CSS Timestamp Analysis

Method 5: Update Status Module Detection

Version-Specific Indicators

Drupal 6 Characteristics

Drupal 7 Characteristics

Drupal 8+ Characteristics


Manual Enumeration Techniques

Content Discovery via Node Enumeration

Sequential Node Discovery

Content Type Analysis

Administrative Interface Discovery

Admin Panel Enumeration

User Management Interface

Module & Theme Discovery

Active Module Enumeration

Theme Discovery & Analysis

Custom Module Discovery


Automated Enumeration Tools

DroopeScan - Advanced Drupal Scanner

Installation & Setup

Basic Drupal Scanning

Advanced DroopeScan Options

DroopeScan Output Analysis

Custom Drupal Enumeration Scripts

Comprehensive Module Brute Force

Node Content Discovery Script


Configuration & Security Analysis

Settings.php Analysis

Database Configuration Discovery

Multi-site Configuration Detection

Update Status & Security Headers

Update Status Analysis

Security Header Analysis


HTB Academy Lab Solutions

Lab: Drupal Version Detection

Question: "Identify the Drupal version number in use on http://drupal-qa.inlanefreight.local"

Solution Methodology:

Step 1: Environment Setup

Step 2: Primary Version Detection Method

Step 3: Alternative Detection Methods

Step 4: Verify Answer Format

Expected Lab Answers

Target: http://drupal-qa.inlanefreight.local Answer: 7.30 Method: CHANGELOG.txt analysis Full Version String: Drupal 7.30, 2014-07-24


Version-Specific Vulnerability Research

Drupal 7 Security Landscape

Common Drupal 7 Vulnerabilities

Drupalgeddon Vulnerability Series

Module-Specific Security Research

High-Risk Module Categories

Module Vulnerability Research


Intelligence Gathering Workflow

Comprehensive Enumeration Checklist

Phase 1: Initial Discovery

Phase 2: Content Analysis

Phase 3: Module & Theme Discovery

Phase 4: Configuration & Security Assessment


Defensive Considerations

Security Hardening Recommendations

Core Security Measures

File System Hardening

Monitoring and Detection

Attack Pattern Recognition

Security Monitoring Setup


Cross-Module Integration

Drupal in Multi-CMS Environments

CMS Fingerprinting Automation

Integration with Other Modules


Next Steps

After Drupal enumeration, proceed to:

  1. Drupal Attacks & Exploitation - Drupalgeddon and module vulnerabilities

  2. Servlet Containers - Java application attacks

  3. Development Tools - CI/CD and build system attacks

πŸ’‘ Key Takeaway: Drupal enumeration requires understanding of the node-based content system, version-specific file locations, and module architecture. While less common than WordPress, Drupal installations often power critical enterprise and government infrastructure, making thorough enumeration essential for comprehensive security assessments.

Last updated