Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2014-3704 PoC — Drupal core SQL注入漏洞

Source
Associated Vulnerability
Title: Drupal core SQL注入漏洞 (CVE-2014-3704)
Description:The expandArguments function in the database abstraction API in Drupal core 7.x before 7.32 does not properly construct prepared statements, which allows remote attackers to conduct SQL injection attacks via an array containing crafted keys.
Description
This code is taken from "Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Add Admin User)" and was converted to Python 3 to suit the exercise in Academy for Module "Attacking Commoon Applications" and section "Attacking Drupal".
Readme
# Code Conversion to Python 3

This code is taken from ["Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection \(Add Admin User\)"](https://www.exploit-db.com/exploits/34992) and was converted to Python 3 to suit the exercise in [Academy](http://academy.hackthebox.com/) for Module "Attacking Commoon Applications" and section "Attacking Drupal".

The original code was written in Python 2, but I converted it to be compatible with Python 3. The readme structure is copied from [here](https://github.com/dpgg101/CVE-2019-10945/blob/main/README.md).

## Requirements
To run this code, you will need Python 3 installed on your system.

## Usage
To run the code, simply execute the script in a terminal or command prompt using Python 3. For example:
```bash
$ wget https://github.com/joaomorenorf/CVE-2014-3704/raw/refs/heads/master/CVE-2014-3704.py
$ python3 CVE-2014-3704.py
```

## Contributing
If you find any issues with the code or have suggestions for improvements, please feel free to open an issue or submit a pull request.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →